com.l2fprod.common.util.converter
Class AWTConverters
java.lang.Object
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 |
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 |
AWTConverters
public AWTConverters()
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
- Parameters:
type
- value
-
- Returns:
value
converted to an object of type
.
Copyright (c) 2005-2006 L2FProd.com. All Rights Reserved.