public class CharBox extends Box
background, children, DEBUG, depth, elderParent, foreground, height, markForDEBUG, parent, shift, type, width
Constructor and Description |
---|
CharBox(Char c)
Create a new CharBox that will represent the character defined by the given
Char-object.
|
Modifier and Type | Method and 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.
|
java.lang.String |
toString() |
public CharBox(Char c)
c
- a Char-object containing the character's font information.public void draw(java.awt.Graphics2D g2, float x, float y)
Box
public int getLastFontId()
Box
getLastFontId
in class Box
public java.lang.String toString()
toString
in class java.lang.Object