public class OverUnderBox extends Box
background, children, DEBUG, depth, elderParent, foreground, height, markForDEBUG, parent, shift, type, width
Constructor | Description |
---|---|
OverUnderBox(Box b,
Box d,
Box script,
float kern,
boolean over) |
the parameter boxes must have an equal width!!
|
Modifier and Type | Method | Description |
---|---|---|
void |
draw(java.awt.Graphics2D g2,
float x,
float y) |
Paints this box at the given coordinates using the given graphics context.
|
int |
getLastFontId() |
Get the id of the font that will be used the last when this box will be painted.
|
public OverUnderBox(Box b, Box d, Box script, float kern, boolean over)
b
- base box to be drawn on the baselined
- delimiter boxscript
- subscript or superscript boxover
- true : draws delimiter and script box above the base box, false : under the
base boxpublic void draw(java.awt.Graphics2D g2, float x, float y)
Box
public int getLastFontId()
Box
getLastFontId
in class Box