public class HorizontalBox extends Box
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.Integer> |
breakPositions |
background, children, DEBUG, depth, elderParent, foreground, height, markForDEBUG, parent, shift, type, width
Constructor and Description |
---|
HorizontalBox() |
HorizontalBox(Box b) |
HorizontalBox(Box b,
float w,
int alignment) |
HorizontalBox(java.awt.Color fg,
java.awt.Color bg) |
Modifier and Type | Method and Description |
---|---|
void |
add(Box b)
Inserts the given box at the end of the list of child boxes.
|
void |
add(int pos,
Box b)
Inserts the given box at the given position in the list of child boxes.
|
void |
addBreakPosition(int pos) |
HorizontalBox |
cloneBox() |
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.
|
protected HorizontalBox[] |
split(int position) |
protected HorizontalBox[] |
splitRemove(int position) |
public HorizontalBox(Box b, float w, int alignment)
public HorizontalBox(Box b)
public HorizontalBox()
public HorizontalBox(java.awt.Color fg, java.awt.Color bg)
public HorizontalBox cloneBox()
public void draw(java.awt.Graphics2D g2, float x, float y)
Box
public final void add(Box b)
Box
public final void add(int pos, Box b)
Box
public int getLastFontId()
Box
getLastFontId
in class Box
public void addBreakPosition(int pos)
protected HorizontalBox[] split(int position)
protected HorizontalBox[] splitRemove(int position)