Completable
, Startable
, Streamable
, StructuredData
public final class GraphicsData extends AbstractGraphicsDrawingOrderContainer
AbstractAFPObject.Category, AbstractAFPObject.Type
Modifier and Type | Field | Description |
---|---|---|
static int |
MAX_DATA_LEN |
the maximum graphics data length
|
LOG, SF_CLASS, SF_HEADER_LENGTH
objects
name
triplets
Constructor | Description |
---|---|
GraphicsData() |
Main constructor
|
Modifier and Type | Method | 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.
|
GraphicsChainedSegment |
newSegment(boolean appended,
boolean prologPresent) |
Creates a new graphics segment.
|
StructuredData |
removeCurrentSegment() |
Removes the current segment from this graphics data
|
void |
setSegmentedData(boolean segmented) |
Sets the indicator that this instance is a part of a series of segmented data chunks.
|
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
|
copySF, truncate, writeChunksToStream, writeObjects
addAll, isComplete, isStarted, removeLast, setComplete, setStarted, writeContent, writeStart
copySF, getName, getNameBytes, getNameLength, setName
writeEnd
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTriplets
public static final int MAX_DATA_LEN
public int getDataLength()
getDataLength
in interface StructuredData
getDataLength
in class AbstractGraphicsDrawingOrderContainer
public void setSegmentedData(boolean segmented)
segmented
- true if this data object is not the last of the seriespublic java.lang.String createSegmentName()
public GraphicsChainedSegment newSegment()
public GraphicsChainedSegment newSegment(boolean appended, boolean prologPresent)
appended
- true if this segment is appended to the previous oneprologPresent
- true if started with a prologpublic 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-2016 The Apache Software Foundation. All Rights Reserved.