|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdsto.dfc.swing.controls.Insets2D
public final class Insets2D
Represents insets in a floating point space.
This class follows the immutable pattern: do not modify if more than one reference may exist.
Field Summary | |
---|---|
static ValueConverter |
CONVERTER
|
Constructor Summary | |
---|---|
Insets2D()
|
|
Insets2D(float top,
float left,
float bottom,
float right)
|
|
Insets2D(String insets)
|
Method Summary | |
---|---|
Object |
clone()
Create a completely separate copy of this object and any mutable objects owned by the object. |
float |
getBottom()
|
ValueConverter |
getConverter()
|
float |
getLeft()
|
float |
getRight()
|
float |
getTop()
|
void |
setBottom(float newValue)
Do not use after creation. |
void |
setLeft(float newValue)
Do not use after creation. |
void |
setRight(float newValue)
Do not use after creation. |
void |
setTop(float newValue)
Do not use after creation. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ValueConverter CONVERTER
Constructor Detail |
---|
public Insets2D()
public Insets2D(float top, float left, float bottom, float right)
public Insets2D(String insets) throws IllegalFormatException
IllegalFormatException
Method Detail |
---|
public float getTop()
public void setTop(float newValue)
public float getLeft()
public void setLeft(float newValue)
public float getBottom()
public void setBottom(float newValue)
public float getRight()
public void setRight(float newValue)
public ValueConverter getConverter()
getConverter
in interface Convertable
public String toString()
toString
in class Object
public Object clone() throws CloneNotSupportedException
Copyable
NOTE: subclasses should not remove the CloneNotSupportedException throws clause if they themselves support subclassing: removing the CloneNotSupportedException declaration stops subclasses from indicating that a clone was not possible.
clone
in interface Copyable
clone
in class Object
CloneNotSupportedException
- if the clone failed or is not
possible.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |