|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcckit.graphic.BasicGraphicalElement
jcckit.graphic.Text
public class Text
A single line of text.
Constructor Summary | |
---|---|
Text(GraphPoint position,
String text,
GraphicAttributes attributes)
Creates an instance with the specified parameters. |
Method Summary | |
---|---|
GraphPoint |
getPosition()
Returns the position. |
String |
getText()
Returns the text string. |
void |
renderWith(Renderer renderer)
Renders this line 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 Text(GraphPoint position, String text, GraphicAttributes attributes)
position
- Position of the text.text
- Text.attributes
- Drawing attributes. Can be null.Method Detail |
---|
public GraphPoint getPosition()
public String getText()
public void renderWith(Renderer renderer)
Renderer
.
renderer
- An instance of TextRenderer
.
IllegalArgumentException
- if renderer is not
an instance of TextRenderer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |