com.l2fprod.common.util.converter
Class AWTConverters

java.lang.Object
  extended by com.l2fprod.common.util.converter.AWTConverters
All Implemented Interfaces:
Converter

public class AWTConverters
extends java.lang.Object
implements Converter

AWTConverters.
Converter commonly used AWT classes like Point, Dimension, Rectangle, Insets to/from Strings and between each others when possible. The following convertions are supported:

From To Reverse
Dimension String yes
Font String no
Insets String yes
Point String yes
Rectangle String yes


Constructor Summary
AWTConverters()
           
 
Method Summary
 java.lang.Object convert(java.lang.Class type, java.lang.Object value)
          Converts value to an object of type.
 void register(ConverterRegistry registry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWTConverters

public AWTConverters()
Method Detail

register

public void register(ConverterRegistry registry)

convert

public java.lang.Object convert(java.lang.Class type,
                                java.lang.Object value)
Description copied from interface: Converter
Converts value to an object of type.

Specified by:
convert in interface Converter
Returns:
value converted to an object of type.