|
Draw2D v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.eclipse.draw2d.geometry.Insets
Provides support for side space measurements for
Borders
| Field Summary | |
int |
bottom
|
int |
left
|
int |
right
|
int |
top
|
| Constructor Summary | |
Insets()
Constructs an Insets with left, top, bottom and right empty. |
|
Insets(Insets i)
Constructs an Insets with the initial values supplied by the input Insets. |
|
Insets(int i)
Constructs an Insets with all the sides set to the size given as input. |
|
Insets(int top,
int left,
int bottom,
int right)
Constructs an Insets with the initial values set to the values given as input. |
|
| Method Summary | |
Insets |
add(Insets insets)
Adds the input Insets to this Insets and returns this Insets for convenience. |
boolean |
equals(Object o)
Returns whether this Insets is equal to the Object input. |
Insets |
getAdded(Insets insets)
Returns a new Insets containing the incremented values of this Insets and the input Insets. |
int |
getHeight()
Returns the height for this Insets, which is this Inset's top and bottom values addded together. |
Insets |
getTransposed()
Returns a new Insets with transposed values. |
int |
getWidth()
Returns the width for this Insets which is the left value added to the right. |
boolean |
isEmpty()
Returns whether this Insets has a value of zero for its top, left, right, and bottom values. |
String |
toString()
Returns the description of this Insets as a String. |
Insets |
transpose()
Interchanges the right-bottom and top-left spaces for this Insets and returns this Insets for convinience. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int left
public int top
public int bottom
public int right
| Constructor Detail |
public Insets()
public Insets(Insets i)
i - Insets supplying the initial values.public Insets(int i)
i - Value applied to all the sides of the Insets.
public Insets(int top,
int left,
int bottom,
int right)
top - Value of the top space.left - Value of the left space.bottom - Value of the bottom space.right - Value of the right space.| Method Detail |
public Insets add(Insets insets)
public boolean equals(Object o)
equals in class Objecto - Object being tested for equality.public Insets getAdded(Insets insets)
insets - Insets providing the increment values.public int getHeight()
getWidth()public Insets getTransposed()
public int getWidth()
getHeight()public boolean isEmpty()
true if all the
spaces are zero, else returns falsepublic String toString()
toString in class Objectpublic Insets transpose()
|
Draw2D v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||