Class AFPResourceInfo


  • public class AFPResourceInfo
    extends java.lang.Object
    The level at which a resource is to reside in the AFP output
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static AFPResourceLevel DEFAULT_LEVEL
      the general default resource level
      private java.awt.Dimension imageDimension
      the image dimension in page coordinates (non-null only when page segments are generated because the cannot be scaled for painting).
      private AFPResourceLevel level
      the resource level of this resource
      private boolean levelChanged
      true when the resource level was changed
      private java.lang.String name
      the reference name of this resource
      private java.lang.String uri
      the URI of this resource
    • Constructor Summary

      Constructors 
      Constructor Description
      AFPResourceInfo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      java.awt.Dimension getImageDimension()
      Returns an optional image dimension (in page coordinates).
      AFPResourceLevel getLevel()
      Returns the resource level
      java.lang.String getName()
      Returns the resource reference name
      java.lang.String getUri()
      Returns the URI of this data object.
      int hashCode()
      boolean levelChanged()
      Returns true when the resource level was set
      void setImageDimension​(java.awt.Dimension dim)
      Sets an optional image dimension (in page coordinates).
      void setLevel​(AFPResourceLevel resourceLevel)
      Sets the resource level
      void setName​(java.lang.String resourceName)
      Sets the resource reference name
      void setUri​(java.lang.String uri)
      Sets the data object URI.
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • DEFAULT_LEVEL

        public static final AFPResourceLevel DEFAULT_LEVEL
        the general default resource level
      • uri

        private java.lang.String uri
        the URI of this resource
      • imageDimension

        private java.awt.Dimension imageDimension
        the image dimension in page coordinates (non-null only when page segments are generated because the cannot be scaled for painting).
      • name

        private java.lang.String name
        the reference name of this resource
      • levelChanged

        private boolean levelChanged
        true when the resource level was changed
    • Constructor Detail

      • AFPResourceInfo

        public AFPResourceInfo()
    • Method Detail

      • setUri

        public void setUri​(java.lang.String uri)
        Sets the data object URI.
        Parameters:
        uri - the data object URI
      • getUri

        public java.lang.String getUri()
        Returns the URI of this data object.
        Returns:
        the URI of this data object
      • setImageDimension

        public void setImageDimension​(java.awt.Dimension dim)
        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

        public java.awt.Dimension 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

        public void setName​(java.lang.String resourceName)
        Sets the resource reference name
        Parameters:
        resourceName - the resource reference name
      • getName

        public java.lang.String getName()
        Returns the resource reference name
        Returns:
        the resource reference name
      • getLevel

        public AFPResourceLevel getLevel()
        Returns the resource level
        Returns:
        the resource level
      • setLevel

        public void setLevel​(AFPResourceLevel resourceLevel)
        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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object