Package com.jidesoft.awt.geom
Class Insets2D
java.lang.Object
com.jidesoft.awt.geom.Insets2D
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Insets2D.Double
,Insets2D.Float
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 ClassesModifier and TypeClassDescriptionstatic class
An Insets2D instance specified with double precisionstatic class
An Insets2D instance specified with float precision -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract double
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
-
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
-