Package com.jidesoft.awt.geom
Class Insets2D
- java.lang.Object
-
- com.jidesoft.awt.geom.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 precisionstatic 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 precisionabstract double
getLeft()
Returns the inset from the left in double precisionabstract double
getRight()
Returns the inset from the right in double precisionabstract double
getTop()
Returns the inset from the top in double precision
-
-
-
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
-
-