javax.swing.plaf.synth
public abstract class SynthStyle extends Object
Since: 1.5
Constructor Summary | |
---|---|
SynthStyle()
Creates a new SynthStyle object. |
Method Summary | |
---|---|
Object | get(SynthContext ctx, Object key) |
boolean | getBoolean(SynthContext ctx, Object key, boolean defaultValue)
A convenience method to fetch an integer property.
|
Color | getColor(SynthContext ctx, ColorType type) |
protected abstract Color | getColorForState(SynthContext ctx, ColorType type) |
Font | getFont(SynthContext ctx) |
protected abstract Font | getFontForState(SynthContext ctx) |
SynthGraphicsUtils | getGraphicsUtils(SynthContext ctx) |
Icon | getIcon(SynthContext ctx, Object key)
A convenience method to fetch an Icon-valued property.
|
Insets | getInsets(SynthContext ctx, Insets result) |
int | getInt(SynthContext ctx, Object key, int defaultValue)
A convenience method to fetch an integer property.
|
SynthPainter | getPainter(SynthContext ctx) |
String | getString(SynthContext ctx, Object key, String defaultValue)
A convenience method to fetch a String property.
|
void | installDefaults(SynthContext ctx) |
boolean | isOpaque(SynthContext ctx) |
void | uninstallDefaults(SynthContext ctx) |
SynthStyle
object.Parameters: ctx the context key the key to fetch defaultValue the default value
Returns: the boolean value of the property, or the default value
Parameters: ctx the context key the key to fetch
Returns: the icon, or null
Parameters: ctx the context key the key to fetch defaultValue the default value
Returns: the integer value of the property, or the default value
Parameters: ctx the context key the key to fetch defaultValue the default value
Returns: the String value of the property, or the default value