jfig.utils
Class LP2.SubSuperScriptBox

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

public class LP2.SubSuperScriptBox
extends LP2.GroupBox

a Box that holds a sub- and a superscript Box


Field Summary
protected  int aa
           
protected  int dd
           
protected  int fontIndex
           
protected  int italicCorrection
           
protected  java.lang.String mode
           
protected  int ptSize
           
protected  int sa
           
protected  int sd
           
protected  LP2.Box subscriptBox
           
protected  LP2.Box superscriptBox
           
 
Fields inherited from class jfig.utils.LP2.GroupBox
members
 
Fields inherited from class jfig.utils.LP2.Box
a, comment, d, next, parent, prev, w, x, y
 
Constructor Summary
LP2.SubSuperScriptBox(int fontIndex, int ptSize)
           
 
Method Summary
 void appendMember(LP2.Box b)
           
 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 deleteAllMembers()
           
 void deleteMember(LP2.Box b)
           
 java.awt.Point getAbutmentPoint()
           
 java.lang.String getMode()
           
 java.awt.Point getSubscriptBasePoint()
           
 LP2.Box getSubscriptBox()
           
 int getSubscriptPtSize()
           
 java.awt.Point getSuperscriptBasePoint()
           
 LP2.Box getSuperscriptBox()
           
 void measure()
           
 void move(int dx, int dy)
           
 void setMode(java.lang.String s)
           
 void setSubscriptBox(LP2.Box b)
           
 void setSuperscriptBox(LP2.Box b)
           
 java.lang.String toString()
           
 
Methods inherited from class jfig.utils.LP2.GroupBox
append, appendMemberOrig, dumpGroupMembers, getBounds, getLastMember, getMembers
 
Methods inherited from class jfig.utils.LP2.Box
dump, getA, getComment, getD, getFigRectangle, getNextBox, getOrigin, getParent, getPrevBox, getW, getX, getY, moveTo, setA, setComment, setD, setNextBox, setOrigin, setParent, setPrevBox, setW, setX, setY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

superscriptBox

protected LP2.Box superscriptBox

subscriptBox

protected LP2.Box subscriptBox

mode

protected java.lang.String mode

aa

protected int aa

dd

protected int dd

sa

protected int sa

sd

protected int sd

ptSize

protected int ptSize

fontIndex

protected int fontIndex

italicCorrection

protected int italicCorrection
Constructor Detail

LP2.SubSuperScriptBox

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

setMode

public void setMode(java.lang.String s)

getMode

public java.lang.String getMode()

appendMember

public void appendMember(LP2.Box b)
Overrides:
appendMember in class LP2.GroupBox

deleteMember

public void deleteMember(LP2.Box b)
Overrides:
deleteMember in class LP2.GroupBox

deleteAllMembers

public void deleteAllMembers()
Overrides:
deleteAllMembers in class LP2.GroupBox

move

public void move(int dx,
                 int dy)
Overrides:
move in class LP2.GroupBox

measure

public void measure()
Overrides:
measure in class LP2.GroupBox

getAbutmentPoint

public java.awt.Point getAbutmentPoint()
Overrides:
getAbutmentPoint in class LP2.GroupBox

getSubscriptPtSize

public int getSubscriptPtSize()

getSuperscriptBasePoint

public java.awt.Point getSuperscriptBasePoint()

getSubscriptBasePoint

public java.awt.Point getSubscriptBasePoint()

getSubscriptBox

public LP2.Box getSubscriptBox()

getSuperscriptBox

public LP2.Box getSuperscriptBox()

setSubscriptBox

public void setSubscriptBox(LP2.Box b)

setSuperscriptBox

public void setSuperscriptBox(LP2.Box b)

toString

public java.lang.String toString()
Overrides:
toString in class LP2.Box

convertToFig

public void convertToFig(FigCompound parent)
Description copied from class: LP2.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 LP2.GroupBox