Streamable
ContainerDataDescriptor
, GraphicsDataDescriptor
, ImageDataDescriptor
, ObjectAreaDescriptor
, PageDescriptor
, PresentationTextDescriptor
public abstract class AbstractDescriptor extends AbstractTripletStructuredObject
AbstractAFPObject.Category, AbstractAFPObject.Type
Modifier and Type | Field | Description |
---|---|---|
protected int |
height |
height of this descriptor
|
protected int |
heightRes |
height resolution of this descriptor
|
protected int |
width |
width of this descriptor
|
protected int |
widthRes |
width resolution of this descriptor
|
LOG, SF_CLASS, SF_HEADER_LENGTH
triplets
Constructor | Description |
---|---|
AbstractDescriptor() |
Default constructor
|
AbstractDescriptor(int width,
int height,
int widthRes,
int heightRes) |
Constructor a PresentationTextDescriptor for the specified
width and height.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getHeight() |
Returns the height
|
int |
getWidth() |
Returns the width
|
java.lang.String |
toString() |
copySF, copySF, truncate, writeChunksToStream, writeObjects
writeContent, writeEnd, writeStart, writeToStream
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTriplets
protected int width
protected int height
protected int widthRes
protected int heightRes
public AbstractDescriptor()
public AbstractDescriptor(int width, int height, int widthRes, int heightRes)
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.Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.