|
Method Summary |
|
boolean |
contains(double x,
double y)
Checks to see whether a point is inside the object. |
|
Rectangle |
getBounds()
Returns the bounding box for this object. |
|
Point |
getEndpoint()
Returns the endpoint of the line as a Point object. |
|
Point |
getOrigin()
Returns the coordinates of the initial point in the line. |
|
void |
paint(Graphics g)
Implements the paint operation for this graphical object. |
|
void |
scale(double sx,
double sy)
Scales the line on the screen by the scale factors sx and sy. |
|
void |
setEndpoint(double x,
double y)
Sets the endpoint of the line to the point (x, y). |
|
void |
setOrigin(double x,
double y)
Sets the origin of the line to the point (x, y),
leaving the endpoint unchanged. |
|
Inherited Method Summary |
|
void |
addMouseListener(MouseListener listener)
Adds a mouse listener to this graphical object.
[Inherited from GObject]
|
|
void |
addMouseMotionListener(MouseMotionListener listener)
Adds a mouse motion listener to this graphical object.
[Inherited from GObject]
|
|
Color |
getColor()
Returns the color used to display this object.
[Inherited from GObject]
|
|
boolean |
isFilled()
Returns whether this object is filled.
[Inherited from GObject]
|
|
boolean |
isVisible()
Checks to see whether this object is visible.
[Inherited from GObject]
|
|
void |
moveToBack()
Moves this object to the back of the display in stacking order.
[Inherited from GObject]
|
|
void |
moveToFront()
Moves this object to the front of the display in stacking order.
[Inherited from GObject]
|
|
void |
removeMouseListener(MouseListener listener)
Removes a mouse listener from this graphical object.
[Inherited from GObject]
|
|
void |
removeMouseMotionListener(MouseMotionListener listener)
Removes a mouse motion listener from this graphical object.
[Inherited from GObject]
|
|
void |
setColor(Color c)
Sets the color used to display this object.
[Inherited from GObject]
|
|
void |
setFilled(boolean fill)
Sets whether this object is filled.
[Inherited from GObject]
|
|
void |
setVisible(boolean visible)
Sets whether this object is visible.
[Inherited from GObject]
|