Completable, Startable, Streamablepublic class ImageObject extends AbstractDataObject
AbstractAFPObject.Category, AbstractAFPObject.TypeLOG, SF_CLASS, SF_HEADER_LENGTHfactory, objectEnvironmentGroupnametriplets| Constructor | Description |
|---|---|
ImageObject(Factory factory,
java.lang.String name) |
Constructor for the image object with the specified name,
the name must be a fixed length of eight characters.
|
| Modifier and Type | Method | Description |
|---|---|---|
ImageSegment |
getImageSegment() |
Returns the image segment object associated with this image object.
|
void |
setCompression(byte compression) |
Sets the image compression.
|
void |
setData(byte[] imageData) |
Set the data of the image.
|
void |
setEncoding(byte encoding) |
Sets the image encoding.
|
void |
setIDEColorModel(byte colorModel) |
Deprecated.
Use
IDEStructureParameter.setColorModel(byte)
instead. |
void |
setIDESize(byte size) |
Sets the image IDE size.
|
void |
setSubtractive(boolean subtractive) |
Deprecated.
Use
IDEStructureParameter.setSubtractive(boolean)
instead. |
void |
setViewport(AFPDataObjectInfo dataObjectInfo) |
Sets the object view port (area position and size).
|
protected void |
writeContent(java.io.OutputStream os) |
Helper method to write the contents of the Object.
|
protected void |
writeEnd(java.io.OutputStream os) |
Helper method to write the end of the Object.
|
protected void |
writeStart(java.io.OutputStream os) |
Helper method to write the start of the Object.
|
copySF, truncate, writeChunksToStream, writeObjectsgetObjectEnvironmentGroup, isComplete, isStarted, setComplete, setStartedcopySF, getName, getNameBytes, getNameLength, setName, toStringwriteToStreamaddTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTripletspublic ImageObject(Factory factory, java.lang.String name)
name - The name of the image.factory - the resource managerpublic ImageSegment getImageSegment()
public void setViewport(AFPDataObjectInfo dataObjectInfo)
setViewport in class AbstractDataObjectdataObjectInfo - the object area infopublic void setEncoding(byte encoding)
encoding - The image encoding.public void setCompression(byte compression)
compression - The image compression.public void setIDESize(byte size)
size - The IDE size.public void setIDEColorModel(byte colorModel)
IDEStructureParameter.setColorModel(byte)
instead.colorModel - the IDE color model.public void setSubtractive(boolean subtractive)
IDEStructureParameter.setSubtractive(boolean)
instead.subtractive - true for subtractive mode, false for additive modepublic void setData(byte[] imageData)
imageData - the image dataprotected void writeStart(java.io.OutputStream os)
throws java.io.IOException
writeStart in class AbstractDataObjectos - The stream to write tojava.io.IOException - throws an I/O exception if one occurredprotected void writeContent(java.io.OutputStream os)
throws java.io.IOException
writeContent in class AbstractDataObjectos - The stream to write tojava.io.IOException - throws an I/O exception if one occurredprotected void writeEnd(java.io.OutputStream os)
throws java.io.IOException
writeEnd in class AbstractStructuredObjectos - The stream to write tojava.io.IOException - an I/O exception if one occurredCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.