Interface RhythmDirsLocator
- All Known Implementing Classes:
RhythmDirsLocatorImpl
public interface RhythmDirsLocator
Provides the location of the rhythm-related directories
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic RhythmDirsLocatorGet the default implementation found in the global lookup, or a basic implementation if nothing found.default FileGet the directory for default rhythm files.Get the user base directory for Rhythm files.voidvoidSet the user base directory where to find rhythm files.
-
Field Details
-
DEFAULT_RHYTHMS_SUBDIR
- See Also:
-
PROP_RHYTHM_USER_DIRECTORY
A property change event must be fired when rhythm user directory is changed.- See Also:
-
-
Method Details
-
getDefault
Get the default implementation found in the global lookup, or a basic implementation if nothing found.- Returns:
-
getUserRhythmsDirectory
File getUserRhythmsDirectory()Get the user base directory for Rhythm files.Create the directory if required.
- Returns:
- An existing directory
-
setUserRhythmsDirectory
Set the user base directory where to find rhythm files.If changed the method fires a PROP_RHYTHM_USER_DIRECTORY property change event.
- Parameters:
dir- Must exist
-
getDefaultRhythmsDirectory
Get the directory for default rhythm files.Default implementation returns getUserRhythmsDirectory()/DEFAULT_RHYTHMS_SUBDIR. Create the directory if required.
- Returns:
- An existing directory
-
addPropertyChangeListener
-
removePropertyChangeListener
-