Class Insets2D

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    Insets2D.Double, Insets2D.Float

    public abstract class Insets2D
    extends java.lang.Object
    implements java.io.Serializable
    Similar to java.awt.Insets, but with doubles for the top, left, bottom, right values. This means that instances of this class can be used for setting proportionally sized insets which are better for components that should retain their shape and overall appearance when they are re-sized.
    See Also:
    Insets, Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Insets2D.Double
      An Insets2D instance specified with double precision
      static class  Insets2D.Float
      An Insets2D instance specified with float precision
    • Constructor Summary

      Constructors 
      Constructor Description
      Insets2D()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract double getBottom()
      Returns the inset from the bottom in double precision
      abstract double getLeft()
      Returns the inset from the left in double precision
      abstract double getRight()
      Returns the inset from the right in double precision
      abstract double getTop()
      Returns the inset from the top in double precision
      • Methods inherited from class java.lang.Object

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

      • Insets2D

        public Insets2D()
    • Method Detail

      • getTop

        public abstract double getTop()
        Returns the inset from the top in double precision
        Returns:
        the inset from the top in double precision
      • getLeft

        public abstract double getLeft()
        Returns the inset from the left in double precision
        Returns:
        the inset from the left in double precision
      • getBottom

        public abstract double getBottom()
        Returns the inset from the bottom in double precision
        Returns:
        the inset from the bottom in double precision
      • getRight

        public abstract double getRight()
        Returns the inset from the right in double precision
        Returns:
        the inset from the right in double precision