public class YInsets extends Object implements ICloneable, Cloneable
| Modifier and Type | Field and Description |
|---|---|
double |
bottom
The inset from the bottom.
|
double |
left
The inset from the left.
|
double |
right
The inset from the right.
|
double |
top
The inset from the top.
|
| Constructor and Description |
|---|
YInsets(double top,
double right,
double bottom,
double left)
Creates a new instance with the given values.
|
| Modifier and Type | Method and Description |
|---|---|
YInsets |
clone()
Creates a copy of this object and returns it.
|
boolean |
equals(Object o)
Returns whether this insets object and
o are equal. |
static YInsets |
fromTLBR(double top,
double left,
double bottom,
double right)
Creates a new instance with the given values
|
int |
hashCode() |
String |
toString() |
public final double bottom
public final double left
public final double right
public final double top
public YInsets(double top,
double right,
double bottom,
double left)
top - The new top inset valueright - The new right inset valuebottom - The new bottom inset valueleft - The new left inset valuepublic YInsets clone()
ICloneableclone in interface ICloneableclone in class ObjectObject.clone()public boolean equals(Object o)
o are equal.
Two insets are considered equal if the have the same values for each side.
public static final YInsets fromTLBR(double top, double left, double bottom, double right)
top - The new top inset valueleft - The new left inset valuebottom - The new bottom inset valueright - The new right inset value