Class AbstractDescriptor

All Implemented Interfaces:
Streamable
Direct Known Subclasses:
ContainerDataDescriptor, GraphicsDataDescriptor, ImageDataDescriptor, ObjectAreaDescriptor, PageDescriptor, PresentationTextDescriptor

public abstract class AbstractDescriptor extends AbstractTripletStructuredObject
Base class for AFP descriptor objects
  • Field Details

    • width

      protected int width
      width of this descriptor
    • height

      protected int height
      height of this descriptor
    • widthRes

      protected int widthRes
      width resolution of this descriptor
    • heightRes

      protected int heightRes
      height resolution of this descriptor
  • Constructor Details

    • AbstractDescriptor

      public AbstractDescriptor()
      Default constructor
    • AbstractDescriptor

      public AbstractDescriptor(int width, int height, int widthRes, int heightRes)
      Constructor a PresentationTextDescriptor for the specified width and height.
      Parameters:
      width - The width of the page.
      height - The height of the page.
      widthRes - The width resolution of the page.
      heightRes - The height resolution of the page.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getWidth

      public int getWidth()
      Returns the width
      Returns:
      the width
    • getHeight

      public int getHeight()
      Returns the height
      Returns:
      the height