view
Class MyInsets
java.lang.Object
java.awt.Insets
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
|
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. |
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.
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.