|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdrawing.graphics.GraphicsOperation
org.jdrawing.graphics.DrawString
Graphics element which corresponds to
Graphics.drawString(String, int, int)
| Constructor Summary | |
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. |
|
| Method Summary | |
boolean |
equals(java.lang.Object object)
Checks whether two draw string operations are equal. |
java.awt.Shape |
getShapeOfOperation()
Returns shape of the area updated by this operation. |
java.lang.String |
getText()
Returns the text to be drawn. |
float |
getX()
Returns the X coordinate of the text. |
float |
getY()
Returns the Y coordinate of the text. |
int |
hashCode()
Returns the hashcode for this draw string operation. |
void |
paintOperation(java.awt.Graphics2D graphics)
Performs drawing operation. |
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, finalize, getClass, 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 string
public 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 string| Method Detail |
public void setText(java.lang.String text)
text - text to be drownpublic java.lang.String getText()
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 GraphicsOperationgraphics - graphics context to use for paintingpublic java.awt.Shape getShapeOfOperation()
getShapeOfOperation in class GraphicsOperationpublic boolean equals(java.lang.Object object)
true if and only if the
argument is not null and is a
DrawString object that has the
same attributes as this DrawString.
equals in class GraphicsOperationobject - the Object to compare with
this DrawString
true if the objects are equal;
false otherwise.public int hashCode()
hashCode in class GraphicsOperation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||