org.netbeans.modules.editor.settings.storage/1 1.19

org.netbeans.modules.editor.settings.storage.api
Class FontColorSettingsFactory

java.lang.Object
  extended by org.netbeans.modules.editor.settings.storage.api.FontColorSettingsFactory

public abstract class FontColorSettingsFactory
extends Object

Getters and setters for font & color editor profiles. Instances of this class should be registerred in MimeLookup for particular mime types.


Constructor Summary
FontColorSettingsFactory()
           
 
Method Summary
abstract  Collection<AttributeSet> getAllFontColorDefaults(String profile)
          Gets default values for all font & colors for given profile, or null if profile does not exist or if it does not have any defaults.
abstract  Collection<AttributeSet> getAllFontColors(String profile)
          Gets all token font and colors for given scheme or null, if scheme does not exists.
abstract  void setAllFontColors(String profile, Collection<AttributeSet> fontColors)
          Sets all token font and colors for given scheme.
abstract  void setAllFontColorsDefaults(String profile, Collection<AttributeSet> fontColors)
          Sets default values for all token font and colors for given scheme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontColorSettingsFactory

public FontColorSettingsFactory()
Method Detail

getAllFontColors

public abstract Collection<AttributeSet> getAllFontColors(String profile)
Gets all token font and colors for given scheme or null, if scheme does not exists.

Parameters:
profile - the name of profile
Returns:
token font and colors

getAllFontColorDefaults

public abstract Collection<AttributeSet> getAllFontColorDefaults(String profile)
Gets default values for all font & colors for given profile, or null if profile does not exist or if it does not have any defaults.

Parameters:
profile - the name of profile
Returns:
default values for all font & colors

setAllFontColors

public abstract void setAllFontColors(String profile,
                                      Collection<AttributeSet> fontColors)
Sets all token font and colors for given scheme.

Parameters:
profile - the name of profile
fontColors - new colorings

setAllFontColorsDefaults

public abstract void setAllFontColorsDefaults(String profile,
                                              Collection<AttributeSet> fontColors)
Sets default values for all token font and colors for given scheme.

Parameters:
profile - the name of profile
fontColors - new colorings

org.netbeans.modules.editor.settings.storage/1 1.19

Built on December 3 2008.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.