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 WriteCloneable
public final int getLeftWidth()
getLeftWidth
in interface InsetsImmutable
public final int getRightWidth()
getRightWidth
in interface InsetsImmutable
public final int getTotalWidth()
getTotalWidth
in interface InsetsImmutable
left_width + right_width
public final int getTopHeight()
getTopHeight
in interface InsetsImmutable
public final int getBottomHeight()
getBottomHeight
in interface InsetsImmutable
public final int getTotalHeight()
getTotalHeight
in interface InsetsImmutable
top_height + bottom_height
public 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)
InsetsImmutable
Insets
are equal if the four integer values
of the fields left
, right
,
top
, and bottom
are all equal.equals
in interface InsetsImmutable
equals
in class Object
true
if the two Insets are equal;
otherwise false
.public int hashCode()
hashCode
in interface InsetsImmutable
hashCode
in class Object
Copyright 2010 JogAmp Community.