public interface PaletteProviderManager
Modifier and Type | Method and Description |
---|---|
void |
addPaletteProvider(PaletteProvider provider)
Add a palette provider to the manager.
|
PaletteProvider |
getPaletteProvider(String provider)
Return the palette provider that matches the name in the argument.
|
List<PaletteProvider> |
getPaletteProviders()
Return the list of currently registered palette providers
|
List<PaletteProvider> |
getPaletteProviders(PaletteType type,
boolean colorSafe)
Return the list of currently registered palette providers
that provide palettes of the requested type.
|
void |
removePaletteProvider(PaletteProvider provider)
Remove a palette provider from the manager.
|
Palette |
retrievePalette(Object key)
Retrieve a palette previously saved
|
void |
savePalette(Object key,
Palette palette)
Save a palette.
|
List<PaletteProvider> getPaletteProviders()
List<PaletteProvider> getPaletteProviders(PaletteType type, boolean colorSafe)
type
- the type of the palettecolorSafe
- true if the palette should provide color safe palettesPaletteProvider getPaletteProvider(String provider)
provider
- the name of the provider.void addPaletteProvider(PaletteProvider provider)
provider
- the provider to add.void removePaletteProvider(PaletteProvider provider)
provider
- the provider to remove.void savePalette(Object key, Palette palette)
key
- the key to save this palette underpalette
- the Palette
to saveCopyright 2011-2015 Cytoscape Consortium. All rights reserved.