Class Insets2D

java.lang.Object
com.jidesoft.awt.geom.Insets2D
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Insets2D.Double, Insets2D.Float

public abstract class Insets2D extends Object implements 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:
  • Nested Class Summary

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract double
    Returns the inset from the bottom in double precision
    abstract double
    Returns the inset from the left in double precision
    abstract double
    Returns the inset from the right in double precision
    abstract double
    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 Details

    • Insets2D

      public Insets2D()
  • Method Details

    • 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