|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.freehep.swing.print.table.DefaultCellPrinter
public class 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 CellPrinterfont - The font to be usedpublic float getHeight(FontRenderContext frc)
CellPrinter
getHeight in interface CellPrinterfrc - The font render context to be used for calculating font sizes.
public void setValue(Object o)
CellPrinter
setValue in interface CellPrintero - The object to be printedpublic float getWidth(FontRenderContext frc)
CellPrinter
getWidth in interface CellPrinterfrc - The font render context to be used.
public void print(Graphics g,
Rectangle2D.Float r)
CellPrinter
print in interface CellPrinterg - The graphics into which to printprotected String format(Object o)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||