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
Base class for AFP descriptor objects
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intheight of this descriptorprotected intheight resolution of this descriptorprotected intwidth of this descriptorprotected intwidth resolution of this descriptorFields inherited from class AbstractTripletStructuredObject
tripletsFields inherited from class AbstractAFPObject
LOG, SF_CLASS, SF_HEADER_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorAbstractDescriptor(int width, int height, int widthRes, int heightRes) Constructor a PresentationTextDescriptor for the specified width and height. -
Method Summary
Methods inherited from class AbstractTripletStructuredObject
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTripletsMethods inherited from class AbstractStructuredObject
writeContent, writeEnd, writeStart, writeToStreamMethods inherited from class AbstractAFPObject
copySF, copySF, truncate, writeChunksToStream, writeObjects
-
Field Details
-
width
protected int widthwidth of this descriptor -
height
protected int heightheight of this descriptor -
widthRes
protected int widthReswidth resolution of this descriptor -
heightRes
protected int heightResheight resolution of this descriptor
-
-
Constructor Details
-
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.
-
-
Method Details
-
toString
-
getWidth
public int getWidth()Returns the width- Returns:
- the width
-
getHeight
public int getHeight()Returns the height- Returns:
- the height
-