|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.swing.print.table.DefaultCellPrinter
A default implementation of CellPrinter
Field Summary | |
static int |
ALIGN_CENTER
|
static int |
ALIGN_LEFT
|
static int |
ALIGN_RIGHT
|
protected String |
value
|
Method Summary | |
protected String |
format(Object o)
|
float |
getHeight(FontRenderContext frc)
The height of one column |
float |
getWidth(FontRenderContext frc)
Gets the width of the current current value. |
void |
print(Graphics g,
Rectangle2D.Float r)
Print this cell |
void |
setFont(Font font)
Sets the font to be used |
void |
setValue(Object o)
Sets the value of the cell to print |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ALIGN_LEFT
public static final int ALIGN_CENTER
public static final int ALIGN_RIGHT
protected String value
Method Detail |
public void setFont(Font font)
CellPrinter
setFont
in interface CellPrinter
font
- The font to be usedpublic float getHeight(FontRenderContext frc)
CellPrinter
getHeight
in interface CellPrinter
frc
- The font render context to be used for calculating font sizes.
public void setValue(Object o)
CellPrinter
setValue
in interface CellPrinter
o
- The object to be printedpublic float getWidth(FontRenderContext frc)
CellPrinter
getWidth
in interface CellPrinter
frc
- The font render context to be used.
public void print(Graphics g, Rectangle2D.Float r)
CellPrinter
print
in interface CellPrinter
g
- The graphics into which to printr
- protected String format(Object o)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |