Package jcckit.graphic
Class Text
java.lang.Object
jcckit.graphic.BasicGraphicalElement
jcckit.graphic.Text
- All Implemented Interfaces:
GraphicalElement
A single line of text.
-
Constructor Summary
ConstructorsConstructorDescriptionText(GraphPoint position, String text, GraphicAttributes attributes) Creates an instance with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturns the position.getText()Returns the text string.voidrenderWith(Renderer renderer) Renders this line with the specifiedRenderer.Methods inherited from class jcckit.graphic.BasicGraphicalElement
getGraphicAttributes, isClosed
-
Constructor Details
-
Text
Creates an instance with the specified parameters.- Parameters:
position- Position of the text.text- Text.attributes- Drawing attributes. Can be null.
-
-
Method Details
-
getPosition
Returns the position. -
getText
Returns the text string. -
renderWith
Renders this line with the specifiedRenderer.- Parameters:
renderer- An instance ofTextRenderer.- Throws:
IllegalArgumentException- if renderer is not an instance of TextRenderer.
-