net.sourceforge.steelme
Class LookAndFeelToCSS

java.lang.Object
  extended by 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.


Constructor Summary
LookAndFeelToCSS()
           
 
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
 

Constructor Detail

LookAndFeelToCSS

public LookAndFeelToCSS()
Method Detail

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