Package net.sf.jasperreports.engine
Interface JRPrintElement
- All Superinterfaces:
JRCommonElement,JRIdentifiable,JRPropertiesHolder,JRStyleContainer
- All Known Subinterfaces:
JRGenericPrintElement,JRPrintEllipse,JRPrintFrame,JRPrintGraphicElement,JRPrintImage,JRPrintLine,JRPrintRectangle,JRPrintText,JRRecordedValuesPrintElement
- All Known Implementing Classes:
JRBaseGenericPrintElement,JRBasePrintElement,JRBasePrintEllipse,JRBasePrintFrame,JRBasePrintGraphicElement,JRBasePrintImage,JRBasePrintLine,JRBasePrintRectangle,JRBasePrintText,JRRecordedValuesGenericPrintElement,JRRecordedValuesPrintImage,JRRecordedValuesPrintText,JRTemplateGenericPrintElement,JRTemplatePrintElement,JRTemplatePrintEllipse,JRTemplatePrintFrame,JRTemplatePrintGraphicElement,JRTemplatePrintImage,JRTemplatePrintLine,JRTemplatePrintRectangle,JRTemplatePrintText
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intA value used when no source element Id information is available. -
Method Summary
Modifier and TypeMethodDescription<T> voidaccept(PrintElementVisitor<T> visitor, T arg) Accepts a print element visitor.intgetKey()Returns a string key that can be used to identify the element.intReturns a numerical Id that together withgetSourceElementId()uniquely identifies a print element.intReturns a numerical Id associated to the fill element that generated this print element.intgetWidth()intgetX()intgetY()voidsetHeight(int height) voidvoidvoidsetWidth(int width) voidsetX(int x) voidsetY(int y) Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, setBackcolor, setForecolor, setModeMethods inherited from interface net.sf.jasperreports.engine.JRIdentifiable
getUUIDMethods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasPropertiesMethods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleName, getStyleNameReference
-
Field Details
-
UNSET_SOURCE_ELEMENT_ID
static final int UNSET_SOURCE_ELEMENT_IDA value used when no source element Id information is available.- See Also:
-
UNSET_PRINT_ELEMENT_ID
static final int UNSET_PRINT_ELEMENT_ID- See Also:
-
-
Method Details
-
getOrigin
JROrigin getOrigin() -
setStyle
-
getX
int getX() -
setUUID
-
setX
void setX(int x) -
getY
int getY() -
setY
void setY(int y) -
getWidth
int getWidth()- Specified by:
getWidthin interfaceJRCommonElement
-
setWidth
void setWidth(int width) -
getHeight
int getHeight()- Specified by:
getHeightin interfaceJRCommonElement
-
setHeight
void setHeight(int height) -
getKey
String getKey()Returns a string key that can be used to identify the element.When filling a report, the
report element keyis copied to all print elements generated by a report element. Note that this means that multiple elements having the same key can appear on the same page/filled report.- Specified by:
getKeyin interfaceJRCommonElement
-
accept
Accepts a print element visitor.The element calls the method that corresponds to the element type on the visitor.
- Type Parameters:
T- the type of the argument passed to the visit operation- Parameters:
visitor- the visitor objectsarg- the argument passed to the visit operation
-
getSourceElementId
int getSourceElementId()Returns a numerical Id associated to the fill element that generated this print element.- Returns:
- the Id of the fill element that generated this element
-
getPrintElementId
int getPrintElementId()Returns a numerical Id that together withgetSourceElementId()uniquely identifies a print element.- Returns:
- a print Id for the element
- See Also:
-