view
Class MyInsets

java.lang.Object
  extended by java.awt.Insets
      extended by view.MyInsets
All Implemented Interfaces:
Serializable, Cloneable

public class MyInsets
extends Insets

A convenience class to support Insets construction with a single string argument as the constructor. The string should be a comma-separated list of four ints.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.Insets
bottom, left, right, top
 
Constructor Summary
MyInsets(int t, int l, int b, int r)
          Passes the arguments to the superclass.
MyInsets(String comma)
          Parses the string into integers and passes them to the superconstructor.
 
Method Summary
 String toString()
          Returns a string that is parsable for this class's constructor.
static String toString(Insets i)
          Returns a string that is parsable for this class's constructor.
 
Methods inherited from class java.awt.Insets
clone, equals, hashCode, set
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MyInsets

public MyInsets(int t,
                int l,
                int b,
                int r)
Passes the arguments to the superclass.


MyInsets

public MyInsets(String comma)
Parses the string into integers and passes them to the superconstructor.

Method Detail

toString

public String toString()
Returns a string that is parsable for this class's constructor.

Overrides:
toString in class Insets

toString

public static String toString(Insets i)
Returns a string that is parsable for this class's constructor.