cz.cuni.jagrlib.iface
Class TextRender.TextExtent

java.lang.Object
  extended by cz.cuni.jagrlib.iface.TextRender.TextExtent
Enclosing interface:
TextRender

public static class TextRender.TextExtent
extends java.lang.Object

Support class for holding text extents.

Every string output can be placed into bounding rectangle.

Reference point is a point at the base-line which defines start of each text drawing (starting reference point). After drawing is done, consecutive text should start at the finishing reference point of the first output.

Entent rectangle is defined in baseline-based coordinate system (text drawing direction is ignored). Other data are in device coordinates (x0, y0, x1 and y1).

Since:
0.02
See Also:
TextRender.java, TextRender.textPath(java.lang.String), TextRender.drawText(double, double, java.lang.String, cz.cuni.jagrlib.iface.TextRender.TextExtent), TextRender.textExtent(double, double, java.lang.String, cz.cuni.jagrlib.iface.TextRender.TextExtent), TextRender.getKern(char, char, cz.cuni.jagrlib.iface.TextRender.TextExtent), VCommand.TextPath, VCommand.DrawText

Field Summary
 double lrx
          X coordinate of lower-right extent corner (baseline coordinates).
 double lry
          Y coordinate of lower-right extent corner (baseline coordinates).
 double ulx
          X coordinate of upper-left extent corner (baseline coordinates).
 double uly
          Y coordinate of upper-left extent corner (baseline coordinates).
 double x0
          X coordinate of starting reference point (device coordinates).
 double x1
          X coordinate of finishing reference point (device coordinates).
 double y0
          Y coordinate of starting reference point (device coordinates).
 double y1
          Y coordinate of finishing reference point (device coordinates).
 
Constructor Summary
TextRender.TextExtent()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x0

public double x0
X coordinate of starting reference point (device coordinates).


y0

public double y0
Y coordinate of starting reference point (device coordinates).


x1

public double x1
X coordinate of finishing reference point (device coordinates).


y1

public double y1
Y coordinate of finishing reference point (device coordinates).


ulx

public double ulx
X coordinate of upper-left extent corner (baseline coordinates).


uly

public double uly
Y coordinate of upper-left extent corner (baseline coordinates).


lrx

public double lrx
X coordinate of lower-right extent corner (baseline coordinates).


lry

public double lry
Y coordinate of lower-right extent corner (baseline coordinates).

Constructor Detail

TextRender.TextExtent

public TextRender.TextExtent()