dsto.dfc.swing.controls
Class Insets2D

java.lang.Object
  extended by dsto.dfc.swing.controls.Insets2D
All Implemented Interfaces:
Convertable, Copyable, Serializable, Cloneable

public final class Insets2D
extends Object
implements Convertable, Copyable, Serializable

Represents insets in a floating point space.

This class follows the immutable pattern: do not modify if more than one reference may exist.

Version:
$Revision$
See Also:
Serialized Form

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

CONVERTER

public static final ValueConverter CONVERTER
Constructor Detail

Insets2D

public Insets2D()

Insets2D

public Insets2D(float top,
                float left,
                float bottom,
                float right)

Insets2D

public Insets2D(String insets)
         throws IllegalFormatException
Throws:
IllegalFormatException
Method Detail

getTop

public float getTop()

setTop

public void setTop(float newValue)
Do not use after creation.


getLeft

public float getLeft()

setLeft

public void setLeft(float newValue)
Do not use after creation.


getBottom

public float getBottom()

setBottom

public void setBottom(float newValue)
Do not use after creation.


getRight

public float getRight()

setRight

public void setRight(float newValue)
Do not use after creation.


getConverter

public ValueConverter getConverter()
Specified by:
getConverter in interface Convertable

toString

public String toString()
Overrides:
toString in class Object

clone

public Object clone()
             throws CloneNotSupportedException
Description copied from interface: Copyable
Create a completely separate copy of this object and any mutable objects owned by the object.

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.

Specified by:
clone in interface Copyable
Overrides:
clone in class Object
Throws:
CloneNotSupportedException - if the clone failed or is not possible.


Copyright © 2008 Commonwealth of Australia