Package org.apache.fop.afp
Class AFPResourceInfo
java.lang.Object
org.apache.fop.afp.AFPResourceInfo
The level at which a resource is to reside in the AFP output
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AFPResourceLevel
the general default resource levelprivate Dimension
the image dimension in page coordinates (non-null only when page segments are generated because the cannot be scaled for painting).private AFPResourceLevel
the resource level of this resourceprivate boolean
true when the resource level was changedprivate String
the reference name of this resourceprivate String
the URI of this resource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns an optional image dimension (in page coordinates).getLevel()
Returns the resource levelgetName()
Returns the resource reference namegetUri()
Returns the URI of this data object.int
hashCode()
boolean
Returns true when the resource level was setvoid
Sets an optional image dimension (in page coordinates).void
setLevel
(AFPResourceLevel resourceLevel) Sets the resource levelvoid
Sets the resource reference namevoid
Sets the data object URI.toString()
-
Field Details
-
DEFAULT_LEVEL
the general default resource level -
uri
the URI of this resource -
imageDimension
the image dimension in page coordinates (non-null only when page segments are generated because the cannot be scaled for painting). -
name
the reference name of this resource -
level
the resource level of this resource -
levelChanged
private boolean levelChangedtrue when the resource level was changed
-
-
Constructor Details
-
AFPResourceInfo
public AFPResourceInfo()
-
-
Method Details
-
setUri
Sets the data object URI.- Parameters:
uri
- the data object URI
-
getUri
Returns the URI of this data object.- Returns:
- the URI of this data object
-
setImageDimension
Sets an optional image dimension (in page coordinates). This is only used if a page segment is created for this resource as page segments cannot be rescaled for painting.- Parameters:
dim
- the image dimension (in page coordinates)
-
getImageDimension
Returns an optional image dimension (in page coordinates). This is only used if a page segment is created for this resource as page segments cannot be rescaled for painting.- Returns:
- the image dimension (or null if not applicable)
-
setName
Sets the resource reference name- Parameters:
resourceName
- the resource reference name
-
getName
Returns the resource reference name- Returns:
- the resource reference name
-
getLevel
Returns the resource level- Returns:
- the resource level
-
setLevel
Sets the resource level- Parameters:
resourceLevel
- the resource level
-
levelChanged
public boolean levelChanged()Returns true when the resource level was set- Returns:
- true when the resource level was set
-
toString
-
equals
-
hashCode
public int hashCode()
-