Module org.bigdataviewer.core
Package bdv.ui.settings.style
Class StyleProfileManager<M extends StyleManager<M,S>,S extends Style<S>>
- java.lang.Object
-
- bdv.ui.settings.style.StyleProfileManager<M,S>
-
- All Implemented Interfaces:
SelectAndEditProfileSettingsPage.ProfileManager<StyleProfile<S>>
public class StyleProfileManager<M extends StyleManager<M,S>,S extends Style<S>> extends Object implements SelectAndEditProfileSettingsPage.ProfileManager<StyleProfile<S>>
-
-
Constructor Summary
Constructors Constructor Description StyleProfileManager(M styleManager, M editingStyleManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply()voidcancel()voiddelete(StyleProfile<S> profile)StyleProfile<S>duplicate(StyleProfile<S> profile)Duplicateprofilewith a new derived name and add it to user profiles list.List<StyleProfile<S>>getProfiles()StyleProfile<S>getSelectedProfile()voidrename(StyleProfile<S> profile, String newName)Try to set the name ofprofiletonewName.voidselect(StyleProfile<S> profile)Select the active profile.
-
-
-
Method Detail
-
getProfiles
public List<StyleProfile<S>> getProfiles()
- Specified by:
getProfilesin interfaceSelectAndEditProfileSettingsPage.ProfileManager<M extends StyleManager<M,S>>
-
getSelectedProfile
public StyleProfile<S> getSelectedProfile()
- Specified by:
getSelectedProfilein interfaceSelectAndEditProfileSettingsPage.ProfileManager<M extends StyleManager<M,S>>
-
select
public void select(StyleProfile<S> profile)
Description copied from interface:SelectAndEditProfileSettingsPage.ProfileManagerSelect the active profile.- Specified by:
selectin interfaceSelectAndEditProfileSettingsPage.ProfileManager<M extends StyleManager<M,S>>- Parameters:
profile- the profile.
-
duplicate
public StyleProfile<S> duplicate(StyleProfile<S> profile)
Description copied from interface:SelectAndEditProfileSettingsPage.ProfileManagerDuplicateprofilewith a new derived name and add it to user profiles list.- Specified by:
duplicatein interfaceSelectAndEditProfileSettingsPage.ProfileManager<M extends StyleManager<M,S>>- Parameters:
profile- the profile.- Returns:
- duplicated profile
-
rename
public void rename(StyleProfile<S> profile, String newName)
Description copied from interface:SelectAndEditProfileSettingsPage.ProfileManagerTry to set the name ofprofiletonewName.- Specified by:
renamein interfaceSelectAndEditProfileSettingsPage.ProfileManager<M extends StyleManager<M,S>>- Parameters:
profile- the profile.newName- the name to set.
-
delete
public void delete(StyleProfile<S> profile)
- Specified by:
deletein interfaceSelectAndEditProfileSettingsPage.ProfileManager<M extends StyleManager<M,S>>
-
apply
public void apply()
- Specified by:
applyin interfaceSelectAndEditProfileSettingsPage.ProfileManager<M extends StyleManager<M,S>>
-
cancel
public void cancel()
- Specified by:
cancelin interfaceSelectAndEditProfileSettingsPage.ProfileManager<M extends StyleManager<M,S>>
-
-