API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.synth. SynthContext View Source
Author(s)
Scott Violet
Since
1.5
Version
1.10, 11/17/05
Serial
Hierarchy
 Object
      SynthContext
Implements
Subclasses
Description
public class SynthContext
  An immutable transient object containing contextual information about a Region.
See also:   
Constructors
pack-private SynthContext ()
public SynthContext (JComponent component, Region region, SynthStyle style, int state)
  Creates a SynthContext with the specified values.
Methods
Hide/Show inherited methods
pack-private void dispose ()
public JComponent getComponent ()
  Returns the hosting component containing the region.
public int getComponentState ()
  Returns the state of the widget, which is a bitmask of the values defined in SynthConstants.
pack-privatestatic SynthContext getContext (Class type, JComponent component, Region region, SynthStyle style, int state)
pack-private SynthPainter getPainter ()
  Convenience method to get the Painter from the current SynthStyle.
public Region getRegion ()
  Returns the Region identifying this state.
public SynthStyle getStyle ()
  Returns the style associated with this Region.
pack-private boolean isSubregion ()
A convenience method for getRegion().isSubregion().
pack-privatestatic void releaseContext (SynthContext context)
pack-private void reset (JComponent component, Region region, SynthStyle style, int state)
Resets the state of the Context.
pack-private void setComponentState (int state)
pack-private void setStyle (SynthStyle style)
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar