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

Constructor Index

 o InsetsConverter()

Method Index

 o convertFromString(String)
Returns a new instance of Insets according to the string representation given.
 o convertToCode(Object)
Returns code to create an instance of Insets like the one given.
 o convertToString(Object)
Converts an instance of Insets to its string representation.

Constructors

 o InsetsConverter
  public InsetsConverter()

Methods

 o 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
 o 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
 o 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