public class Insets extends Object implements Cloneable, InsetsImmutable
| Constructor and Description |
|---|
Insets() |
Insets(int left,
int right,
int top,
int bottom) |
| Modifier and Type | Method and Description |
|---|---|
Object |
cloneMutable() |
boolean |
equals(Object obj)
Checks whether two rect objects are equal.
|
int |
getBottomHeight() |
int |
getLeftWidth() |
int |
getRightWidth() |
int |
getTopHeight() |
int |
getTotalHeight() |
int |
getTotalWidth() |
static InsetsImmutable |
getZero() |
int |
hashCode() |
void |
set(int left,
int right,
int top,
int bottom)
Set the inset values of this instance in window units.
|
void |
setBottomHeight(int bottom)
Set the bottom inset value of this instance in window units.
|
void |
setLeftWidth(int left)
Set the left inset value of this instance in window units.
|
void |
setRightWidth(int right)
Set the right inset value of this instance in window units.
|
void |
setTopHeight(int top)
Set the top inset value of this instance in window units.
|
String |
toString() |
public Insets()
public Insets(int left,
int right,
int top,
int bottom)
public static final InsetsImmutable getZero()
public Object cloneMutable()
cloneMutable in interface WriteCloneablepublic final int getLeftWidth()
getLeftWidth in interface InsetsImmutablepublic final int getRightWidth()
getRightWidth in interface InsetsImmutablepublic final int getTotalWidth()
getTotalWidth in interface InsetsImmutableleft_width + right_widthpublic final int getTopHeight()
getTopHeight in interface InsetsImmutablepublic final int getBottomHeight()
getBottomHeight in interface InsetsImmutablepublic final int getTotalHeight()
getTotalHeight in interface InsetsImmutabletop_height + bottom_heightpublic final void set(int left,
int right,
int top,
int bottom)
left - left inset width in window units.right - right inset width in window units.top - top inset width in window units.bottom - bottom inset width in window units.public final void setLeftWidth(int left)
left - left inset width in window units.public final void setRightWidth(int right)
right - right inset width in window units.public final void setTopHeight(int top)
top - top inset width in window units.public final void setBottomHeight(int bottom)
bottom - bottom inset width in window units.public boolean equals(Object obj)
InsetsImmutableInsets are equal if the four integer values
of the fields left, right,
top, and bottom are all equal.equals in interface InsetsImmutableequals in class Objecttrue if the two Insets are equal;
otherwise false.public int hashCode()
hashCode in interface InsetsImmutablehashCode in class ObjectCopyright 2010 JogAmp Community.