|
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.StringElement
public class StringElement
String Form Print ELement. The input can be multiple lines. The first tab is expanded.
| 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 | |
|---|---|
StringElement(AttributedString string)
Attributed String Constructor |
|
StringElement(Object content,
Font font,
Paint paint,
NamePair ID,
String label,
String labelSuffix)
Field Constructor. |
|
StringElement(String inText,
Font font,
Paint paint,
NamePair ID,
boolean translateText)
Standard Field Constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
calculateSize()
Layout and Calculate Size. |
Query |
getDrillAcross(Point relativePoint,
int pageNo)
Get Drill Across value |
Query |
getDrillDown(Point relativePoint,
int pageNo)
Get Drill Down value |
NamePair |
getID()
Get optional ID |
String |
getOriginalString()
Get Original String |
void |
paint(Graphics2D g2D,
int pageNo,
Point2D pageStart,
Ctx ctx,
boolean isView)
Paint/Print. |
String |
toString()
String Representation |
void |
translate(Ctx ctx)
Translate Context if required If content is translated, the element needs to stay in the bounds of the originally calculated size and need to align the field. |
| Methods inherited from class org.compiere.print.layout.PrintElement |
|---|
getAbsoluteLocation, getBounds, getHeight, getHeight, getLocation, getPageCount, getWidth, imageUpdate, isTranslated, layout, setLocation, setMaxHeight, setMaxWidth, waitForLoad |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StringElement(String inText,
Font font,
Paint paint,
NamePair ID,
boolean translateText)
inText - textfont - fontpaint - paintID - optional ID (null if document)translateText - if true, check for optional text translationpublic StringElement(AttributedString string)
string - attributed string
public StringElement(Object content,
Font font,
Paint paint,
NamePair ID,
String label,
String labelSuffix)
content - text or booleanfont - fontpaint - paintID - optional ID (null if document)label - optional labellabelSuffix - optional label suffix| Method Detail |
|---|
public NamePair getID()
public String getOriginalString()
public void translate(Ctx ctx)
translate in class PrintElementctx - contextprotected boolean calculateSize()
calculateSize in class PrintElement
public Query getDrillDown(Point relativePoint,
int pageNo)
getDrillDown in class PrintElementrelativePoint - relative PointpageNo - page number (ignored)
public Query getDrillAcross(Point relativePoint,
int pageNo)
getDrillAcross in class PrintElementrelativePoint - relative PointpageNo - page number (ignored)
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)public String toString()
toString in class PrintElement
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||