| 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.18, 08/19/02 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 String | toString() Returns a String object representing this
Insets object's values. |
bottom | public int bottom(Code) | | The inset from the bottom.
since: JDK1.0 |
left | public int left(Code) | | The inset from the left.
since: JDK1.0 |
right | public int right(Code) | | The inset from the right.
since: JDK1.0 |
top | public int top(Code) | | The inset from the top.
since: JDK1.0 |
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. since: JDK1.0 |
clone | public Object clone()(Code) | | Create a copy of this object.
a copy of this Insets object. since: JDK1.0 |
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 |
toString | public String toString()(Code) | | Returns a String object representing this
Insets object's values.
a string representation of this Insets object, including the values of its member fields. since: JDK1.0 |
|
|