Class sunsoft.jws.visual.rt.type.PointConverter
All Packages Class Hierarchy This Package Previous Next Index
Class sunsoft.jws.visual.rt.type.PointConverter
java.lang.Object
|
+----sunsoft.jws.visual.rt.type.Converter
|
+----sunsoft.jws.visual.rt.type.PointConverter
- public class PointConverter
- extends Converter
Converts Point objects to strings and back again.
An example of the string representation: "x=45;y=24".
-
PointConverter()
-
-
convertFromString(String)
- Converts a string representation to a new instance of Point.
-
convertToCode(Object)
- Converts an instance of the type converted into a line of code.
-
convertToString(Object)
- Returns the string representation for an instance of the type this
converter converts.
PointConverter
public PointConverter()
convertToString
public String convertToString(Object obj)
- Returns the string representation for an instance of the type this
converter converts.
- Overrides:
- convertToString in class Converter
convertFromString
public Object convertFromString(String s)
- Converts a string representation to a new instance of Point.
- Throws: ParseException
- when there is a format problem with the string
- Overrides:
- convertFromString in class Converter
convertToCode
public String convertToCode(Object obj)
- Converts an instance of the type converted into a line of code.
- Overrides:
- convertToCode in class Converter
All Packages Class Hierarchy This Package Previous Next Index