Class Insets2D.Float

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    Insets2D

    public static class Insets2D.Float
    extends Insets2D
    implements java.io.Serializable
    An Insets2D instance specified with float precision
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      float bottom  
      float left  
      float right  
      float top  
    • Constructor Summary

      Constructors 
      Constructor Description
      Float​(float top, float left, float bottom, float right)
      Construct an Insets2D instance using float precision
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getBottom()
      Returns the inset from the bottom in double precision
      double getLeft()
      Returns the inset from the left in double precision
      double getRight()
      Returns the inset from the right in double precision
      double getTop()
      Returns the inset from the top in double precision
      void set​(float top, float left, float bottom, float right)
      Sets the insets with float precision
      • Methods inherited from class java.lang.Object

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

      • top

        public float top
      • left

        public float left
      • bottom

        public float bottom
      • right

        public float right
    • Constructor Detail

      • Float

        public Float​(float top,
                     float left,
                     float bottom,
                     float right)
        Construct an Insets2D instance using float precision
        Parameters:
        top - the inset from the top
        left - the inset from the left
        bottom - the inset from the bottom
        right - the inset from the right
    • Method Detail

      • set

        public void set​(float top,
                        float left,
                        float bottom,
                        float right)
        Sets the insets with float precision
        Parameters:
        top - the inset from the top
        left - the inset from the left
        bottom - the inset from the bottom
        right - the inset from the right
      • getBottom

        public double getBottom()
        Returns the inset from the bottom in double precision
        Specified by:
        getBottom in class Insets2D
        Returns:
        the inset from the bottom in double precision
      • getLeft

        public double getLeft()
        Returns the inset from the left in double precision
        Specified by:
        getLeft in class Insets2D
        Returns:
        the inset from the left in double precision
      • getRight

        public double getRight()
        Returns the inset from the right in double precision
        Specified by:
        getRight in class Insets2D
        Returns:
        the inset from the right in double precision
      • getTop

        public double getTop()
        Returns the inset from the top in double precision
        Specified by:
        getTop in class Insets2D
        Returns:
        the inset from the top in double precision