|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
public interface Drawable1DInterface
Drawable1DInterface describes the methods available for manipulating lines drawn on a DrawingCanvas.
| Method Summary | |
|---|---|
abstract Location |
getEnd()
Gets the line's end point. |
abstract Location |
getStart()
Gets the line's start point. |
abstract void |
setEnd(double x,
double y)
Sets the line's end point. |
abstract void |
setEnd(Location point)
Sets the line's end point. |
abstract void |
setEndPoints(double x1,
double y1,
double x2,
double y2)
Sets the line's end points. |
abstract void |
setEndPoints(Location start,
Location end)
Sets the line's end points. |
abstract void |
setStart(double x,
double y)
Sets the line's start point. |
abstract void |
setStart(Location point)
Sets the line's start point. |
| Methods inherited from interface objectdraw.DrawableInterface |
|---|
addToCanvas, contains, getCanvas, getColor, hide, isHidden, move, moveTo, moveTo, removeFromCanvas, sendBackward, sendForward, sendToBack, sendToFront, setColor, show |
| Method Detail |
|---|
Location getEnd()
Location getStart()
void setEnd(double x,
double y)
x - x coordinate of new end pointy - y coordinate of new end pointvoid setEnd(Location point)
point - new endpoint
void setEndPoints(double x1,
double y1,
double x2,
double y2)
x1 - x coordinate of starty1 - y coordinate of startx2 - x coordinate of endy2 - y coordinate of end
void setEndPoints(Location start,
Location end)
start - first endpointend - second endpoint
void setStart(double x,
double y)
x - x coordinate of new start pointy - y coordinate of new start pointvoid setStart(Location point)
point - new start point
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||