com.virtuosotechnologies.asaph.notationmanager
Interface NotationManager


public interface NotationManager

API for NotationManager.

This API is thread-safe and may be called from any thread.


Method Summary
 NotationFactory getNotationFactoryForLocale(Locale locale)
          Get the NotationFactory for the given locale.
 Locale[] getRepresentativeLocales()
          Get an array of representative locales, used for choosing a NotationFactory.
 void setNotationFactoryForLocale(LocaleFilter filter, Locale representative, NotationFactory factory)
          Register a NotationFactory to use for a given locale.
 

Method Detail

getNotationFactoryForLocale

public NotationFactory getNotationFactoryForLocale(Locale locale)
Get the NotationFactory for the given locale. If called multiple times for the same locale, it will return the same NotationFactory object.

Parameters:
locale - locale to use, or null to specify the default locale
Returns:
the NotationFactory for this locale.

setNotationFactoryForLocale

public void setNotationFactoryForLocale(LocaleFilter filter,
                                        Locale representative,
                                        NotationFactory factory)
Register a NotationFactory to use for a given locale.

Parameters:
filter - identifier for the relevant locales
representative - a representative locale for use in choosers
factory - NotationFactory to use

getRepresentativeLocales

public Locale[] getRepresentativeLocales()
Get an array of representative locales, used for choosing a NotationFactory. Commonly used to build guis.

Returns:
an array of Locale