Package org.apache.fop.afp
Class AFPGraphicsObjectInfo
- java.lang.Object
-
- org.apache.fop.afp.AFPDataObjectInfo
-
- org.apache.fop.afp.AFPGraphicsObjectInfo
-
public class AFPGraphicsObjectInfo extends AFPDataObjectInfo
A graphics object info which contains necessary painting objects
-
-
Field Summary
Fields Modifier and Type Field Description private java.awt.geom.Rectangle2Dareathe graphics object areaprivate AFPGraphics2Dg2dthe AFP graphics 2d implementationprivate org.apache.xmlgraphics.java2d.Graphics2DImagePainterpainterthe graphics object painter implementation-
Fields inherited from class org.apache.fop.afp.AFPDataObjectInfo
DEFAULT_MAPPING_OPTION
-
-
Constructor Summary
Constructors Constructor Description AFPGraphicsObjectInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.geom.Rectangle2DgetArea()Returns the graphics areaAFPGraphics2DgetGraphics2D()Returns the AFP graphics 2D implementationjava.lang.StringgetMimeType()Returns the mime type of this data objectorg.apache.xmlgraphics.java2d.Graphics2DImagePaintergetPainter()Returns the graphics paintervoidsetArea(java.awt.geom.Rectangle2D area)Sets the graphics area areavoidsetGraphics2D(AFPGraphics2D g2d)Sets the AFP graphics 2D implementationvoidsetPainter(org.apache.xmlgraphics.java2d.Graphics2DImagePainter graphicsPainter)Sets the graphics painterjava.lang.StringtoString()-
Methods inherited from class org.apache.fop.afp.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 Detail
-
painter
private org.apache.xmlgraphics.java2d.Graphics2DImagePainter painter
the graphics object painter implementation
-
area
private java.awt.geom.Rectangle2D area
the graphics object area
-
g2d
private AFPGraphics2D g2d
the AFP graphics 2d implementation
-
-
Method Detail
-
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
public java.awt.geom.Rectangle2D getArea()
Returns the graphics area- Returns:
- the graphics area
-
setArea
public void setArea(java.awt.geom.Rectangle2D area)
Sets the graphics area area- Parameters:
area- the graphics object area
-
setGraphics2D
public void setGraphics2D(AFPGraphics2D g2d)
Sets the AFP graphics 2D implementation- Parameters:
g2d- the AFP graphics 2D implementation
-
getGraphics2D
public AFPGraphics2D getGraphics2D()
Returns the AFP graphics 2D implementation- Returns:
- the AFP graphics 2D implementation
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAFPDataObjectInfo
-
getMimeType
public java.lang.String getMimeType()
Returns the mime type of this data object- Overrides:
getMimeTypein classAFPDataObjectInfo- Returns:
- the mime type of this data object
-
-