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