Package com.tagtraum.beatunes
Class CSSSupport
- java.lang.Object
-
- com.tagtraum.beatunes.CSSSupport
-
public final class CSSSupport extends Object
CSS support.- Author:
- Hendrik Schreiber
- See Also:
HTMLSupport
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StyleSheet
createStyleSheet(Component component)
Creates aStyleSheet
based on the component's properties.static String
toCSSColor(Color color)
Returns color in CSS format.static String
toCSSFont(Font font)
Returns font in CSS format.
-
-
-
Method Detail
-
createStyleSheet
public static StyleSheet createStyleSheet(Component component)
Creates aStyleSheet
based on the component's properties.- Parameters:
component
- component- Returns:
- a stylesheet
-
toCSSColor
public static String toCSSColor(Color color)
Returns color in CSS format.- Parameters:
color
- color- Returns:
- color in css format,
color: rgb(r, g, b);
-
-