public class Theme extends Object
Modifier and Type | Field and Description |
---|---|
protected Color |
bg |
protected static Font |
defFont |
protected static String |
defTheme |
protected Color |
fg |
protected Font |
font |
protected String |
name |
protected static Map<String,Theme> |
themes |
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 int getFontStyle(String weight)
public static String getFontStyleName(int code)
public static String getFontString(Font font)
public static String getColorName(Color color)
public Color getBgColor()
public Color getFgColor()
public void setFgColor(Color fg)
public void setBgColor(Color bg)
public static Theme fromString(String name, String expr)
Copyright © 2016 Nuxeo SA. All rights reserved.