Package org.apache.fop.afp.goca
Class GraphicsImage
java.lang.Object
org.apache.fop.afp.modca.AbstractAFPObject
org.apache.fop.afp.goca.AbstractGraphicsDrawingOrder
org.apache.fop.afp.goca.GraphicsImage
- All Implemented Interfaces:
Streamable,StructuredData
A GOCA Image
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.fop.afp.modca.AbstractAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type -
Field Summary
FieldsFields inherited from class org.apache.fop.afp.modca.AbstractAFPObject
LOG, SF_CLASS, SF_HEADER_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionGraphicsImage(int x, int y, int width, int height, byte[] imageData) Main constructor -
Method Summary
Modifier and TypeMethodDescriptionintReturns the data length of this structured fieldtoString()voidDataStream objects must implement the writeToStream() method to write its data to the given OutputStreamMethods inherited from class org.apache.fop.afp.goca.AbstractGraphicsDrawingOrder
getNameMethods inherited from class org.apache.fop.afp.modca.AbstractAFPObject
copySF, copySF, truncate, writeChunksToStream, writeObjects
-
Field Details
-
MAX_DATA_LEN
public static final short MAX_DATA_LENthe maximum image data length- See Also:
-
-
Constructor Details
-
GraphicsImage
public GraphicsImage(int x, int y, int width, int height, byte[] imageData) Main constructor- Parameters:
x- the x coordinate of the imagey- the y coordinate of the imagewidth- the image widthheight- the image heightimageData- the image data
-
-
Method Details
-
getDataLength
public int getDataLength()Returns the data length of this structured field- Returns:
- the data length of this structured field
-
writeToStream
DataStream objects must implement the writeToStream() method to write its data to the given OutputStream- Parameters:
os- the outputsteam stream- Throws:
IOException- an I/O exception of some sort has occurred.
-
toString
-