Package com.ardor3d.extension.ui.util
Class Insets
java.lang.Object
com.ardor3d.extension.ui.util.Insets
- Direct Known Subclasses:
UIBorder
This class is patterned after awt's
Insets
class. It describes the margins on four sides of a
rectangular area and is the foundation of our UIBorder class.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
getLeft()
int
getRight()
int
getTop()
int
hashCode()
void
set
(int top, int left, int bottom, int right) Set the size of the sides to the given values.void
void
setBottom
(int size) void
setLeft
(int size) void
setRight
(int size) void
setTop
(int size)
-
Field Details
-
EMPTY
0, 0, 0, 0
-
-
Constructor Details
-
Insets
public Insets()Constructs a new insets with 0 size on each side. -
Insets
public Insets(int top, int left, int bottom, int right) Constructs a new insets using the given sizes.- Parameters:
top
- the topleft
- the leftbottom
- the bottomright
- the right
-
Insets
Constructs a new insets using the sizes from the given source.- Parameters:
source
- the source insets
-
-
Method Details
-
set
public void set(int top, int left, int bottom, int right) Set the size of the sides to the given values.- Parameters:
top
- the topleft
- the leftbottom
- the bottomright
- the right
-
set
-
getLeft
public int getLeft() -
getTop
public int getTop() -
getRight
public int getRight() -
getBottom
public int getBottom() -
setLeft
public void setLeft(int size) -
setRight
public void setRight(int size) -
setTop
public void setTop(int size) -
setBottom
public void setBottom(int size) -
equals
-
hashCode
public int hashCode()
-