|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcckit.graphic.BasicGraphicalElement jcckit.graphic.Rectangle
A rectangle.
Constructor Summary | |
Rectangle(GraphPoint center,
double width,
double height,
GraphicAttributes attributes)
Creates a new instance. |
Method Summary | |
GraphPoint |
getCenter()
Returns the center of this element. |
double |
getHeight()
Returns the height of this element. |
double |
getWidth()
Returns the width of this element. |
void |
renderWith(Renderer renderer)
Renders this rectangle with the specified Renderer . |
Methods inherited from class jcckit.graphic.BasicGraphicalElement |
getGraphicAttributes, isClosed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Rectangle(GraphPoint center, double width, double height, GraphicAttributes attributes)
center
- The position of the center of this element.width
- The width.height
- The height.attributes
- Drawing attributes. Can be null.Method Detail |
public GraphPoint getCenter()
public double getWidth()
public double getHeight()
public void renderWith(Renderer renderer)
Renderer
.
renderer
- An instance of RectangleRenderer
.
java.lang.IllegalArgumentException
- if renderer is not
an instance of RectangleRenderer.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |