net.sourceforge.jeuclid.layout
Class TextObject

java.lang.Object
  extended by net.sourceforge.jeuclid.layout.TextObject
All Implemented Interfaces:
GraphicsObject

public class TextObject
extends Object
implements GraphicsObject

Version:
$Revision: 8afef6dd0d58 $

Constructor Summary
TextObject(TextLayout textLayout, float xo, Color textColor)
          Default Constructor.
TextObject(TextLayout textLayout, float xo, float yo, AffineTransform transform, Color textColor)
          Constructor for more complex texts (operators).
 
Method Summary
 void paint(float x, float y, Graphics2D g)
          Actually draw the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextObject

public TextObject(TextLayout textLayout,
                  float xo,
                  Color textColor)
Default Constructor.

Parameters:
textLayout - Text Layout.
xo - X-Offset
textColor - 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.
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,
                  Graphics2D g)
Actually draw the object.

Specified by:
paint in interface GraphicsObject
Parameters:
x - X-offset of surrounding element.
y - Y-Offset of baseline of surrounding element.
g - Graphics Context.


Copyright © 2002-2010 The JEuclid project. All Rights Reserved.