![]() |
|
Contents |
Public Member Functions | |
| Object | get (SynthContext context, Object key) |
| The default implementation returns null. | |
| boolean | getBoolean (SynthContext context, Object key, boolean defaultValue) |
| Returns boolean value from the properties table or the default value. | |
| Color | getColor (SynthContext context, ColorType type) |
| Font | getFont (SynthContext context) |
| Icon | getIcon (SynthContext context, Object key) |
| The default implementation just casts Object returned by get(Object, key method). | |
| Insets | getInsets (SynthContext context, Insets modified) |
| The default implementation returns empty insets. | |
| int | getInt (SynthContext context, Object key, int defaultValue) |
| SynthPainter | getPainter (SynthContext context) |
| String | getString (SynthContext context, Object key, String defaultValue) |
| void | installDefaults (SynthContext context) |
| The default implementation is empty. | |
| boolean | isOpaque (SynthContext context) |
| void | uninstallDefaults (SynthContext context) |
| The default implementation is empty. | |
| SynthGraphicsUtils | getGraphicsUtils (@SuppressWarnings("unused") SynthContext context) |
Protected Member Functions | |
| abstract Font | getFontForState (SynthContext context) |
| abstract Color | getColorForState (SynthContext context, ColorType type) |
Static Package Attributes | |
| static final SynthStyle | NULL_STYLE |
| Null style used by StyleFactory to represent styles that not found. | |
Private Attributes | |
| boolean | isOpaque = true |
| The default isOpaque value. | |
| Object get | ( | SynthContext | context, | |
| Object | key | |||
| ) |
The default implementation returns null.
| boolean getBoolean | ( | SynthContext | context, | |
| Object | key, | |||
| boolean | defaultValue | |||
| ) |
Returns boolean value from the properties table or the default value.
| Color getColor | ( | SynthContext | context, | |
| ColorType | type | |||
| ) |
| Font getFont | ( | SynthContext | context | ) |
| abstract Font getFontForState | ( | SynthContext | context | ) | [protected, pure virtual] |
Implemented in XMLSynthStyle.
| Icon getIcon | ( | SynthContext | context, | |
| Object | key | |||
| ) |
The default implementation just casts Object returned by get(Object, key method).
Reimplemented in XMLSynthStyle.
| Insets getInsets | ( | SynthContext | context, | |
| Insets | modified | |||
| ) |
| int getInt | ( | SynthContext | context, | |
| Object | key, | |||
| int | defaultValue | |||
| ) |
| SynthPainter getPainter | ( | SynthContext | context | ) |
| String getString | ( | SynthContext | context, | |
| Object | key, | |||
| String | defaultValue | |||
| ) |
| void installDefaults | ( | SynthContext | context | ) |
The default implementation is empty.
| boolean isOpaque | ( | SynthContext | context | ) |
Reimplemented in XMLSynthStyle.
| void uninstallDefaults | ( | SynthContext | context | ) |
The default implementation is empty.
| abstract Color getColorForState | ( | SynthContext | context, | |
| ColorType | type | |||
| ) | [protected, pure virtual] |
Implemented in XMLSynthStyle.
| SynthGraphicsUtils getGraphicsUtils | ( | @SuppressWarnings("unused") SynthContext | context | ) |
final SynthStyle NULL_STYLE [static, package] |
Initial value:
new SynthStyle() { @Override public SynthPainter getPainter(SynthContext context) { return new SynthPainter() { }; } @Override protected Color getColorForState(SynthContext context, ColorType type) { return null; } @Override protected Font getFontForState(SynthContext context) { return null; } }
boolean isOpaque = true [private] |