| java.lang.Object javax.swing.plaf.synth.SynthStyle javax.swing.plaf.synth.XMLSynthStyle
XMLSynthStyle | class XMLSynthStyle extends SynthStyle implements Cloneable(Code) | | XMLSynthStyle class represents SynthStyle, generated from XMLSynthParser. The
setters used in parser to configure style. The getters used in UI to draw the
component.
|
Method Summary | |
void | addColor(Color c, int state, ColorType type) | void | addFont(Font f, int state) | void | addIcon(Icon icon, int SynthState, String key) | void | addPainter(SynthPainter p, int state, String method, int direction) add painter to paintersManager. | protected Object | clone() | public Object | get(SynthContext context, Object key) | protected Color | getColorForState(SynthContext context, ColorType type) Should note that RI's behavior depends on the order, described in the xml
file (for example either state=ENABLED before state=FOCUSED or after) and
the (unspecified) order of UI's state verification (for example,
if(ButtonModel.isFocused) before Button.isEnabled in SynthButtonUI). | protected Font | getFontForState(SynthContext context) | public SynthGraphicsUtils | getGraphicsUtils(SynthContext context) According to spec, graphicsUitils stated for style - not for context. | public Icon | getIcon(SynthContext context, Object key) | public Insets | getInsets(SynthContext context, Insets modified) | public SynthPainter | getPainter(SynthContext context) | public boolean | isOpaque(SynthContext context) | void | setGraphicsUtils(SynthGraphicsUtils proposed) | void | setInsets(Insets insets) | void | setOpaque(boolean isOpaque) | void | setProperty(String key, Object value) |
addFont | void addFont(Font f, int state)(Code) | | Method used in parser only
|
addPainter | void addPainter(SynthPainter p, int state, String method, int direction)(Code) | | add painter to paintersManager. Method used in parser only
|
getColorForState | protected Color getColorForState(SynthContext context, ColorType type)(Code) | | Should note that RI's behavior depends on the order, described in the xml
file (for example either state=ENABLED before state=FOCUSED or after) and
the (unspecified) order of UI's state verification (for example,
if(ButtonModel.isFocused) before Button.isEnabled in SynthButtonUI).
I've construct the getColorForState, getFontForState and
PainterManager.findPainter methods according to the RI's black box
testing (although, the RI's behavior seems incorrect for me)
Anyway, if you will to deal with using coloring, fonts or painters order
you should see the following: UI: getComponentState method,
XMLSynthParser: processColorElement, processFontElement,
processPainterElement, processImagePainterElement (generating the lists),
PainterManager(for painters) and this class
|
getGraphicsUtils | public SynthGraphicsUtils getGraphicsUtils(SynthContext context)(Code) | | According to spec, graphicsUitils stated for style - not for context.
That's why context is unused.
|
setInsets | void setInsets(Insets insets)(Code) | | Method used in parser only
|
setOpaque | void setOpaque(boolean isOpaque)(Code) | | Method used in parser only
|
Methods inherited from javax.swing.plaf.synth.SynthStyle | public Object get(SynthContext context, Object key)(Code)(Java Doc) public boolean getBoolean(SynthContext context, Object key, boolean defaultValue)(Code)(Java Doc) public Color getColor(SynthContext context, ColorType type)(Code)(Java Doc) abstract protected Color getColorForState(SynthContext context, ColorType type)(Code)(Java Doc) public Font getFont(SynthContext context)(Code)(Java Doc) abstract protected Font getFontForState(SynthContext context)(Code)(Java Doc) public SynthGraphicsUtils getGraphicsUtils(SynthContext context)(Code)(Java Doc) public Icon getIcon(SynthContext context, Object key)(Code)(Java Doc) public Insets getInsets(SynthContext context, Insets modified)(Code)(Java Doc) public int getInt(SynthContext context, Object key, int defaultValue)(Code)(Java Doc) public SynthPainter getPainter(SynthContext context)(Code)(Java Doc) public String getString(SynthContext context, Object key, String defaultValue)(Code)(Java Doc) public void installDefaults(SynthContext context)(Code)(Java Doc) public boolean isOpaque(SynthContext context)(Code)(Java Doc) public void uninstallDefaults(SynthContext context)(Code)(Java Doc)
|
|
|