public abstract class SynthStyle extends java.lang.Object
| Constructor and Description |
|---|
SynthStyle()
Creates a new
SynthStyle object. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(SynthContext ctx,
java.lang.Object key) |
boolean |
getBoolean(SynthContext ctx,
java.lang.Object key,
boolean defaultValue)
A convenience method to fetch an integer property.
|
java.awt.Color |
getColor(SynthContext ctx,
ColorType type) |
protected abstract java.awt.Color |
getColorForState(SynthContext ctx,
ColorType type) |
java.awt.Font |
getFont(SynthContext ctx) |
protected abstract java.awt.Font |
getFontForState(SynthContext ctx) |
SynthGraphicsUtils |
getGraphicsUtils(SynthContext ctx) |
javax.swing.Icon |
getIcon(SynthContext ctx,
java.lang.Object key)
A convenience method to fetch an Icon-valued property.
|
java.awt.Insets |
getInsets(SynthContext ctx,
java.awt.Insets result) |
int |
getInt(SynthContext ctx,
java.lang.Object key,
int defaultValue)
A convenience method to fetch an integer property.
|
SynthPainter |
getPainter(SynthContext ctx) |
java.lang.String |
getString(SynthContext ctx,
java.lang.Object key,
java.lang.String defaultValue)
A convenience method to fetch a String property.
|
void |
installDefaults(SynthContext ctx) |
boolean |
isOpaque(SynthContext ctx) |
void |
uninstallDefaults(SynthContext ctx) |
public SynthStyle() throws NotImplementedException
SynthStyle object.NotImplementedExceptionpublic SynthGraphicsUtils getGraphicsUtils(SynthContext ctx) throws NotImplementedException
NotImplementedExceptionpublic java.awt.Color getColor(SynthContext ctx, ColorType type) throws NotImplementedException
NotImplementedExceptionprotected abstract java.awt.Color getColorForState(SynthContext ctx, ColorType type)
public java.awt.Font getFont(SynthContext ctx) throws NotImplementedException
NotImplementedExceptionprotected abstract java.awt.Font getFontForState(SynthContext ctx)
public java.awt.Insets getInsets(SynthContext ctx, java.awt.Insets result) throws NotImplementedException
NotImplementedExceptionpublic SynthPainter getPainter(SynthContext ctx) throws NotImplementedException
NotImplementedExceptionpublic boolean isOpaque(SynthContext ctx) throws NotImplementedException
NotImplementedExceptionpublic java.lang.Object get(SynthContext ctx, java.lang.Object key) throws NotImplementedException
NotImplementedExceptionpublic void installDefaults(SynthContext ctx) throws NotImplementedException
NotImplementedExceptionpublic void uninstallDefaults(SynthContext ctx) throws NotImplementedException
NotImplementedExceptionpublic int getInt(SynthContext ctx, java.lang.Object key, int defaultValue)
Number, then the
integer value is returned. Otherwise, the default value
is returned.ctx - the contextkey - the key to fetchdefaultValue - the default valuepublic boolean getBoolean(SynthContext ctx, java.lang.Object key, boolean defaultValue)
Boolean, then the
value is returned. Otherwise, the default value
is returned.ctx - the contextkey - the key to fetchdefaultValue - the default valuepublic javax.swing.Icon getIcon(SynthContext ctx, java.lang.Object key)
Icon, then the
value is returned. Otherwise, null is returned.ctx - the contextkey - the key to fetchpublic java.lang.String getString(SynthContext ctx, java.lang.Object key, java.lang.String defaultValue)
String, then the
value is returned. Otherwise, the default value
is returned.ctx - the contextkey - the key to fetchdefaultValue - the default value