public abstract class Insets2D
extends java.lang.Object
implements java.io.Serializable
Please use this instead of java.awt.Insets, as the java class does not support double values.
Modifier and Type | Class and Description |
---|---|
static class |
Insets2D.Double
Class that stores insets as double values.
|
Constructor and Description |
---|
Insets2D()
Creates a new Insets2D object.
|
Modifier and Type | Method and Description |
---|---|
abstract double |
getBottom()
Returns the insets at the bottom.
|
double |
getHorizontal()
Returns the sum of horizontal insets.
|
abstract double |
getLeft()
Returns the insets at the left.
|
abstract double |
getRight()
Returns the insets at the right.
|
abstract double |
getTop()
Returns the insets at the top.
|
double |
getVertical()
Returns the sum of vertical insets.
|
abstract void |
setInsets(double top,
double left,
double bottom,
double right)
Sets the insets to the specified values.
|
abstract void |
setInsets(Insets2D insets)
Sets the insets according to the specified insets.
|
public abstract double getTop()
public abstract double getLeft()
public abstract double getBottom()
public abstract double getRight()
public double getHorizontal()
public double getVertical()
public abstract void setInsets(Insets2D insets)
insets
- Insets to be set.public abstract void setInsets(double top, double left, double bottom, double right)
top
- Top insets.left
- Left insets.bottom
- Bottom insets.right
- Right insets.