|
![]() |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.droplets.api.Insets
A simple class of data objects used to set the insets
property of components. All components are laid out using logic
equivalent to that of java.awt.GridBagLayout
. See the API
documentation for that class for more detail.
Constructor Summary | |
Insets(int top,
int left,
int bottom,
int right)
Constructs a new Insets object. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Tests this object for equality with another. |
int |
getBottom()
Gets the number of pixels to leave between the bottom of the component and the bottom of its display area. |
int |
getLeft()
Gets the number of pixels to leave between the left of the component and the left of its display area. |
int |
getRight()
Gets the number of pixels to leave between the right of the component and the right of its display area. |
int |
getTop()
Gets the number of pixels to leave between the top of the component and the top of its display area. |
void |
setBottom(int value)
Sets the number of pixels to leave between the bottom of the component and the bottom of its display area. |
void |
setLeft(int value)
Sets the number of pixels to leave between the left of the component and the left of its display area. |
void |
setRight(int value)
Sets the number of pixels to leave between the right of the component and the right of its display area. |
void |
setTop(int value)
Sets the number of pixels to leave between the top of the component and the top of its display area. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Insets(int top, int left, int bottom, int right)
Insets
object.top
- pixels to leave in between the top of the component and
the top of its display arealeft
- pixels to leave on the leftbottom
- pixels to leave on the bottomright
- pixels to leave on the rightMethod Detail |
public int getTop()
public int getLeft()
public int getBottom()
public int getRight()
public void setTop(int value)
value
- the number of pixelspublic void setLeft(int value)
value
- the number of pixelspublic void setBottom(int value)
value
- the number of pixelspublic void setRight(int value)
value
- the number of pixelspublic boolean equals(java.lang.Object o)
Insets
are equal
if all four member variables are equal.equals
in class java.lang.Object
o
- another object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |