Package org.apache.fop.afp
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 Rectangle2D
the graphics object areaprivate AFPGraphics2D
the AFP graphics 2d implementationprivate org.apache.xmlgraphics.java2d.Graphics2DImagePainter
the graphics object painter implementationFields inherited from class org.apache.fop.afp.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.Graphics2DImagePainter
Returns the graphics paintervoid
setArea
(Rectangle2D area) Sets the graphics area areavoid
Sets the AFP graphics 2D implementationvoid
setPainter
(org.apache.xmlgraphics.java2d.Graphics2DImagePainter graphicsPainter) Sets the graphics paintertoString()
Methods inherited from class org.apache.fop.afp.AFPDataObjectInfo
getData, getDataHeight, getDataHeightRes, getDataWidth, getDataWidthRes, getMappingOption, getObjectAreaInfo, getObjectType, getResourceInfo, getUri, isCreatePageSegment, setCreatePageSegment, setData, setDataHeight, setDataHeightRes, setDataWidth, setDataWidthRes, setMappingOption, setMimeType, setObjectAreaInfo, setResourceInfo, setUri
-
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
Returns the graphics area- Returns:
- the graphics area
-
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:
toString
in classAFPDataObjectInfo
-
getMimeType
Returns the mime type of this data object- Overrides:
getMimeType
in classAFPDataObjectInfo
- Returns:
- the mime type of this data object
-