|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jdrawing.graphics.GraphicsOperation org.jdrawing.graphics.DrawString
Graphics element which corresponds to
Graphics.drawString(String, int, int)
Constructor Summary | |
DrawString(java.text.AttributedCharacterIterator iterator,
float x,
float y)
Returns DrawString for the text of specified iterator at specified location. |
|
DrawString(java.text.AttributedCharacterIterator iterator,
float x,
float y,
Style style)
Returns DrawString for the text of specified iterator at specified location with specified style. |
|
DrawString(java.lang.String text,
float x,
float y)
Returns DrawString for specified text at specified location. |
|
DrawString(java.lang.String text,
float x,
float y,
Style style)
Returns DrawString for specified text at specified location with specified style. |
Method Summary | |
java.text.AttributedCharacterIterator |
getIterator()
Returns the iterator whose text is to be rendered or null if the text was specified explicitly. |
java.awt.Shape |
getShapeOfOperation()
Returns shape of the area updated by this operation. |
java.lang.String |
getText()
Returns the text to be drawn or null is iterator was specified. |
float |
getX()
Returns the X coordinate of the text. |
float |
getY()
Returns the Y coordinate of the text. |
void |
paintOperation(java.awt.Graphics2D graphics)
Performs drawing operation. |
void |
setIterator(java.text.AttributedCharacterIterator iterator)
Sets the AttributedCharacterIterator whose text is to
be rendered. |
void |
setText(java.lang.String text)
Sets the text to be drawn. |
void |
setX(float x)
Sets the X coordinate of the text. |
void |
setY(float y)
Sets the Y coordinate of the text. |
Methods inherited from class org.jdrawing.graphics.GraphicsOperation |
contains, getBounds, getBounds2D, getPosition, getStyle, intersects, paint, setPosition, setStyle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DrawString(java.lang.String text, float x, float y)
text
- text to be drownx
- the x coordinate of the stringy
- the y coordinate of the stringpublic DrawString(java.lang.String text, float x, float y, Style style)
text
- text to be drownx
- the x coordinate of the stringy
- the y coordinate of the stringpublic DrawString(java.text.AttributedCharacterIterator iterator, float x, float y)
iterator
- the iterator whose text is to be renderedx
- the x coordinate of the stringy
- the y coordinate of the stringpublic DrawString(java.text.AttributedCharacterIterator iterator, float x, float y, Style style)
iterator
- the iterator whose text is to be renderedx
- the x coordinate of the stringy
- the y coordinate of the stringMethod Detail |
public void setText(java.lang.String text)
text
- text to be drownpublic java.lang.String getText()
public void setIterator(java.text.AttributedCharacterIterator iterator)
AttributedCharacterIterator
whose text is to
be rendered.
iterator
- the iterator whose text is to be renderedpublic java.text.AttributedCharacterIterator getIterator()
public void setX(float x)
x
- the x coordinatepublic float getX()
public void setY(float y)
y
- the y coordinatepublic float getY()
public void paintOperation(java.awt.Graphics2D graphics)
graphics.drawString ()
.
paintOperation
in class GraphicsOperation
graphics
- graphics context to use for paintingpublic java.awt.Shape getShapeOfOperation()
getShapeOfOperation
in class GraphicsOperation
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |