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_LENGTH| 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
|
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.
|
String |
toString() |
void |
writeToStream(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, setFullyQualifiedName, setObjectClassification, writeTripletswriteEndcopySF, truncate, writeChunksToStream, writeObjectspublic static final int MAX_DATA_LEN
public int getDataLength()
getDataLength in interface StructuredDatagetDataLength in class AbstractGraphicsDrawingOrderContainerpublic void setSegmentedData(boolean segmented)
segmented - true if this data object is not the last of the seriespublic 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 AbstractGraphicsDrawingOrderContainerobject - the structured data objectpublic StructuredData removeCurrentSegment()
public void writeToStream(OutputStream os) throws IOException
writeToStream in interface StreamablewriteToStream in class AbstractStructuredObjectos - the outputsteam streamIOException - an I/O exception of some sort has occurred.public String toString()
toString in class AbstractNamedAFPObjectpublic void addSegment(GraphicsChainedSegment segment)
segment - a graphics chained segmentCopyright © 2025 Apache Software Foundation. All rights reserved.