| java.lang.Object java.awt.Insets
Insets | public class Insets implements Cloneable,java.io.Serializable(Code) | | An Insets object is a representation of the borders
of a container. It specifies the space that a container must leave
at each of its edges. The space can be a border, a blank space, or
a title.
version: 1.37, 05/05/07 author: Arthur van Hoff author: Sami Shaio See Also: java.awt.LayoutManager See Also: java.awt.Container since: JDK1.0 |
Field Summary | |
public int | bottom The inset from the bottom. | public int | left The inset from the left. | public int | right The inset from the right. | public int | top The inset from the top. |
Constructor Summary | |
public | Insets(int top, int left, int bottom, int right) Creates and initializes a new Insets object with the
specified top, left, bottom, and right insets. |
Method Summary | |
public Object | clone() Create a copy of this object. | public boolean | equals(Object obj) Checks whether two insets objects are equal. | public int | hashCode() Returns the hash code for this Insets. | public void | set(int top, int left, int bottom, int right) | public String | toString() Returns a string representation of this Insets object. |
bottom | public int bottom(Code) | | The inset from the bottom.
This value is subtracted from the Bottom of the rectangle
to yield a new location for the Bottom.
See Also: Insets.clone() |
left | public int left(Code) | | The inset from the left.
This value is added to the Left of the rectangle
to yield a new location for the Left edge.
See Also: Insets.clone() |
right | public int right(Code) | | The inset from the right.
This value is subtracted from the Right of the rectangle
to yield a new location for the Right edge.
See Also: Insets.clone() |
top | public int top(Code) | | The inset from the top.
This value is added to the Top of the rectangle
to yield a new location for the Top.
See Also: Insets.clone() |
Insets | public Insets(int top, int left, int bottom, int right)(Code) | | Creates and initializes a new Insets object with the
specified top, left, bottom, and right insets.
Parameters: top - the inset from the top. Parameters: left - the inset from the left. Parameters: bottom - the inset from the bottom. Parameters: right - the inset from the right. |
clone | public Object clone()(Code) | | Create a copy of this object.
a copy of this Insets object. |
equals | public boolean equals(Object obj)(Code) | | Checks whether two insets objects are equal. Two instances
of Insets are equal if the four integer values
of the fields top , left ,
bottom , and right are all equal.
true if the two insets are equal;otherwise false . since: JDK1.1 |
hashCode | public int hashCode()(Code) | | Returns the hash code for this Insets.
a hash code for this Insets. |
set | public void set(int top, int left, int bottom, int right)(Code) | | Set top, left, bottom, and right to the specified values
Parameters: top - the inset from the top. Parameters: left - the inset from the left. Parameters: bottom - the inset from the bottom. Parameters: right - the inset from the right. since: 1.5 |
toString | public String toString()(Code) | | Returns a string representation of this Insets object.
This method is intended to be used only for debugging purposes, and
the content and format of the returned string may vary between
implementations. The returned string may be empty but may not be
null .
a string representation of this Insets object. |
|
|