Package net.sourceforge.jeuclid.layout
Class TextObject
java.lang.Object
net.sourceforge.jeuclid.layout.TextObject
- All Implemented Interfaces:
GraphicsObject
- Version:
- $Revision: 8afef6dd0d58 $
-
Constructor Summary
ConstructorsConstructorDescriptionTextObject(TextLayout textLayout, float xo, float yo, AffineTransform transform, Color textColor) Constructor for more complex texts (operators).TextObject(TextLayout textLayout, float xo, Color textColor) Default Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidpaint(float x, float y, Graphics2D g) Actually draw the object.
-
Constructor Details
-
TextObject
Default Constructor.- Parameters:
textLayout- Text Layout.xo- X-OffsettextColor- text color.
-
TextObject
public TextObject(TextLayout textLayout, float xo, float yo, AffineTransform transform, Color textColor) Constructor for more complex texts (operators).- Parameters:
textLayout- Text Layout.xo- X-Offset for drawing.yo- Y-Offset for drawing.transform- Transformation to apply before drawing.textColor- text color.
-
-
Method Details
-
paint
Actually draw the object.- Specified by:
paintin interfaceGraphicsObject- Parameters:
x- X-offset of surrounding element.y- Y-Offset of baseline of surrounding element.g- Graphics Context.
-