Class sunsoft.jws.visual.rt.type.InsetsConverter
All Packages Class Hierarchy This Package Previous Next Index
Class sunsoft.jws.visual.rt.type.InsetsConverter
java.lang.Object
|
+----sunsoft.jws.visual.rt.type.Converter
|
+----sunsoft.jws.visual.rt.type.InsetsConverter
- public class InsetsConverter
- extends Converter
Converts Insets to strings and back again.
An example of the inset string format: "top=14;left=5;bottom=10;right=4".
- See Also:
- Insets
-
InsetsConverter()
-
-
convertFromString(String)
- Returns a new instance of Insets according to the string representation
given.
-
convertToCode(Object)
- Returns code to create an instance of Insets like the one given.
-
convertToString(Object)
- Converts an instance of Insets to its string representation.
InsetsConverter
public InsetsConverter()
convertToString
public String convertToString(Object obj)
- Converts an instance of Insets to its string representation.
- Parameters:
- obj - an instance of Insets
- Overrides:
- convertToString in class Converter
convertFromString
public Object convertFromString(String s)
- Returns a new instance of Insets according to the string representation
given.
- Throws: ParseException
- when there is a format error in the string
- Overrides:
- convertFromString in class Converter
convertToCode
public String convertToCode(Object obj)
- Returns code to create an instance of Insets like the one given.
- Parameters:
- obj - an instance of Insets
- Overrides:
- convertToCode in class Converter
All Packages Class Hierarchy This Package Previous Next Index