|
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
public abstract class PrintElement
Print Element
| Field Summary | |
|---|---|
static Color |
LINK_COLOR
Link Color |
protected CLogger |
log
Logger |
protected String |
p_FieldAlignmentType
Field Align Type |
protected float |
p_height
|
protected String |
p_info
Image Info |
protected float |
p_maxHeight
|
protected float |
p_maxWidth
Max Size of Element |
protected Point2D.Double |
p_pageLocation
Location on Page |
protected boolean |
p_sizeCalculated
|
protected float |
p_width
Calculated Size of Element |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
protected |
PrintElement()
Constructor |
| Method Summary | |
|---|---|
protected abstract boolean |
calculateSize()
Layout and Calculate Size Set p_width & p_height |
protected Point2D.Double |
getAbsoluteLocation(Point2D pageStart)
Return Absolute Position |
Rectangle |
getBounds()
Get relative Bounds of Element |
Query |
getDrillAcross(Point relativePoint,
int pageNo)
Get Drill Across value |
Query |
getDrillDown(Point relativePoint,
int pageNo)
Get Drill Down value |
float |
getHeight()
Get Calculated Height |
float |
getHeight(int pageNo)
Get Calculated Height on page |
Point2D |
getLocation()
Get Location within page |
int |
getPageCount()
Get number of pages |
float |
getWidth()
Get Calculated Width |
boolean |
imageUpdate(Image img,
int infoflags,
int x,
int y,
int width,
int height)
Image Observer |
boolean |
isTranslated()
Content is translated |
void |
layout(float maxWidth,
float maxHeight,
boolean isHeightOneLine,
String FieldAlignmentType)
Layout Element |
abstract void |
paint(Graphics2D g2D,
int pageNo,
Point2D pageStart,
Ctx ctx,
boolean isView)
Paint/Print. |
void |
setLocation(Point2D pageLocation)
Set Location within page. |
void |
setMaxHeight(float maxHeight)
Set Maximum Height |
void |
setMaxWidth(float maxWidth)
Set Maximum Width |
String |
toString()
String Representation |
void |
translate(Ctx ctx)
Translate Context if required. |
boolean |
waitForLoad(Image image)
Wait until Image is loaded. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Color LINK_COLOR
protected float p_width
protected float p_height
protected boolean p_sizeCalculated
protected float p_maxWidth
protected float p_maxHeight
protected String p_FieldAlignmentType
protected Point2D.Double p_pageLocation
protected String p_info
protected CLogger log
| Constructor Detail |
|---|
protected PrintElement()
| Method Detail |
|---|
public float getWidth()
public float getHeight()
public float getHeight(int pageNo)
pageNo - page number
public int getPageCount()
protected abstract boolean calculateSize()
public void layout(float maxWidth,
float maxHeight,
boolean isHeightOneLine,
String FieldAlignmentType)
maxWidth - max widthmaxHeight - max heightisHeightOneLine - just one lineFieldAlignmentType - alignment type (MPrintFormatItem.FIELD_ALIGN_*)public void setMaxHeight(float maxHeight)
maxHeight - maximum height (0) is no limitpublic void setMaxWidth(float maxWidth)
maxWidth - maximum width (0) is no limitpublic void setLocation(Point2D pageLocation)
pageLocation - location within pagepublic Point2D getLocation()
protected Point2D.Double getAbsoluteLocation(Point2D pageStart)
pageStart - start of page
public Rectangle getBounds()
public Query getDrillDown(Point relativePoint,
int pageNo)
relativePoint - relative PointpageNo - page number
public Query getDrillAcross(Point relativePoint,
int pageNo)
relativePoint - relative PointpageNo - page number
public void translate(Ctx ctx)
ctx - contextpublic boolean isTranslated()
public abstract void paint(Graphics2D g2D,
int pageNo,
Point2D pageStart,
Ctx ctx,
boolean isView)
g2D - GraphicspageNo - page number for multi page support (0 = header/footer)pageStart - top left Location of pagectx - contextisView - true if online view (IDs are links)
public boolean imageUpdate(Image img,
int infoflags,
int x,
int y,
int width,
int height)
imageUpdate in interface ImageObserverimg - imageinfoflags - Observer flagsx - x coordinatey - y coordinatewidth - image widthheight - image height
public boolean waitForLoad(Image image)
image - image
public String toString()
toString in class Object
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||