Package jcckit.graphic
Class BasicGraphicalElement
java.lang.Object
jcckit.graphic.BasicGraphicalElement
- All Implemented Interfaces:
GraphicalElement
Abstract superclass of all basic
GraphicalElements
. Concrete subclasses have to implement
the method GraphicalElement.renderWith(jcckit.graphic.Renderer)
.-
Constructor Summary
ConstructorDescriptionBasicGraphicalElement
(GraphicAttributes attributes) Creates an instance with the specified drawing attributes. -
Method Summary
Modifier and TypeMethodDescriptionReturns the drawing attributes.boolean
isClosed()
Returns whether this basic graphical element has a closed shape or not.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jcckit.graphic.GraphicalElement
renderWith
-
Constructor Details
-
BasicGraphicalElement
Creates an instance with the specified drawing attributes. Note, that aRenderer
should use default attributes in the case no attributes are defined.- Parameters:
attributes
- Drawing attributes or null if undefined.
-
-
Method Details
-
getGraphicAttributes
Returns the drawing attributes.- Returns:
- null if undefined.
-
isClosed
public boolean isClosed()Returns whether this basic graphical element has a closed shape or not. By default always true. Subclasses may override this behaviour.- Returns:
- true if the shape is closed.
-