org.crosswire.common.swing
Class GuiConvert

java.lang.Object
  extended by org.crosswire.common.swing.GuiConvert

public class GuiConvert
extends Object

Conversions between various types and Strings.

Distribution Licence:
JSword is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
The License is available on the internet here, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
The copyright to this program is held by it's authors.

Version:
$Id: GuiConvert.java,v 1.4 2004/09/21 17:45:47 dmsmith Exp $
Author:
Joe Walker [joe at eireneh dot com]
See Also:
Licence

Field Summary
private static Logger log
          The log stream
 
Constructor Summary
private GuiConvert()
          We don't want anyone doing this ...
 
Method Summary
static String color2String(Color color)
          Convert a Color to a String
static String font2String(Font font)
          Convert a Font to a String
static Color string2Color(String value)
          Convert a String to a Color
static Font string2Font(String value)
          Convert a String to a Font
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final Logger log
The log stream

Constructor Detail

GuiConvert

private GuiConvert()
We don't want anyone doing this ...

Method Detail

string2Font

public static Font string2Font(String value)
Convert a String to a Font

Parameters:
value - the thing to convert
Returns:
the converted data

font2String

public static String font2String(Font font)
Convert a Font to a String

Parameters:
font - the thing to convert
Returns:
the converted data

string2Color

public static Color string2Color(String value)
Convert a String to a Color

Parameters:
value - the thing to convert
Returns:
the converted data

color2String

public static String color2String(Color color)
Convert a Color to a String

Parameters:
color - the thing to convert
Returns:
the converted data

Copyright ? 2003-2004