|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.print.layout.PrintElement
org.compiere.print.layout.GridElement
public class GridElement
Grid Element. Simple Table with Rows/Columns, but no Headers
| Field Summary |
|---|
| Fields inherited from class org.compiere.print.layout.PrintElement |
|---|
LINK_COLOR, log, p_FieldAlignmentType, p_height, p_info, p_maxHeight, p_maxWidth, p_pageLocation, p_sizeCalculated, p_width |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
GridElement(int rows,
int cols)
Grid Element Constructor Call setData to initialize content |
|
| Method Summary | |
|---|---|
protected boolean |
calculateSize()
Layout & Calculate Image Size. |
void |
paint(Graphics2D g2D,
int pageNo,
Point2D pageStart,
Ctx ctx,
boolean isView)
Paint it |
void |
setData(int row,
int col,
String stringData,
Font font,
Paint foreground)
Create TextLayout from Data and calculate size. |
void |
setGap(int rowGap,
int colGap)
Set Rpw/Column gap |
| Methods inherited from class org.compiere.print.layout.PrintElement |
|---|
getAbsoluteLocation, getBounds, getDrillAcross, getDrillDown, getHeight, getHeight, getLocation, getPageCount, getWidth, imageUpdate, isTranslated, layout, setLocation, setMaxHeight, setMaxWidth, toString, translate, waitForLoad |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GridElement(int rows,
int cols)
rows - max rowscols - max cols| Method Detail |
|---|
public void setData(int row,
int col,
String stringData,
Font font,
Paint foreground)
row - rowcol - columnstringData - info elementfont - fontforeground - color for foreground
public void setGap(int rowGap,
int colGap)
rowGap - row gapcolGap - column gapprotected boolean calculateSize()
calculateSize in class PrintElement
public void paint(Graphics2D g2D,
int pageNo,
Point2D pageStart,
Ctx ctx,
boolean isView)
paint in class PrintElementg2D - GraphicspageStart - top left Location of pagepageNo - page number for multi page support (0 = header/footer) - ignoredctx - print contextisView - true if online view (IDs are links)
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||