public class FloatInsets
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
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.Insets
,
Serialized FormModifier and Type | Field and Description |
---|---|
float |
bottom |
float |
left |
float |
right |
float |
top |
Constructor and Description |
---|
FloatInsets()
Creates and initializes a new
FloatInsets object. |
FloatInsets(float top,
float left,
float bottom,
float right)
Creates and initializes a new
FloatInsets object with the
specified top, left, bottom, and right insets. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object obj) |
float |
getBottom()
Gets the inset from the bottom.
|
float |
getLeft()
Gets the inset from the left.
|
float |
getRight()
Gets the inset from the right.
|
float |
getTop()
Gets the inset from the top.
|
int |
hashCode() |
void |
setBottom(float bottom)
Sets the inset from the bottom.
|
void |
setLeft(float left)
Sets the inset from the left.
|
void |
setRight(float right)
Sets the inset from the right.
|
void |
setTop(float top)
Sets the inset from the top.
|
java.lang.String |
toString() |
public float top
public float left
public float bottom
public float right
public FloatInsets()
FloatInsets
object.public FloatInsets(float top, float left, float bottom, float right)
FloatInsets
object with the
specified top, left, bottom, and right insets.top
- the inset from the top.left
- the inset from the left.bottom
- the inset from the bottom.right
- the inset from the right.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public float getBottom()
public void setBottom(float bottom)
bottom
- the inset from the bottom.public float getLeft()
public void setLeft(float left)
bottom
- the inset from the left.public float getRight()
public void setRight(float right)
bottom
- the inset from the right.public float getTop()
public void setTop(float top)
bottom
- the inset from the top.Copyright © 2002 - 2010 Serva Software. All Rights Reserved.