API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.synth. SynthLookAndFeel View Source
Author(s)
Scott Violet
Since
1.5
Version
1.48, 05/24/05
Serial
exclude
Hierarchy
 Object
      LookAndFeel
          BasicLookAndFeel
              SynthLookAndFeel
Implements
Subclasses
Description
public class SynthLookAndFeel
  SynthLookAndFeel provides the basis for creating a customized look and feel.
See also:   
Constructors
public SynthLookAndFeel ()
  Creates a SynthLookAndFeel.
Methods
Hide/Show inherited methods
protected Action createAudioAction (Object key) [Inherited From BasicLookAndFeel]
  Creates and returns an Action used to play a sound.
publicstatic ComponentUI createUI (JComponent c)
  Creates the Synth look and feel ComponentUI for the passed in JComponent.
protected ActionMap getAudioActionMap () [Inherited From BasicLookAndFeel]
  Returns an ActionMap containing the audio actions for this look and feel.
pack-privatestatic int getComponentState (Component c)
  Returns the component state for the specified component.
public UIDefaults getDefaults () [Overrides BasicLookAndFeel]
  Returns the defaults for this SynthLookAndFeel.
public String getDescription () [Specified in LookAndFeel]
  Returns a textual description of SynthLookAndFeel.
publicstatic Object getDesktopPropertyValue (String systemPropertyName, Object fallbackValue) [Inherited From LookAndFeel]
  Returns the value of the specified system desktop property by invoking Toolkit.getDefaultToolkit().getDesktopProperty().
public Icon getDisabledIcon (JComponent component, Icon icon) [Inherited From LookAndFeel]
  Returns an Icon with a disabled appearance.
public Icon getDisabledSelectedIcon (JComponent component, Icon icon) [Inherited From LookAndFeel]
  Returns an Icon for use by disabled components that are also selected.
public String getID () [Specified in LookAndFeel]
  Return a string that identifies this look and feel.
public LayoutStyle getLayoutStyle () [Inherited From LookAndFeel]
  Returns the LayoutStyle for this look and feel.
public String getName () [Specified in LookAndFeel]
  Return a short string that identifies this look and feel.
pack-privatestatic Insets getPaintingInsets (SynthContext state, Insets insets)
A convenience method to return where the foreground should be painted for the Component identified by the passed in AbstractSynthContext.
publicstatic Region getRegion (JComponent c)
  Returns the Region for the JComponent c.
publicstatic SynthStyle getStyle (JComponent c, Region region)
  Gets a SynthStyle for the specified region of the specified component.
publicstatic SynthStyleFactory getStyleFactory ()
  Returns the current SynthStyleFactory.
public boolean getSupportsWindowDecorations () [Inherited From LookAndFeel]
  Returns true if the LookAndFeel returned RootPaneUI instances support providing Window decorations in a JRootPane.
pack-privatestatic Object getUIOfType (ComponentUI ui, Class klass)
Returns the ui that is of type klass, or null if one can not be found.
protected void initClassDefaults (UIDefaults table) [Inherited From BasicLookAndFeel]
  Populates table with mappings from uiClassID to the fully qualified name of the ui class.
protected void initComponentDefaults (UIDefaults table) [Inherited From BasicLookAndFeel]
  Populates table with the defaults for the basic look and feel.
public void initialize () [Overrides BasicLookAndFeel]
Called by UIManager when this look and feel is installed.
protected void initSystemColorDefaults (UIDefaults table) [Inherited From BasicLookAndFeel]
  Populates table with system colors.
publicstatic void installBorder (JComponent c, String defaultBorderName) [Inherited From LookAndFeel]
  Convenience method for setting a component's border property with a value from the defaults.
publicstatic void installColors (JComponent c, String defaultBgName, String defaultFgName) [Inherited From LookAndFeel]
  Convenience method for setting a component's foreground and background color properties with values from the defaults.
publicstatic void installColorsAndFont (JComponent c, String defaultBgName, String defaultFgName, String defaultFontName) [Inherited From LookAndFeel]
  Convenience method for setting a component's foreground, background and font properties with values from the defaults.
publicstatic void installProperty (JComponent c, String propertyName, Object propertyValue) [Inherited From LookAndFeel]
  Convenience method for installing a property with the specified name and value on a component if that property has not already been set by the developer.
pack-privatestatic boolean isLeftToRight (Component c)
public boolean isNativeLookAndFeel () [Specified in LookAndFeel]
  Returns false, SynthLookAndFeel is not a native look and feel.
public boolean isSupportedLookAndFeel () [Specified in LookAndFeel]
  Returns true, SynthLookAndFeel is always supported.
public void load (InputStream input, Class<Object> resourceBase) throws ParseException
  Loads the set of SynthStyles that will be used by this SynthLookAndFeel.
public void load (URL url) throws ParseException IOException
  Loads the set of SynthStyles that will be used by this SynthLookAndFeel.
publicstatic void loadKeyBindings (InputMap retMap, Object keys) [Inherited From LookAndFeel]
  Populates an InputMap with the specified bindings.
protected void loadSystemColors (UIDefaults table, String systemColors, boolean useNative) [Inherited From BasicLookAndFeel]
  Populates table with the name-color pairs in systemColors.
publicstatic ComponentInputMap makeComponentInputMap (JComponent c, Object keys) [Inherited From LookAndFeel]
  Creates a ComponentInputMapUIResource from keys.
publicstatic Object makeIcon (Class<Object> baseClass, String gifFile) [Inherited From LookAndFeel]
  Creates and returns a UIDefault.LazyValue that loads an image.
publicstatic InputMap makeInputMap (Object keys) [Inherited From LookAndFeel]
  Creates a InputMapUIResource from keys.
publicstatic KeyBinding makeKeyBindings (Object keyBindingList) [Inherited From LookAndFeel]
  Convenience method for building an array of KeyBindings.
protected void playSound (Action audioAction) [Inherited From BasicLookAndFeel]
  If necessary, invokes actionPerformed on audioAction to play a sound.
public void provideErrorFeedback (Component component) [Inherited From LookAndFeel]
  Invoked when the user attempts an invalid operation, such as pasting into an uneditable JTextField that has focus.
pack-privatestatic void resetSelectedUI ()
Clears out the selected UI that was last set in setSelectedUI.
pack-privatestatic void setSelectedUI (ComponentUI uix, boolean selected, boolean focused, boolean enabled, boolean rollover)
  Used by the renderers.
publicstatic void setStyleFactory (SynthStyleFactory cache)
  Sets the SynthStyleFactory that the UI classes provided by synth will use to obtain a SynthStyle.
pack-privatestatic boolean shouldUpdateStyle (PropertyChangeEvent event)
  Returns true if the Style should be updated in response to the specified PropertyChangeEvent.
public boolean shouldUpdateStyleOnAncestorChanged ()
  Returns whether or not the UIs should update their SynthStyles from the SynthStyleFactory when the ancestor of the JComponent changes.
public String toString () [Inherited From LookAndFeel]
  Returns a string that displays and identifies this object's properties.
public void uninitialize () [Overrides BasicLookAndFeel]
Called by UIManager when this look and feel is uninstalled.
publicstatic void uninstallBorder (JComponent c) [Inherited From LookAndFeel]
  Convenience method for uninstalling a border.
pack-privatestatic void update (SynthContext state, Graphics g)
  A convenience method that handles painting of the background.
pack-privatestatic SynthStyle updateStyle (SynthContext context, sun.swing.plaf.synth.SynthUI ui)
  A convience method that will reset the Style of StyleContext if necessary.
publicstatic void updateStyles (Component c)
  Updates the style associated with c, and all its children.
pack-privatestatic void updateSubregion (SynthContext state, Graphics g, Rectangle bounds)
  A convenience method that handles painting of the background for subregions.
Fields
Hide/Show inherited fields
pack-privatefinalstatic Insets EMPTY_UIRESOURCE_INSETS
Used in a handful of places where we need an empty Insets.
pack-privatestatic ComponentUI selectedUI
pack-privatestatic int selectedUIState
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar