|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.afp.modca.AbstractAFPObject
org.apache.fop.afp.modca.AbstractStructuredObject
org.apache.fop.afp.modca.AbstractTripletStructuredObject
org.apache.fop.afp.modca.AbstractNamedAFPObject
org.apache.fop.afp.modca.AbstractDataObject
public abstract class AbstractDataObject
Abstract base class used by the ImageObject and GraphicsObject which both have define an ObjectEnvironmentGroup
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.fop.afp.modca.AbstractAFPObject |
---|
AbstractAFPObject.Category, AbstractAFPObject.Type |
Field Summary | |
---|---|
protected Factory |
factory
the object factory |
protected ObjectEnvironmentGroup |
objectEnvironmentGroup
the object environment group |
Fields inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject |
---|
name |
Fields inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject |
---|
triplets |
Fields inherited from class org.apache.fop.afp.modca.AbstractAFPObject |
---|
LOG, SF_CLASS, SF_HEADER_LENGTH |
Constructor Summary | |
---|---|
AbstractDataObject(Factory factory,
java.lang.String name)
Named constructor |
Method Summary | |
---|---|
ObjectEnvironmentGroup |
getObjectEnvironmentGroup()
Gets the ObjectEnvironmentGroup |
boolean |
isComplete()
Returns true if this object is complete |
boolean |
isStarted()
Returns true if this object has started |
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 |
void |
setViewport(AFPDataObjectInfo dataObjectInfo)
Sets the object view port (area position and size). |
protected void |
writeContent(java.io.OutputStream os)
Helper method to write the contents of the Object. |
protected void |
writeStart(java.io.OutputStream os)
Helper method to write the start of the Object. |
Methods inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject |
---|
copySF, getName, getNameBytes, getNameLength, setName, toString |
Methods inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject |
---|
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTriplets |
Methods inherited from class org.apache.fop.afp.modca.AbstractStructuredObject |
---|
writeEnd, writeToStream |
Methods inherited from class org.apache.fop.afp.modca.AbstractAFPObject |
---|
copySF, truncate, writeChunksToStream, writeObjects |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ObjectEnvironmentGroup objectEnvironmentGroup
protected final Factory factory
Constructor Detail |
---|
public AbstractDataObject(Factory factory, java.lang.String name)
factory
- the object factoryname
- data object nameMethod Detail |
---|
public void setViewport(AFPDataObjectInfo dataObjectInfo)
dataObjectInfo
- the object area infopublic ObjectEnvironmentGroup getObjectEnvironmentGroup()
protected void writeStart(java.io.OutputStream os) throws java.io.IOException
writeStart
in class AbstractStructuredObject
os
- The stream to write to
java.io.IOException
- throws an I/O exception if one occurredprotected void writeContent(java.io.OutputStream os) throws java.io.IOException
writeContent
in class AbstractStructuredObject
os
- The stream to write to
java.io.IOException
- throws an I/O exception if one occurredpublic void setStarted(boolean started)
setStarted
in interface Startable
started
- true if this object has startedpublic boolean isStarted()
isStarted
in interface Startable
public void setComplete(boolean complete)
setComplete
in interface Completable
complete
- true if this object is completepublic boolean isComplete()
isComplete
in interface Completable
|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |