public class AFPDataObjectInfo
extends java.lang.Object
Constructor and Description |
---|
AFPDataObjectInfo()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Returns the object data
|
int |
getDataHeight()
Returns the image data height
|
int |
getDataHeightRes()
Returns the data height resolution
|
int |
getDataWidth()
Returns the image data width
|
int |
getDataWidthRes()
Returns the data width resolution
|
byte |
getMappingOption()
Returns the way an image is mapped into its target area.
|
java.lang.String |
getMimeType()
Returns the mime type of this data object
|
AFPObjectAreaInfo |
getObjectAreaInfo()
Returns the object area info
|
Registry.ObjectType |
getObjectType()
Convenience method to return the object type
|
AFPResourceInfo |
getResourceInfo()
Returns the resource level at which this data object should reside
|
java.lang.String |
getUri()
Returns the uri of this data object
|
boolean |
isCreatePageSegment()
Indicates whether a page segment or a normal object shall be created.
|
void |
setCreatePageSegment(boolean value)
Controls whether to create a page segment or a normal object.
|
void |
setData(byte[] data)
Sets the object data
|
void |
setDataHeight(int imageDataHeight)
Sets the image data height
|
void |
setDataHeightRes(int dataHeightRes)
Sets the data height resolution
|
void |
setDataWidth(int imageDataWidth)
Sets the image data width
|
void |
setDataWidthRes(int dataWidthRes)
Sets the data width resolution
|
void |
setMappingOption(byte mappingOption)
Sets the way an image is mapped into its target area.
|
void |
setMimeType(java.lang.String mimeType)
Sets the image mime type
|
void |
setObjectAreaInfo(AFPObjectAreaInfo objectAreaInfo)
Sets the object area info
|
void |
setResourceInfo(AFPResourceInfo resourceInfo)
Sets the resource level at which this object should reside
|
void |
setUri(java.lang.String uri)
Sets the data object uri
|
java.lang.String |
toString() |
public void setMimeType(java.lang.String mimeType)
mimeType
- the image mime typepublic java.lang.String getMimeType()
public Registry.ObjectType getObjectType()
public AFPResourceInfo getResourceInfo()
public void setResourceInfo(AFPResourceInfo resourceInfo)
resourceInfo
- the resource level at which this data object should residepublic void setObjectAreaInfo(AFPObjectAreaInfo objectAreaInfo)
objectAreaInfo
- the object area infopublic AFPObjectAreaInfo getObjectAreaInfo()
public java.lang.String getUri()
public void setUri(java.lang.String uri)
uri
- the data object uripublic int getDataWidth()
public void setDataWidth(int imageDataWidth)
imageDataWidth
- the image data widthpublic int getDataHeight()
public void setDataHeight(int imageDataHeight)
imageDataHeight
- the image data heightpublic int getDataHeightRes()
public void setDataHeightRes(int dataHeightRes)
dataHeightRes
- the data height resolutionpublic int getDataWidthRes()
public void setDataWidthRes(int dataWidthRes)
dataWidthRes
- the data width resolutionpublic void setData(byte[] data)
data
- the object datapublic byte[] getData()
public void setCreatePageSegment(boolean value)
value
- true for page segments, false for objectspublic boolean isCreatePageSegment()
public void setMappingOption(byte mappingOption)
mappingOption
- the mapping option (Valid values: see Mapping Option Triplet)public byte getMappingOption()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.