jfig.utils
Class SimpleLatexParser.CharBox
java.lang.Object
jfig.utils.SimpleLatexParser.Box
jfig.utils.SimpleLatexParser.CharBox
- Enclosing class:
- SimpleLatexParser
- class SimpleLatexParser.CharBox
- extends SimpleLatexParser.Box
a Box that holds a single character or a string of characters
of the specified font.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
fontIndex
protected int fontIndex
ptSize
protected int ptSize
colorIndex
protected int colorIndex
s
protected java.lang.String s
x
protected int x
y
protected int y
w
protected int w
a
protected int a
d
protected int d
next
protected SimpleLatexParser.Box next
SimpleLatexParser.CharBox
public SimpleLatexParser.CharBox(java.lang.String s,
int fontIndex,
int ptSize,
int colorIndex)
measure
public void measure()
- measures our string "s" and updates w,a,d
- Overrides:
measure
in class SimpleLatexParser.Box
append
public void append(SimpleLatexParser.Box child)
- Overrides:
append
in class SimpleLatexParser.Box
toString
public java.lang.String toString()
- Overrides:
toString
in class SimpleLatexParser.Box
convertToFig
public void convertToFig(FigCompound parent)
- Description copied from class:
SimpleLatexParser.Box
- construct a FIG object from this Box and all its child boxes
and put those as members into the specified FigCompound group object.
Check the display_boxes flag to decide whether to generate
bounding boxes, too.
- Overrides:
convertToFig
in class SimpleLatexParser.Box
move
public void move(int dx,
int dy)
getX
public int getX()
getY
public int getY()
getW
public int getW()
getA
public int getA()
getD
public int getD()
setX
public void setX(int x)
setY
public void setY(int y)
setW
public void setW(int w)
setA
public void setA(int a)
setD
public void setD(int d)
getNextBox
public SimpleLatexParser.Box getNextBox()
setNextBox
public void setNextBox(SimpleLatexParser.Box box)
getBounds
public java.awt.Rectangle getBounds()
getAbutmentPoint
public java.awt.Point getAbutmentPoint()
setOrigin
public void setOrigin(java.awt.Point p)
dump
public void dump(java.io.PrintStream PS)
getFigRectangle
public FigRectangle getFigRectangle(FigCompound parent,
int colorIndex,
int layer)
- construct a FigRectangle at 2400dpi world-coordinates from
our Box coordinates, and put it as a member into the specified
FigCompound group object.