|
NextApp Echo2 v2.1.0.rc2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo2.app.Insets
A property which describes an "inset" within a rectangular
region. This property is commonly used to specify margins of a
Component relative to its container.
Null values for top/left/right/bottom margins indicate a 0-pixel inset
for that margin.
| Constructor Summary | |
Insets(Extent size)
Creates a new Insets object, defining all margins to be the provided value. |
|
Insets(Extent horizontal,
Extent vertical)
Creates a new Insets object by defining values for the horizontal and vertical margins. |
|
Insets(Extent left,
Extent top,
Extent right,
Extent bottom)
Creates a new Insets object with the given margin sizes. |
|
Insets(int sizePx)
Creates a new Insets object, defining all margins to be the provided value. |
|
Insets(int horizontal,
int vertical)
Creates a new Insets object by defining values for the horizontal and vertical margins. |
|
Insets(int leftPx,
int topPx,
int rightPx,
int bottomPx)
Creates a new Insets object with the given pixel margin sizes. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
|
Extent |
getBottom()
Returns the size of the bottom margin. |
Extent |
getLeft()
Returns the size of the left margin. |
Extent |
getRight()
Returns the size of the right margin. |
Extent |
getTop()
Returns the size of the top margin. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Insets(int leftPx,
int topPx,
int rightPx,
int bottomPx)
leftPx - the size of the left margin in pixelstopPx - the size of the top margin in pixelsrightPx - the size of the right margin in pixelsbottomPx - the size of the bottom margin in pixels
public Insets(Extent left,
Extent top,
Extent right,
Extent bottom)
Insets only supports Extents with
fixed (i.e., not percent) units.
left - the size of the left margintop - the size of the top marginright - the size of the right marginbottom - the size of the bottom marginpublic Insets(int sizePx)
sizePx - the margin size in pixelspublic Insets(Extent size)
Insets only supports Extents with
fixed (i.e., not percent) units.
size - the margin size
public Insets(int horizontal,
int vertical)
horizontal - the size of the horizontal (left and right) margins in pixelsvertical - the size of the vertical (top and bottom) margins in pixels
public Insets(Extent horizontal,
Extent vertical)
horizontal - the size of the horizontal (left and right) marginsvertical - the size of the vertical (top and bottom) margins| Method Detail |
public boolean equals(java.lang.Object o)
Object.equals(java.lang.Object)public Extent getBottom()
Insets only supports Extents with
fixed (i.e., not percent) units.
public Extent getLeft()
Insets only supports Extents with
fixed (i.e., not percent) units.
public Extent getRight()
Insets only supports Extents with
fixed (i.e., not percent) units.
public Extent getTop()
Insets only supports Extents with
fixed (i.e., not percent) units.
|
NextApp Echo2 v2.1.0.rc2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||