java.awt.Insets which works on doubles
instead of ints
| Modifier and Type | Field and Description |
|---|---|
| public double | bottom
The inset from the bottom. |
| public double | left
The inset from the left. |
| public double | right
The inset from the right. |
| public double | top
The inset from the top. |
| Access | Constructor and Description |
|---|---|
| public | Insets2D(double
the inset from the top. top, double the inset from the left. left, double the inset from the bottom. bottom, double the inset from the right. right)Creates and initializes a new |
| Modifier and Type | Method and Description |
|---|---|
| public Insets2D | Returns: a copy of thisInsets2D object.Implements org. Create a copy of this object. |
| public boolean | Returns: true if the two insets are equal;
otherwise false.the reference object with which to compare. obj)Overrides java. Checks whether two insets objects are equal. |
| public int | Returns: a hash code for this Insets.Overrides java. Returns the hash code for this Insets. |
| public void | set(double
the inset from the top. top, double the inset from the left. left, double the inset from the bottom. bottom, double the inset from the right. right)Set top, left, bottom, and right to the specified values |
| public String | Returns: a string representation of thisInsets object.Overrides java. Returns a string representation of this |
| bottom | back to summary |
|---|---|
| public double bottom The inset from the bottom. This value is subtracted from the Bottom of the rectangle to yield a new location for the Bottom. | |
| left | back to summary |
|---|---|
| public double left The inset from the left. This value is added to the Left of the rectangle to yield a new location for the Left edge. | |
| right | back to summary |
|---|---|
| public double right The inset from the right. This value is subtracted from the Right of the rectangle to yield a new location for the Right edge. | |
| top | back to summary |
|---|---|
| public double top The inset from the top. This value is added to the Top of the rectangle to yield a new location for the Top. | |
| Insets2D | back to summary |
|---|---|
| public Insets2D(double top, double left, double bottom, double right) Creates and initializes a new
| |
| copy | back to summary |
|---|---|
| public Insets2D copy() Implements org. Create a copy of this object. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Checks whether two insets objects are equal. Two instances
of
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns the hash code for this Insets.
| |
| set | back to summary |
|---|---|
| public void set(double top, double left, double bottom, double right) Set top, left, bottom, and right to the specified values
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this
| |