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.
java.awt.LayoutManager , java.awt.Container
| Modifier and Type | Field and Description |
|---|---|
| public int | bottom
The inset from the bottom. |
| public int | left
The inset from the left. |
| public int | right
The inset from the right. |
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.1 for interoperability. |
| public int | top
The inset from the top. |
| Access | Constructor and Description |
|---|---|
| public | Insets(int
the inset from the top. top, int the inset from the left. left, int the inset from the bottom. bottom, int the inset from the right. right)Creates and initializes a new |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: a copy of thisInsets object.Overrides java. Create a copy of this object. |
| public boolean | Returns: true if the two insets are equal;
otherwise false.Overrides java. Checks whether two insets objects are equal. |
| public int | Returns: a hash code for this Insets.Overrides java. Returns the hash code for this Insets. |
| private static native void | |
| public void | set(int
the inset from the top. top, int the inset from the left. left, int the inset from the bottom. bottom, int the inset from the right. right)Set top, left, bottom, and right to the specified values |
| public String | Returns: a string representation of thisInsets object.Overrides java. Returns a string representation of this |
| bottom | back to summary |
|---|---|
| public int bottom The inset from the bottom. This value is subtracted from the Bottom of the rectangle to yield a new location for the Bottom.
| |
| left | back to summary |
|---|---|
| public int left The inset from the left. This value is added to the Left of the rectangle to yield a new location for the Left edge.
| |
| right | back to summary |
|---|---|
| public int right The inset from the right. This value is subtracted from the Right of the rectangle to yield a new location for the Right edge.
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Use serialVersionUID from JDK 1.1 for interoperability. | |
| top | back to summary |
|---|---|
| public int top The inset from the top. This value is added to the Top of the rectangle to yield a new location for the Top.
| |
| Insets | back to summary |
|---|---|
| public Insets(int top, int left, int bottom, int right) Creates and initializes a new
| |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Create a copy of this object.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Checks whether two insets objects are equal. Two instances
of
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns the hash code for this Insets.
| |
| initIDs | back to summary |
|---|---|
| private static native void initIDs() Initialize JNI field and method IDs | |
| set | back to summary |
|---|---|
| public void set(int top, int left, int bottom, int right) Set top, left, bottom, and right to the specified values
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this
| |