Package org.compiere.print.layout
Class ParameterElement
java.lang.Object
org.compiere.print.layout.PrintElement
org.compiere.print.layout.GridElement
org.compiere.print.layout.ParameterElement
- All Implemented Interfaces:
ImageObserver
,Serializable
Parameter Table
- Version:
- $Id: ParameterElement.java,v 1.2 2006/07/30 00:53:02 jjanke Exp $
- Author:
- Jorg Janke
- See Also:
-
Field Summary
Fields inherited from class org.compiere.print.layout.GridElement
m_colGap, m_cols, m_colWidth, m_frc, m_iterator, m_rowGap, m_rowHeight, m_rows, m_textLayout
Fields inherited from class org.compiere.print.layout.PrintElement
LINK_COLOR, log, p_FieldAlignmentType, p_height, 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
ConstructorDescriptionParameterElement
(MQuery query, Properties ctx, MPrintTableFormat tFormat) Parameter Element. -
Method Summary
Modifier and TypeMethodDescriptionvoid
fitToPage
(int pageWidth) Fit parameter text to page widthvoid
paint
(Graphics2D g2D, int pageNo, Point2D pageStart, Properties ctx, boolean isView) Paint itMethods inherited from class org.compiere.print.layout.GridElement
calculateSize, setData, setGap
Methods inherited from class org.compiere.print.layout.PrintElement
getAbsoluteLocation, getBounds, getCurrentPage, getDetailInfo, getDrillAcross, getDrillDown, getHeight, getHeight, getLocation, getPageCount, getPageLogic, getPrintData, getRowIndex, getWidth, imageUpdate, isTranslated, layout, setCurrentPage, setLocation, setMaxHeight, setMaxWidth, setPageLogic, setPrintData, setRowIndex, toString, translate, waitForLoad
-
Constructor Details
-
ParameterElement
Parameter Element.Parameter fromValue - toValue
- Parameters:
query
- queryctx
- contexttFormat
- Table Format
-
-
Method Details
-
fitToPage
public void fitToPage(int pageWidth) Fit parameter text to page width- Parameters:
pageWidth
-
-
paint
Paint it- Overrides:
paint
in classGridElement
- Parameters:
g2D
- GraphicspageNo
- page number for multi page support (0 = header/footer) - ignoredpageStart
- top left Location of pagectx
- print contextisView
- true if online view (IDs are links)
-