public abstract class AbstractGraphicsDrawingOrderContainer extends AbstractNamedAFPObject implements StructuredData, Completable, Startable
AbstractAFPObject.Category, AbstractAFPObject.Type
Modifier and Type | Field and Description |
---|---|
protected List |
objects
list of objects contained within this container
|
name
triplets
LOG, SF_CLASS, SF_HEADER_LENGTH
Modifier | Constructor and Description |
---|---|
protected |
AbstractGraphicsDrawingOrderContainer()
Default constructor
|
protected |
AbstractGraphicsDrawingOrderContainer(String name)
Named constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addAll(AbstractGraphicsDrawingOrderContainer graphicsContainer)
Adds all the contents of a given graphics container to this container
|
void |
addObject(StructuredData object)
Adds a given graphics object to this container
|
int |
getDataLength()
Returns the current data length
|
boolean |
isComplete()
Returns true if this object is complete
|
boolean |
isStarted()
Returns true if this object has started
|
StructuredData |
removeLast()
Removes the last drawing order from this container and returns it
|
void |
setComplete(boolean complete)
Sets whether or not this object is complete or not
|
void |
setStarted(boolean started)
Sets whether or not this object has started or not
|
protected void |
writeContent(OutputStream os)
Helper method to write the contents of the Object.
|
protected void |
writeStart(OutputStream os)
Helper method to write the start of the Object.
|
copySF, getName, getNameBytes, getNameLength, setName, toString
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTriplets
writeEnd, writeToStream
copySF, truncate, writeChunksToStream, writeObjects
protected List objects
protected AbstractGraphicsDrawingOrderContainer()
protected AbstractGraphicsDrawingOrderContainer(String name)
name
- the name of the containerprotected void writeStart(OutputStream os) throws IOException
writeStart
in class AbstractStructuredObject
os
- The stream to write toIOException
- throws an I/O exception if one occurredprotected void writeContent(OutputStream os) throws IOException
writeContent
in class AbstractStructuredObject
os
- The stream to write toIOException
- throws an I/O exception if one occurredpublic void addObject(StructuredData object)
object
- the structured data objectpublic void addAll(AbstractGraphicsDrawingOrderContainer graphicsContainer)
graphicsContainer
- a graphics containerpublic StructuredData removeLast()
public int getDataLength()
getDataLength
in interface StructuredData
public void setComplete(boolean complete)
setComplete
in interface Completable
complete
- true if this object is completepublic boolean isComplete()
isComplete
in interface Completable
public boolean isStarted()
public void setStarted(boolean started)
setStarted
in interface Startable
started
- true if this object has startedCopyright © 2025 Apache Software Foundation. All rights reserved.