Class PaletteService
java.lang.Object
org.eclipse.ui.services.AbstractServiceFactory
org.dawnsci.plotting.histogram.service.PaletteService
- All Implemented Interfaces:
IPaletteService
public class PaletteService
extends org.eclipse.ui.services.AbstractServiceFactory
implements IPaletteService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(Class serviceInterface, org.eclipse.ui.services.IServiceLocator parentLocator, org.eclipse.ui.services.IServiceLocator locator) Names of categoriesgetColorCategory(String colour) Returns the color categorygetColorsByCategory(String sCategory) Returns a list of color of a particular categoryNames of schemesReturn the application wide current default color scheme nameorg.eclipse.swt.graphics.PaletteDatagetDirectPaletteData(String colourSchemeName) 8-bit Palette data from scheme.getFunctionContainer(String colourSchemeName) Functions from scheme for 16-bit palette data or more.static IPaletteServicevoidsetDefaultColorScheme(String color) Set the application wide current default color scheme by namevoidsetInverted(boolean inverted) Inverts the Palette datavoidused by osgi injection
-
Constructor Details
-
PaletteService
public PaletteService()
-
-
Method Details
-
getColorSchemes
Description copied from interface:IPaletteServiceNames of schemes- Specified by:
getColorSchemesin interfaceIPaletteService- Returns:
-
getDirectPaletteData
Description copied from interface:IPaletteService8-bit Palette data from scheme.- Specified by:
getDirectPaletteDatain interfaceIPaletteService- Parameters:
colourSchemeName-- Returns:
-
create
public Object create(Class serviceInterface, org.eclipse.ui.services.IServiceLocator parentLocator, org.eclipse.ui.services.IServiceLocator locator) - Specified by:
createin classorg.eclipse.ui.services.AbstractServiceFactory
-
getFunctionContainer
Description copied from interface:IPaletteServiceFunctions from scheme for 16-bit palette data or more.- Specified by:
getFunctionContainerin interfaceIPaletteService- Parameters:
colourSchemeName-- Returns:
-
setInverted
public void setInverted(boolean inverted) Description copied from interface:IPaletteServiceInverts the Palette data- Specified by:
setInvertedin interfaceIPaletteService- Parameters:
inverted-
-
setPaletteService
used by osgi injection- Parameters:
ps-
-
getPaletteService
-
getColorsByCategory
Description copied from interface:IPaletteServiceReturns a list of color of a particular category- Specified by:
getColorsByCategoryin interfaceIPaletteService- Returns:
- List of colors
-
getColorCategory
Description copied from interface:IPaletteServiceReturns the color category- Specified by:
getColorCategoryin interfaceIPaletteService- Parameters:
colour-- Returns:
- category
-
getColorCategories
Description copied from interface:IPaletteServiceNames of categories- Specified by:
getColorCategoriesin interfaceIPaletteService- Returns:
-
getDefaultColorScheme
Description copied from interface:IPaletteServiceReturn the application wide current default color scheme name- Specified by:
getDefaultColorSchemein interfaceIPaletteService- Returns:
- scheme
-
setDefaultColorScheme
Description copied from interface:IPaletteServiceSet the application wide current default color scheme by name- Specified by:
setDefaultColorSchemein interfaceIPaletteService- Parameters:
color-
-