public static class Insets2D.Double extends Insets2D
Insets2D.Double
Constructor and Description |
---|
Insets2D.Double()
Creates a new Insets2D object with zero insets.
|
Insets2D.Double(double inset)
Creates a new Insets2D object with the specified insets in all
directions.
|
Insets2D.Double(double top,
double left,
double bottom,
double right)
Creates a new Insets2D object with the specified insets.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
double |
getBottom()
Returns the insets at the bottom.
|
double |
getLeft()
Returns the insets at the left.
|
double |
getRight()
Returns the insets at the right.
|
double |
getTop()
Returns the insets at the top.
|
int |
hashCode() |
void |
setInsets(double top,
double left,
double bottom,
double right)
Sets the insets to the specified values.
|
void |
setInsets(Insets2D insets)
Sets the insets according to the specified insets.
|
String |
toString() |
getHorizontal, getVertical
public Insets2D.Double()
public Insets2D.Double(double inset)
inset
- Inset value.public Insets2D.Double(double top, double left, double bottom, double right)
top
- Top insets.left
- Left insets.bottom
- Bottom insets.right
- Right insets.public double getTop()
Insets2D
public double getLeft()
Insets2D
public double getBottom()
Insets2D
public double getRight()
Insets2D
public void setInsets(Insets2D insets)
Insets2D
public void setInsets(double top, double left, double bottom, double right)
Insets2D
Copyright © 2009-2013. All Rights Reserved.