Class AFPGraphicsObjectInfo
java.lang.Object
org.apache.fop.afp.AFPDataObjectInfo
org.apache.fop.afp.AFPGraphicsObjectInfo
A graphics object info which contains necessary painting objects
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Rectangle2Dthe graphics object areaprivate AFPGraphics2Dthe AFP graphics 2d implementationprivate org.apache.xmlgraphics.java2d.Graphics2DImagePainterthe graphics object painter implementationFields inherited from class AFPDataObjectInfo
DEFAULT_MAPPING_OPTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArea()Returns the graphics areaReturns the AFP graphics 2D implementationReturns the mime type of this data objectorg.apache.xmlgraphics.java2d.Graphics2DImagePainterReturns the graphics paintervoidsetArea(Rectangle2D area) Sets the graphics area areavoidSets the AFP graphics 2D implementationvoidsetPainter(org.apache.xmlgraphics.java2d.Graphics2DImagePainter graphicsPainter) Sets the graphics paintertoString()Methods inherited from class AFPDataObjectInfo
getData, getDataHeight, getDataHeightRes, getDataWidth, getDataWidthRes, getMappingOption, getObjectAreaInfo, getObjectType, getResourceInfo, getTransparencyMask, getUri, isCreatePageSegment, isUseIocaImages, setCreatePageSegment, setData, setDataHeight, setDataHeightRes, setDataWidth, setDataWidthRes, setMappingOption, setMimeType, setObjectAreaInfo, setResourceInfo, setTransparencyMask, setUri, setUseIocaImages
-
Field Details
-
painter
private org.apache.xmlgraphics.java2d.Graphics2DImagePainter painterthe graphics object painter implementation -
area
the graphics object area -
g2d
the AFP graphics 2d implementation
-
-
Constructor Details
-
AFPGraphicsObjectInfo
public AFPGraphicsObjectInfo()
-
-
Method Details
-
getPainter
public org.apache.xmlgraphics.java2d.Graphics2DImagePainter getPainter()Returns the graphics painter- Returns:
- the graphics painter
-
setPainter
public void setPainter(org.apache.xmlgraphics.java2d.Graphics2DImagePainter graphicsPainter) Sets the graphics painter- Parameters:
graphicsPainter- the graphics painter
-
getArea
-
setArea
Sets the graphics area area- Parameters:
area- the graphics object area
-
setGraphics2D
Sets the AFP graphics 2D implementation- Parameters:
g2d- the AFP graphics 2D implementation
-
getGraphics2D
Returns the AFP graphics 2D implementation- Returns:
- the AFP graphics 2D implementation
-
toString
- Overrides:
toStringin classAFPDataObjectInfo
-
getMimeType
Returns the mime type of this data object- Overrides:
getMimeTypein classAFPDataObjectInfo- Returns:
- the mime type of this data object
-