API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.synth. SynthStyle View Source
Author(s)
Scott Violet
Since
1.5
Version
1.38, 03/29/06
Serial
Hierarchy
 Object
      SynthStyle
Implements
Subclasses
Description
publicabstract abstract class SynthStyle
  SynthStyle is a set of style properties.
Constructors
public SynthStyle ()
Constructs a SynthStyle.
Methods
Hide/Show inherited methods
public Object get (SynthContext context, Object key)
  Getter for a region specific style property.
public boolean getBoolean (SynthContext context, Object key, boolean defaultValue)
  Convenience method to get a specific style property whose value is an Boolean.
public Color getColor (SynthContext context, ColorType type)
  Returns the color for the specified state.
protectedabstract Color getColorForState (SynthContext context, ColorType type)
  Returns the color for the specified state.
public Font getFont (SynthContext context)
  Returns the Font for the specified state.
protectedabstract Font getFontForState (SynthContext context)
  Returns the font for the specified state.
public SynthGraphicsUtils getGraphicsUtils (SynthContext context)
  Returns the SynthGraphicUtils for the specified context.
public Icon getIcon (SynthContext context, Object key)
  Convenience method to get a specific style property whose value is an Icon.
public Insets getInsets (SynthContext context, Insets insets)
  Returns the Insets that are used to calculate sizing information.
public int getInt (SynthContext context, Object key, int defaultValue)
  Convenience method to get a specific style property whose value is a Number.
public SynthPainter getPainter (SynthContext context)
  Returns the SynthPainter that will be used for painting.
public String getString (SynthContext context, Object key, String defaultValue)
  Convenience method to get a specific style property whose value is a String.
public void installDefaults (SynthContext context)
  Installs the necessary state from this Style on the JComponent from context.
pack-private void installDefaults (SynthContext context, sun.swing.plaf.synth.SynthUI ui)
public boolean isOpaque (SynthContext context)
  Returns true if the region is opaque.
public void uninstallDefaults (SynthContext context)
  Uninstalls any state that this style installed on the JComponent from context.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar