public class Theme extends Object
Constructor and Description |
---|
Theme(String name,
Font font,
Color fg,
Color bg) |
Modifier and Type | Method and Description |
---|---|
static void |
addTheme(Theme theme) |
static Theme |
fromString(String name,
String expr) |
Color |
getBgColor() |
static Color |
getColor(String rgb) |
static String |
getColorName(Color color) |
Color |
getFgColor() |
Font |
getFont() |
static Font |
getFont(String desc) |
static String |
getFontString(Font font) |
static int |
getFontStyle(String weight) |
static String |
getFontStyleName(int code) |
String |
getName() |
static Theme |
getTheme(String name) |
static Theme[] |
getThemes() |
void |
setBgColor(Color bg) |
void |
setFgColor(Color fg) |
void |
setFont(Font font) |
void |
setName(String name) |
String |
toString() |
public static void addTheme(Theme theme)
public static Theme[] getThemes()
public static int getFontStyle(String weight)
public static String getFontStyleName(int code)
public void setName(String name)
public String getName()
public Font getFont()
public Color getBgColor()
public Color getFgColor()
public void setFgColor(Color fg)
public void setFont(Font font)
public void setBgColor(Color bg)
Copyright © 2011 Nuxeo SA. All Rights Reserved.