net.sourceforge.steelme
Class LookAndFeelToCSS
java.lang.Object
net.sourceforge.steelme.LookAndFeelToCSS
- Direct Known Subclasses:
- BasicLookAndFeelToCSS
public abstract class LookAndFeelToCSS
- extends Object
A pluggable strategy for converting a LookAndFeel to a Cascading
Stylesheet.
Method Summary |
abstract StyleSheet |
convert(LookAndFeel laf)
Implementation will return a StyleSheet that represents the
given LookAndFeel or UnsupportedLookAndFeelException if it cannot. |
static String |
hexString(Color c)
Returns a string of the form "#FFFFFF" representing the given Color. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LookAndFeelToCSS
public LookAndFeelToCSS()
convert
public abstract StyleSheet convert(LookAndFeel laf)
throws UnsupportedLookAndFeelException
- Implementation will return a StyleSheet that represents the
given LookAndFeel or UnsupportedLookAndFeelException if it cannot.
- Parameters:
laf
- a LookAndFeel
value
- Returns:
- a
StyleSheet
value
- Throws:
UnsupportedLookAndFeelException
- if an error occurs
hexString
public static String hexString(Color c)
- Returns a string of the form "#FFFFFF" representing the given Color.
- Parameters:
c
- a Color
value
- Returns:
- a
String
value