|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Drawable1DInterface describes the methods available for manipulating lines drawn on a DrawingCanvas.
Method Summary | |
Location |
getEnd()
Gets the line's end point. |
Location |
getStart()
Gets the line's start point. |
void |
setEnd(double x,
double y)
Sets the line's end point. |
void |
setEnd(Location point)
Sets the line's end point. |
void |
setEndPoints(double x1,
double y1,
double x2,
double y2)
Sets the line's end points. |
void |
setEndPoints(Location start,
Location end)
Sets the line's end points. |
void |
setStart(double x,
double y)
Sets the line's start point. |
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 |
public Location getStart()
public Location getEnd()
public void setStart(Location point)
point
- new start pointpublic void setStart(double x, double y)
x
- x coordinate of new start pointy
- y coordinate of new start pointpublic void setEnd(Location point)
point
- new endpointpublic void setEnd(double x, double y)
x
- x coordinate of new end pointy
- y coordinate of new end pointpublic void setEndPoints(Location start, Location end)
start
- first endpointend
- second endpointpublic 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |