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
Fields 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.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 org.apache.fop.afp.AFPDataObjectInfo
getData, getDataHeight, getDataHeightRes, getDataWidth, getDataWidthRes, getMappingOption, getObjectAreaInfo, getObjectType, getResourceInfo, getTransparencyMask, getUri, isCreatePageSegment, setCreatePageSegment, setData, setDataHeight, setDataHeightRes, setDataWidth, setDataWidthRes, setMappingOption, setMimeType, setObjectAreaInfo, setResourceInfo, setTransparencyMask, setUri
-
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:
toStringin classAFPDataObjectInfo
-
getMimeType
Returns the mime type of this data object- Overrides:
getMimeTypein classAFPDataObjectInfo- Returns:
- the mime type of this data object
-