jfig.utils
Class SimpleLatexParser.SubSuperScriptBox

java.lang.Object
  extended byjfig.utils.SimpleLatexParser.Box
      extended byjfig.utils.SimpleLatexParser.SubSuperScriptBox
Enclosing class:
SimpleLatexParser

class SimpleLatexParser.SubSuperScriptBox
extends SimpleLatexParser.Box

a Box that holds a sub- and a superscript Box


Field Summary
protected  int a
           
protected  int d
           
(package private)  int fontIndex
           
protected  SimpleLatexParser.Box next
           
(package private)  int ptSize
           
(package private)  int sa
           
(package private)  int sd
           
(package private)  SimpleLatexParser.Box subscriptBox
           
(package private)  SimpleLatexParser.Box superscriptBox
           
protected  int w
           
protected  int x
           
protected  int y
           
 
Constructor Summary
SimpleLatexParser.SubSuperScriptBox(int fontIndex, int ptSize)
           
 
Method Summary
 void append(SimpleLatexParser.Box child)
           
 void convertToFig(FigCompound parent)
          construct a FIG object from this Box and all its child boxes and put those as members into the specified FigCompound group object.
 void dump(java.io.PrintStream PS)
           
 int getA()
           
 java.awt.Point getAbutmentPoint()
           
 java.awt.Rectangle getBounds()
           
 int getD()
           
 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.
 SimpleLatexParser.Box getNextBox()
           
 java.awt.Point getSubscriptBasePoint()
           
 SimpleLatexParser.Box getSubscriptBox()
           
 int getSubscriptPtSize()
           
 java.awt.Point getSuperscriptBasePoint()
           
 SimpleLatexParser.Box getSuperscriptBox()
           
 int getW()
           
 int getX()
           
 int getY()
           
 void measure()
           
 void move(int dx, int dy)
           
 void setA(int a)
           
 void setD(int d)
           
 void setNextBox(SimpleLatexParser.Box box)
           
 void setOrigin(java.awt.Point p)
           
 void setSubscriptBox(SimpleLatexParser.Box b)
           
 void setSuperscriptBox(SimpleLatexParser.Box b)
           
 void setW(int w)
           
 void setX(int x)
           
 void setY(int y)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

superscriptBox

SimpleLatexParser.Box superscriptBox

subscriptBox

SimpleLatexParser.Box subscriptBox

sa

int sa

sd

int sd

ptSize

int ptSize

fontIndex

int fontIndex

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
Constructor Detail

SimpleLatexParser.SubSuperScriptBox

public SimpleLatexParser.SubSuperScriptBox(int fontIndex,
                                           int ptSize)
Method Detail

measure

public void measure()
Overrides:
measure in class SimpleLatexParser.Box

getAbutmentPoint

public java.awt.Point getAbutmentPoint()
Overrides:
getAbutmentPoint in class SimpleLatexParser.Box

getSubscriptPtSize

public int getSubscriptPtSize()

getSuperscriptBasePoint

public java.awt.Point getSuperscriptBasePoint()

getSubscriptBasePoint

public java.awt.Point getSubscriptBasePoint()

getSubscriptBox

public SimpleLatexParser.Box getSubscriptBox()

getSuperscriptBox

public SimpleLatexParser.Box getSuperscriptBox()

setSubscriptBox

public void setSubscriptBox(SimpleLatexParser.Box b)

setSuperscriptBox

public void setSuperscriptBox(SimpleLatexParser.Box b)

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)

append

public void append(SimpleLatexParser.Box child)

getBounds

public java.awt.Rectangle getBounds()

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.