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_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, writeStart
copySF, getName, getNameBytes, getNameLength, setName
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTriplets
writeEnd
copySF, truncate, writeChunksToStream, writeObjects
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 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(OutputStream os) throws IOException
writeToStream
in interface Streamable
writeToStream
in class AbstractStructuredObject
os
- the outputsteam streamIOException
- an I/O exception of some sort has occurred.public String toString()
toString
in class AbstractNamedAFPObject
public void addSegment(GraphicsChainedSegment segment)
segment
- a graphics chained segmentCopyright © 2025 Apache Software Foundation. All rights reserved.