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) |
void |
setBottomHeight(int bottom) |
void |
setLeftWidth(int left) |
void |
setRightWidth(int right) |
void |
setTopHeight(int top) |
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)
public final void setLeftWidth(int left)
public final void setRightWidth(int right)
public final void setTopHeight(int top)
public final void setBottomHeight(int bottom)
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.