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 AFPResourceLevelthe general default resource levelprivate Dimensionthe image dimension in page coordinates (non-null only when page segments are generated because the cannot be scaled for painting).private AFPResourceLevelthe resource level of this resourceprivate booleantrue when the resource level was changedprivate Stringthe reference name of this resourceprivate Stringthe URI of this resource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns an optional image dimension (in page coordinates).getLevel()Returns the resource levelgetName()Returns the resource reference namegetUri()Returns the URI of this data object.inthashCode()booleanReturns true when the resource level was setvoidSets an optional image dimension (in page coordinates).voidsetLevel(AFPResourceLevel resourceLevel) Sets the resource levelvoidSets the resource reference namevoidSets 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
-
getUri
-
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
-
getLevel
-
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
-