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
Modifier and TypeFieldDescriptionstatic final AFPResourceLevel
the general default resource level -
Constructor Summary
-
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
-
-
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()
-