|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.plaf.synth.SynthUtils
public class SynthUtils
Utility class as stand-in for package private synth utility methods.
Constructor Summary | |
---|---|
SynthUtils()
|
Method Summary | |
---|---|
static int |
getComponentState(javax.swing.JComponent c)
|
static javax.swing.plaf.synth.SynthContext |
getContext(javax.swing.JComponent c,
javax.swing.plaf.synth.Region region,
javax.swing.plaf.synth.SynthStyle style,
int state)
Returns a SynthContext with the specified values. |
static javax.swing.plaf.synth.SynthContext |
getContext(javax.swing.plaf.synth.SynthContext context,
int state)
Returns a context with the given component state and all other fields same as input context. |
static javax.swing.plaf.synth.SynthContext |
getContext(javax.swing.plaf.synth.SynthContext context,
javax.swing.plaf.synth.SynthStyle style)
|
static javax.swing.plaf.synth.SynthPainter |
getPainter(javax.swing.plaf.synth.SynthContext context)
Returns a SynthPainter from the context's style. |
static boolean |
shouldUpdateStyle(java.beans.PropertyChangeEvent event)
Returns true if the Style should be updated in response to the specified PropertyChangeEvent. |
static void |
update(javax.swing.plaf.synth.SynthContext context,
java.awt.Graphics g)
A convenience method that handles painting of the background. |
static void |
update(javax.swing.plaf.synth.SynthContext context,
java.awt.Graphics g,
java.awt.Rectangle bounds)
A convenience method that handles painting of the background. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SynthUtils()
Method Detail |
---|
public static javax.swing.plaf.synth.SynthContext getContext(javax.swing.JComponent c, javax.swing.plaf.synth.Region region, javax.swing.plaf.synth.SynthStyle style, int state)
component
- JComponentregion
- Identifies the portion of the JComponentstyle
- Style associated with the componentstate
- State of the component as defined in SynthConstants.
java.lang.NullPointerException
- if component, region of style is null.public static javax.swing.plaf.synth.SynthContext getContext(javax.swing.plaf.synth.SynthContext context, javax.swing.plaf.synth.SynthStyle style)
context
- style
-
public static javax.swing.plaf.synth.SynthContext getContext(javax.swing.plaf.synth.SynthContext context, int state)
context
- the context, must not be nullstate
- the component state.
public static javax.swing.plaf.synth.SynthPainter getPainter(javax.swing.plaf.synth.SynthContext context)
context
- SynthContext containing the style, must not be null.
public static boolean shouldUpdateStyle(java.beans.PropertyChangeEvent event)
shouldUpdateStyleOnAncestorChanged
as necessary.
public static int getComponentState(javax.swing.JComponent c)
public static void update(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g)
context
- must not be nullg
- must not be nullpublic static void update(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g, java.awt.Rectangle bounds)
context
- must not be nullg
- must not be nullthe
- bounds to fill, may be null to indicate the complete size
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |