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
|
objectsnametripletslog, 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, writeStartcopySF, getName, getNameBytes, getNameLength, setNameaddTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setObjectClassification, writeTripletswriteEndcopyChunks, copySF, truncate, writeChunksToStream, writeObjectspublic static final int MAX_DATA_LEN
public int getDataLength()
getDataLength in interface StructuredDatagetDataLength in class AbstractGraphicsDrawingOrderContainerpublic java.lang.String createSegmentName()
public GraphicsChainedSegment newSegment()
public void addObject(StructuredData object)
addObject in class AbstractGraphicsDrawingOrderContainerobject - the structured data objectpublic StructuredData removeCurrentSegment()
public void writeToStream(java.io.OutputStream os)
throws java.io.IOException
writeToStream in interface StreamablewriteToStream in class AbstractStructuredObjectos - the outputsteam streamjava.io.IOException - an I/O exception of some sort has occurred.public java.lang.String toString()
toString in class AbstractNamedAFPObjectpublic void addSegment(GraphicsChainedSegment segment)
segment - a graphics chained segmentCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.