| Modifier and Type | Field and Description |
|---|---|
| private double | |
| public static final Insets | EMPTY
Empty insets. |
| private int | hash
The cached hash code, used to improve performance in situations where we cache gradients, such as in the CSS routines. |
| private double | |
| private double | |
| private double |
| Access | Constructor and Description |
|---|---|
| public | Insets(double
the top offset top, double the right offset right, double the bottom offset bottom, double the left offset left)Constructs a new Insets instance with four different offsets. |
| public | Insets(double
the value used for top, bottom, right and left
offset topRightBottomLeft)Constructs a new Insets instance with same value for all four offsets. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if this object is the same as the obj argument; false otherwisethe reference object with which to compare obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public final double | |
| public final double | |
| public final double | |
| public final double | |
| public int | Returns: a hash code value for the insets.Overrides java. Returns a hash code value for the insets. |
| public String | Returns: a string representation for the insets.Overrides java. Returns a string representation for the insets. |
| bottom | back to summary |
|---|---|
| private double bottom | |
| EMPTY | back to summary |
|---|---|
| public static final Insets EMPTY Empty insets. An | |
| hash | back to summary |
|---|---|
| private int hash The cached hash code, used to improve performance in situations where we cache gradients, such as in the CSS routines. | |
| left | back to summary |
|---|---|
| private double left | |
| right | back to summary |
|---|---|
| private double right | |
| top | back to summary |
|---|---|
| private double top | |
| Insets | back to summary |
|---|---|
| public Insets(double top, double right, double bottom, double left) Constructs a new Insets instance with four different offsets.
| |
| Insets | back to summary |
|---|---|
| public Insets(double topRightBottomLeft) Constructs a new Insets instance with same value for all four offsets.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Indicates whether some other object is "equal to" this one. | |
| getBottom | back to summary |
|---|---|
| public final double getBottom() The inset on the bottom side
| |
| getLeft | back to summary |
|---|---|
| public final double getLeft() The inset on the left side
| |
| getRight | back to summary |
|---|---|
| public final double getRight() The inset on the right side
| |
| getTop | back to summary |
|---|---|
| public final double getTop() The inset on the top side
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code value for the insets.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation for the insets. | |