Constructor Summary |
GRoundRect(double width,
double height)
Constructs a new rounded rectangle with the specified width and height,
positioned at the origin. |
GRoundRect(double x,
double y,
double width,
double height)
Constructs a new rounded rectangle with the specified bounds. |
GRoundRect(double x,
double y,
double width,
double height,
double arcSize)
Constructs a new rounded rectangle with the specified bounds and a single
parameter describing both the describing the curvature at the corners. |
GRoundRect(double x,
double y,
double width,
double height,
double arcWidth,
double arcHeight)
Constructs a new rounded rectangle with the specified bounds and
arc parameters describing the curvature at the corners. |
Inherited Method Summary |
void | addMouseListener(MouseListener listener)
Adds a mouse listener to this graphical object.
|
void | addMouseMotionListener(MouseMotionListener listener)
Adds a mouse motion listener to this graphical object.
|
boolean | contains(GPoint pt)
Checks to see whether a point is inside the object.
|
boolean | contains(double x, double y)
Checks to see whether a point is inside the object.
|
GRectangle | getBounds()
Returns the bounding box for this object.
|
Color | getColor()
Returns the color used to display this object.
|
Color | getFillColor()
Returns the color used to display the filled region of this object.
|
double | getHeight()
Returns the height of this object, which is defined to be
the height of the bounding box.
|
GPoint | getLocation()
Returns the location of this object as a GPoint .
|
GDimension | getSize()
Returns the size of the bounding box for this object.
|
double | getWidth()
Returns the width of this object, which is defined to be
the width of the bounding box.
|
double | getX()
Returns the x-coordinate of the object.
|
double | getY()
Returns the y-coordinate of the object.
|
boolean | isFilled()
Returns whether this object is filled.
|
boolean | isVisible()
Checks to see whether this object is visible.
|
void | move(double dx, double dy)
Moves the object on the screen using the displacements dx and dy .
|
void | movePolar(double r, double theta)
Moves the object using displacements given in polar coordinates.
|
void | removeMouseListener(MouseListener listener)
Removes a mouse listener from this graphical object.
|
void | removeMouseMotionListener(MouseMotionListener listener)
Removes a mouse motion listener from this graphical object.
|
void | scale(double sf)
Scales the object on the screen by the scale factor sf , which applies
in both dimensions.
|
void | scale(double sx, double sy)
Scales the object on the screen by the scale factors sx and sy .
|
void | sendBackward()
Moves this object one step toward the back in the z dimension.
|
void | sendForward()
Moves this object one step toward the front in the z dimension.
|
void | sendToBack()
Moves this object to the back of the display in the z dimension.
|
void | sendToFront()
Moves this object to the front of the display in the z dimension.
|
void | setBounds(GRectangle bounds)
Changes the bounds of this object as specified.
|
void | setBounds(double x, double y, double width, double height)
Changes the bounds of this object to the specified parameters.
|
void | setColor(Color color)
Sets the color used to display this object.
|
void | setFillColor(Color color)
Sets the color used to display the filled region of this object.
|
void | setFilled(boolean fill)
Sets whether this object is filled.
|
void | setLocation(GPoint pt)
Sets the location of this object to the specified point.
|
void | setLocation(double x, double y)
Sets the location of this object to the point (x , y ).
|
void | setSize(double width, double height)
Changes the size of this object to the specified width and height.
|
void | setVisible(boolean visible)
Sets whether this object is visible.
|