|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.afp.modca.AbstractAFPObject
org.apache.fop.afp.modca.AbstractStructuredObject
org.apache.fop.afp.modca.AbstractTripletStructuredObject
org.apache.fop.afp.modca.AbstractNamedAFPObject
org.apache.fop.afp.ioca.ImageSegment
public class ImageSegment
An Image Segment is represented by a set of self-defining fields, fields that describe their own contents. It starts with a Begin Segment, and ends with an End Segment. Between the Begin Segment and End Segment is the image information to be processed, called the Image Content. Only one Image Content can exist within a single IOCA Image Segment.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.fop.afp.modca.AbstractAFPObject |
---|
AbstractAFPObject.Category, AbstractAFPObject.Type |
Field Summary |
---|
Fields inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject |
---|
name |
Fields inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject |
---|
triplets |
Fields inherited from class org.apache.fop.afp.modca.AbstractAFPObject |
---|
log, SF_CLASS, SF_HEADER |
Constructor Summary | |
---|---|
ImageSegment(Factory factory,
java.lang.String name)
Constructor for the image segment with the specified name, the name must be a fixed length of eight characters. |
Method Summary | |
---|---|
ImageContent |
getImageContent()
Returns the image content object associated with this image segment. |
protected int |
getNameLength()
Returns the name length |
void |
setCompression(byte compression)
Sets the image compression. |
void |
setData(byte[] imageData)
Set the data image data. |
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 |
setImageSize(int hsize,
int vsize,
int hresol,
int vresol)
Sets the image size parameters resolution, hsize and vsize. |
void |
setSubtractive(boolean subtractive)
Deprecated. Use IDEStructureParameter.setSubtractive(boolean) instead. |
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. |
Methods inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject |
---|
copySF, getName, getNameBytes, setName, toString |
Methods inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject |
---|
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setObjectClassification, writeTriplets |
Methods inherited from class org.apache.fop.afp.modca.AbstractStructuredObject |
---|
writeToStream |
Methods inherited from class org.apache.fop.afp.modca.AbstractAFPObject |
---|
copyChunks, copySF, truncate, writeChunksToStream, writeObjects |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImageSegment(Factory factory, java.lang.String name)
factory
- the object factoryname
- the name of the image.Method Detail |
---|
public ImageContent getImageContent()
public void setImageSize(int hsize, int vsize, int hresol, int vresol)
hsize
- The horizontal size of the image.vsize
- The vertical size of the image.hresol
- The horizontal resolution of the image.vresol
- The vertical resolution of the image.public 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 datapublic void writeContent(java.io.OutputStream os) throws java.io.IOException
writeContent
in class AbstractStructuredObject
os
- The stream to write to
java.io.IOException
- throws an I/O exception if one occurredprotected int getNameLength()
getNameLength
in class AbstractNamedAFPObject
protected void writeStart(java.io.OutputStream os) throws java.io.IOException
writeStart
in class AbstractStructuredObject
os
- The stream to write to
java.io.IOException
- throws an I/O exception if one occurredprotected void writeEnd(java.io.OutputStream os) throws java.io.IOException
writeEnd
in class AbstractStructuredObject
os
- The stream to write to
java.io.IOException
- an I/O exception if one occurred
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |