| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private int | |
| private int | |
| pack-priv static final InsetsImmutable |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | |
| public Object | cloneMutable()
Implements com. |
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. Implements com. |
| public final int | |
| public final int | |
| public final int | |
| public final int | |
| public final int | |
| public final int | |
| public static final InsetsImmutable | |
| public int | hashCode()
Overrides java. Implements com. |
| public final void | set(final int
left inset width in window units. left, final int right inset width in window units. right, final int top inset width in window units. top, final int bottom inset width in window units. bottom)Set the inset values of this instance in window units. |
| public final void | setBottomHeight(final int
bottom inset width in window units. bottom)Set the bottom inset value of this instance in window units. |
| public final void | setLeftWidth(final int
left inset width in window units. left)Set the left inset value of this instance in window units. |
| public final void | setRightWidth(final int
right inset width in window units. right)Set the right inset value of this instance in window units. |
| public final void | setTopHeight(final int
top inset width in window units. top)Set the top inset value of this instance in window units. |
| public String |
| b | back to summary |
|---|---|
| private int b | |
| l | back to summary |
|---|---|
| private int l | |
| r | back to summary |
|---|---|
| private int r | |
| t | back to summary |
|---|---|
| private int t | |
| zeroInsets | back to summary |
|---|---|
| pack-priv static final InsetsImmutable zeroInsets | |
| Insets | back to summary |
|---|---|
| public Insets() | |
| Insets | back to summary |
|---|---|
| public Insets(final int left, final int right, final int top, final int bottom) | |
| clone | back to summary |
|---|---|
| protected Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by | |
| cloneMutable | back to summary |
|---|---|
| public Object cloneMutable() Implements com. Doc from com. Get a mutable clone from this instance.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Implements com. Doc from com. Checks whether two rect objects are equal. Two instances
of
| |
| getBottomHeight | back to summary |
|---|---|
| public final int getBottomHeight() Implements com.
| |
| getLeftWidth | back to summary |
|---|---|
| public final int getLeftWidth() Implements com.
| |
| getRightWidth | back to summary |
|---|---|
| public final int getRightWidth() Implements com.
| |
| getTopHeight | back to summary |
|---|---|
| public final int getTopHeight() Implements com.
| |
| getTotalHeight | back to summary |
|---|---|
| public final int getTotalHeight() Implements com.
| |
| getTotalWidth | back to summary |
|---|---|
| public final int getTotalWidth() Implements com.
| |
| getZero | back to summary |
|---|---|
| public static final InsetsImmutable getZero() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements com. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| set | back to summary |
|---|---|
| public final void set(final int left, final int right, final int top, final int bottom) Set the inset values of this instance in window units.
| |
| setBottomHeight | back to summary |
|---|---|
| public final void setBottomHeight(final int bottom) Set the bottom inset value of this instance in window units.
| |
| setLeftWidth | back to summary |
|---|---|
| public final void setLeftWidth(final int left) Set the left inset value of this instance in window units.
| |
| setRightWidth | back to summary |
|---|---|
| public final void setRightWidth(final int right) Set the right inset value of this instance in window units.
| |
| setTopHeight | back to summary |
|---|---|
| public final void setTopHeight(final int top) Set the top inset value of this instance in window units.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |