|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.Insets
public class Insets
Contains information about a component's margins.
Insets may be used with components such as Panel
s,
Grid.Cell
s and ContentPane
s.
Constructor Summary | |
---|---|
Insets()
|
|
Insets(int size)
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 left,
int top,
int right,
int bottom)
Creates a new Insets object with the given margin sizes (in pixels). |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getBottom()
Returns the size of the bottom margin. |
int |
getLeft()
Returns the size of the left margin. |
int |
getRight()
Returns the size of the right margin. |
int |
getTop()
Returns the size of the top margin. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Insets()
public Insets(int left, int top, int right, int bottom)
left
- The size of the left margin.top
- The size of the top margin.right
- The size of the right margin.bottom
- The size of the bottom margin.public Insets(int size)
size
- The margin size.public Insets(int horizontal, int vertical)
horizontal
- The size of the horizontal (left and right) margins.vertical
- The size of the vertical (top and bottom) margins.Method Detail |
---|
public int getBottom()
public int getLeft()
public int getRight()
public int getTop()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |