Class Size

  • Direct Known Subclasses:
    ImageSize

    public class Size
    extends java.lang.Object
    Defines the dimensions of the digital asset, if it is image.
    Since:
    1.6.0
    • Constructor Summary

      Constructors 
      Constructor Description
      Size()
      Instantiates the new Size .
      Size​(int width, int height)
      Instantiates the new Size.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getHeight()
      Gets the height in pixels.
      int getWidth()
      Gets the width in pixels.
      void setHeight​(int height)
      Sets the height in pixels.
      void setWidth​(int width)
      Sets the width in pixels.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Size

        public Size​(int width,
                    int height)
        Instantiates the new Size.
        Parameters:
        width - the width in pixels
        height - the height in pixels
      • Size

        public Size()
        Instantiates the new Size .
    • Method Detail

      • getWidth

        public int getWidth()
        Gets the width in pixels.
      • setWidth

        public void setWidth​(int width)
        Sets the width in pixels.
      • getHeight

        public int getHeight()
        Gets the height in pixels.
      • setHeight

        public void setHeight​(int height)
        Sets the height in pixels.