All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
   |
   +----mathbus.Node
           |
           +----mathbus.draw.Noad
Noads are MathBus Node's, but they contain additional slots to cache formatting information and have a number of member functions that implement the functionality of page setting. The most important of these cached values are the height, width and depth of the box. These values are cached, since they depend upon the scale and fonts used to display the expressions. The parameters can be accessed through the member functions Height(), Width() and Depth().
One other parameter are also present in Noads. The Align parameter indicates how boxes are to be aligned in vertical lists. Boxes in horizonal lists are always aligned at their baselines, but this may change in the future. Sixteeen extra bits are also available for use by sub-classes. They can be accessed using the Extra() and setExtra() methods.
 
 AlignCenter
	AlignCenter
   AlignDefault
	AlignDefault
   AlignLeft
	AlignLeft
   AlignRight
	AlignRight
   BinOpLookup
	BinOpLookup
   fl
	fl
   FuncLookup
	FuncLookup
   halfSMUsize
	halfSMUsize
   PDWidth
	PDWidth
   SMUsize
	SMUsize
   
 Noad()
	Noad()
   
 Align()
	Align()
   Depth()
	Depth()
   Display(Graphics, int, int, FontList, int)
	Display(Graphics, int, int, FontList, int)
   Display(Graphics, int, int, int)
	Display(Graphics, int, int, int)
   DrawBoundingBox(Graphics, int, int, int, Color, Color)
	DrawBoundingBox(Graphics, int, int, int, Color, Color)
   Height()
	Height()
   incDepth(int)
	incDepth(int)
   incHeight(int)
	incHeight(int)
   incWidth(int)
	incWidth(int)
   IsSimple(Node)
	IsSimple(Node)
   Level()
	Level()
   NextLevel(int)
	NextLevel(int)
   PixelstoSMU(int)
	PixelstoSMU(int)
   ProcessNode(Node, int)
	ProcessNode(Node, int)
   RaiseBaseline(int)
	RaiseBaseline(int)
   setAlign(int)
	setAlign(int)
   setDepth(int)
	setDepth(int)
   setHeight(int)
	setHeight(int)
   setLevel(int)
	setLevel(int)
   setWidth(int)
	setWidth(int)
   SizeNoad()
	SizeNoad()
   SizeNoad(Graphics)
	SizeNoad(Graphics)
   SMUtoPixels(int)
	SMUtoPixels(int)
   Width()
	Width()
   
 AlignDefault
AlignDefault
public static final int AlignDefault
 AlignCenter
AlignCenter
public static final int AlignCenter
 AlignLeft
AlignLeft
public static final int AlignLeft
 AlignRight
AlignRight
public static final int AlignRight
 fl
fl
protected static FontList fl
 FuncLookup
FuncLookup
protected static Hashtable FuncLookup
 BinOpLookup
BinOpLookup
protected static Hashtable BinOpLookup
 SMUsize
SMUsize
protected static final int SMUsize
 halfSMUsize
halfSMUsize
protected static final int halfSMUsize
 PDWidth
PDWidth
protected static final int PDWidth
 
 Noad
Noad
public Noad()
 
 Height
Height
public final int Height()
 setHeight
setHeight
public final void setHeight(int val)
 incHeight
incHeight
public final void incHeight(int val)
 Width
Width
public final int Width()
 setWidth
setWidth
public final void setWidth(int val)
 incWidth
incWidth
public final void incWidth(int val)
 Depth
Depth
public final int Depth()
 setDepth
setDepth
public final void setDepth(int val)
 incDepth
incDepth
public final void incDepth(int val)
 Align
Align
public final int Align()
 setAlign
setAlign
public final void setAlign(int val)
 Level
Level
public final int Level()
 setLevel
setLevel
public final void setLevel(int val)
 Display
Display
 protected abstract void Display(Graphics g,
                                 int x,
                                 int y,
                                 FontList DisplayFL,
                                 int c)
 Display
Display
 public void Display(Graphics g,
                     int x,
                     int y,
                     int c)
 SMUtoPixels
SMUtoPixels
public static int SMUtoPixels(int smu)
 PixelstoSMU
PixelstoSMU
public static int PixelstoSMU(int pix)
 NextLevel
NextLevel
public static int NextLevel(int lev)
 IsSimple
IsSimple
protected static boolean IsSimple(Node n)
 RaiseBaseline
RaiseBaseline
public void RaiseBaseline(int incr)
 ProcessNode
ProcessNode
 public static Noad ProcessNode(Node n,
                                int lev)
 SizeNoad
SizeNoad
public void SizeNoad(Graphics g)
 DrawBoundingBox
DrawBoundingBox
 public void DrawBoundingBox(Graphics g,
                             int x,
                             int y,
                             int c,
                             Color box,
                             Color baseline)
 SizeNoad
SizeNoad
public void SizeNoad()
All Packages Class Hierarchy This Package Previous Next Index