|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface to be implemented by cell printers
Method Summary | |
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 fm)
Sets the font to be used |
void |
setValue(Object o)
Sets the value of the cell to print |
Method Detail |
public void setFont(Font fm)
fm
- The font to be usedpublic float getHeight(FontRenderContext frc)
frc
- The font render context to be used for calculating font sizes.
public void setValue(Object o)
o
- The object to be printedpublic float getWidth(FontRenderContext frc)
frc
- The font render context to be used.
public void print(Graphics g, Rectangle2D.Float r)
g
- The graphics into which to printr
-
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |