Package org.apache.fop.afp.modca
Class AbstractDescriptor
- java.lang.Object
-
- org.apache.fop.afp.modca.AbstractAFPObject
-
- org.apache.fop.afp.modca.AbstractStructuredObject
-
- org.apache.fop.afp.modca.AbstractTripletStructuredObject
-
- org.apache.fop.afp.modca.AbstractDescriptor
-
- All Implemented Interfaces:
Streamable
- Direct Known Subclasses:
ContainerDataDescriptor
,GraphicsDataDescriptor
,ImageDataDescriptor
,ObjectAreaDescriptor
,PageDescriptor
,PresentationTextDescriptor
public abstract class AbstractDescriptor extends AbstractTripletStructuredObject
Base class for AFP descriptor objects
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.fop.afp.modca.AbstractAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected int
height
height of this descriptorprotected int
heightRes
height resolution of this descriptorprotected int
width
width of this descriptorprotected int
widthRes
width resolution of this descriptor-
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
Constructors Constructor Description AbstractDescriptor()
Default constructorAbstractDescriptor(int width, int height, int widthRes, int heightRes)
Constructor a PresentationTextDescriptor for the specified width and height.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHeight()
Returns the heightint
getWidth()
Returns the widthjava.lang.String
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
writeContent, writeEnd, writeStart, writeToStream
-
Methods inherited from class org.apache.fop.afp.modca.AbstractAFPObject
copySF, copySF, truncate, writeChunksToStream, writeObjects
-
-
-
-
Constructor Detail
-
AbstractDescriptor
public AbstractDescriptor()
Default constructor
-
AbstractDescriptor
public AbstractDescriptor(int width, int height, int widthRes, int heightRes)
Constructor a PresentationTextDescriptor for the specified width and height.- Parameters:
width
- The width of the page.height
- The height of the page.widthRes
- The width resolution of the page.heightRes
- The height resolution of the page.
-
-