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)
Boxpublic final void add(Box b)
Boxpublic final void add(int pos,
Box b)
Boxpublic int getLastFontId()
BoxgetLastFontId in class Boxpublic void addBreakPosition(int pos)
protected HorizontalBox[] split(int position)
protected HorizontalBox[] splitRemove(int position)