Class AFPObjectAreaInfo


  • public class AFPObjectAreaInfo
    extends java.lang.Object
    A common class used to convey locations, dimensions and resolutions of data objects.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int height  
      private int heightRes  
      private int rotation  
      private int width  
      private int widthRes  
      private int x  
      private int y  
    • Constructor Summary

      Constructors 
      Constructor Description
      AFPObjectAreaInfo​(int x, int y, int width, int height, int resolution, int rotation)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getHeight()
      Returns the height of this data object
      int getHeightRes()
      Returns the height resolution of this data object
      int getRotation()
      Returns the rotation of this data object
      int getWidth()
      Returns the width of this data object
      int getWidthRes()
      Returns the width resolution of this data object
      int getX()
      Returns the x coordinate of this data object
      int getY()
      Returns the y coordinate of this data object
      void setHeightRes​(int resolution)
      Sets the height resolution.
      void setResolution​(int resolution)
      Sets both the width and the height resolutions.
      void setWidthRes​(int resolution)
      Sets the width resolution.
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

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

      • x

        private final int x
      • y

        private final int y
      • width

        private final int width
      • height

        private final int height
      • widthRes

        private int widthRes
      • heightRes

        private int heightRes
      • rotation

        private final int rotation
    • Constructor Detail

      • AFPObjectAreaInfo

        public AFPObjectAreaInfo​(int x,
                                 int y,
                                 int width,
                                 int height,
                                 int resolution,
                                 int rotation)
        Constructor
        Parameters:
        x - the x coordinate
        y - the y coordinate
        width - the width
        height - the height
        resolution - the resolution (sets both width and height resolutions)
        rotation - the rotation angle
    • Method Detail

      • setResolution

        public void setResolution​(int resolution)
        Sets both the width and the height resolutions.
        Parameters:
        resolution - the resolution
      • setWidthRes

        public void setWidthRes​(int resolution)
        Sets the width resolution.
        Parameters:
        resolution - the resolution
      • setHeightRes

        public void setHeightRes​(int resolution)
        Sets the height resolution.
        Parameters:
        resolution - the resolution
      • getX

        public int getX()
        Returns the x coordinate of this data object
        Returns:
        the x coordinate of this data object
      • getY

        public int getY()
        Returns the y coordinate of this data object
        Returns:
        the y coordinate of this data object
      • getWidth

        public int getWidth()
        Returns the width of this data object
        Returns:
        the width of this data object
      • getHeight

        public int getHeight()
        Returns the height of this data object
        Returns:
        the height of this data object
      • getWidthRes

        public int getWidthRes()
        Returns the width resolution of this data object
        Returns:
        the resolution of this data object
      • getHeightRes

        public int getHeightRes()
        Returns the height resolution of this data object
        Returns:
        the resolution of this data object
      • getRotation

        public int getRotation()
        Returns the rotation of this data object
        Returns:
        the rotation of this data object
      • toString

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