Package com.evopdf

Class SizeFloat

java.lang.Object
com.evopdf.SizeFloat

public class SizeFloat extends Object
Represents a size object with floating point width and height
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final SizeFloat
    The null size
  • Constructor Summary

    Constructors
    Constructor
    Description
    SizeFloat(float width, float height)
    Constructs a size object with the given width and height
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Gets the height
    void
    setHeight(float height)
    Sets the height
    void
    setWidth(float width)
    Sets the width
    float
    Gets the width

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • EMPTY

      public static final SizeFloat EMPTY
      The null size
  • Constructor Details

    • SizeFloat

      public SizeFloat(float width, float height)
      Constructs a size object with the given width and height
      Parameters:
      width - the width
      height - the height
  • Method Details

    • width

      public float width()
      Gets the width
      Returns:
      the width
    • setWidth

      public void setWidth(float width)
      Sets the width
      Parameters:
      width - the width to set
    • height

      public float height()
      Gets the height
      Returns:
      the height
    • setHeight

      public void setHeight(float height)
      Sets the height
      Parameters:
      height - the height to set