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
FieldsModifier and TypeFieldDescriptionprivate final int
heightprivate final byte[]
image datastatic final short
the maximum image data lengthprivate final int
widthprivate final int
x coordinateprivate final int
y coordinateFields 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 TypeMethodDescriptionint
Returns the data length of this structured field(package private) byte
Returns the order code of this structured fieldtoString()
void
DataStream objects must implement the writeToStream() method to write its data to the given OutputStreamMethods inherited from class org.apache.fop.afp.goca.AbstractGraphicsDrawingOrder
getData, getName
Methods 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:
-
x
private final int xx coordinate -
y
private final int yy coordinate -
width
private final int widthwidth -
height
private final int heightheight -
imageData
private final byte[] imageDataimage data
-
-
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
-
getOrderCode
byte getOrderCode()Description copied from class:AbstractGraphicsDrawingOrder
Returns the order code of this structured field- Specified by:
getOrderCode
in classAbstractGraphicsDrawingOrder
- Returns:
- the order code 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
-