public final class GraphicsData extends AbstractGraphicsDrawingOrderContainer
AbstractAFPObject.Category, AbstractAFPObject.Type
Modifier and Type | Field and Description |
---|---|
static int |
MAX_DATA_LEN
the maximum graphics data length
|
objects
name
triplets
log, SF_CLASS, SF_HEADER
Constructor and Description |
---|
GraphicsData()
Main constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addObject(StructuredData object)
Adds a given graphics object to this container
|
void |
addSegment(GraphicsChainedSegment segment)
Adds the given segment to this graphics data
|
java.lang.String |
createSegmentName()
Returns a new segment name
|
int |
getDataLength()
Returns the current data length
|
GraphicsChainedSegment |
newSegment()
Creates a new graphics segment
|
StructuredData |
removeCurrentSegment()
Removes the current segment from this graphics data
|
java.lang.String |
toString() |
void |
writeToStream(java.io.OutputStream os)
DataStream objects must implement the writeToStream()
method to write its data to the given OutputStream
|
addAll, isComplete, isStarted, removeLast, setComplete, setStarted, writeContent, writeStart
copySF, getName, getNameBytes, getNameLength, setName
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setObjectClassification, writeTriplets
writeEnd
copyChunks, copySF, truncate, writeChunksToStream, writeObjects
public static final int MAX_DATA_LEN
public int getDataLength()
getDataLength
in interface StructuredData
getDataLength
in class AbstractGraphicsDrawingOrderContainer
public java.lang.String createSegmentName()
public GraphicsChainedSegment newSegment()
public void addObject(StructuredData object)
addObject
in class AbstractGraphicsDrawingOrderContainer
object
- the structured data objectpublic StructuredData removeCurrentSegment()
public void writeToStream(java.io.OutputStream os) throws java.io.IOException
writeToStream
in interface Streamable
writeToStream
in class AbstractStructuredObject
os
- the outputsteam streamjava.io.IOException
- an I/O exception of some sort has occurred.public java.lang.String toString()
toString
in class AbstractNamedAFPObject
public void addSegment(GraphicsChainedSegment segment)
segment
- a graphics chained segmentCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.