Package net.sourceforge.jeuclid.layout
Class TextObject
- java.lang.Object
-
- net.sourceforge.jeuclid.layout.TextObject
-
- All Implemented Interfaces:
GraphicsObject
public class TextObject extends java.lang.Object implements GraphicsObject
- Version:
- $Revision: 8afef6dd0d58 $
-
-
Constructor Summary
Constructors Constructor Description TextObject(java.awt.font.TextLayout textLayout, float xo, float yo, java.awt.geom.AffineTransform transform, java.awt.Color textColor)Constructor for more complex texts (operators).TextObject(java.awt.font.TextLayout textLayout, float xo, java.awt.Color textColor)Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpaint(float x, float y, java.awt.Graphics2D g)Actually draw the object.
-
-
-
Constructor Detail
-
TextObject
public TextObject(java.awt.font.TextLayout textLayout, float xo, java.awt.Color textColor)Default Constructor.- Parameters:
textLayout- Text Layout.xo- X-OffsettextColor- text color.
-
TextObject
public TextObject(java.awt.font.TextLayout textLayout, float xo, float yo, java.awt.geom.AffineTransform transform, java.awt.Color textColor)Constructor for more complex texts (operators).- Parameters:
textLayout- Text Layout.textColor- text color.xo- X-Offset for drawing.yo- Y-Offset for drawing.transform- Transformation to apply before drawing.
-
-
Method Detail
-
paint
public void paint(float x, float y, java.awt.Graphics2D g)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.
-
-