Package org.eclipse.gef.ui.palette
Class PaletteColorProvider
java.lang.Object
org.eclipse.gef.GEFColorProvider
org.eclipse.gef.ui.palette.PaletteColorProvider
- All Implemented Interfaces:
- ColorProvider
Default colors used by the 
PaletteViewer which are used when painting
 the palette figures. Clients may extend this class to define their own
 colors. The color provider can be set via
 PaletteViewer.setColorProvider(PaletteColorProvider).
 Important This class is still work-in-progress and new methods might
 be added in the future.- Since:
- 3.20
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.eclipse.draw2d.ColorProviderColorProvider.SystemColorFactory
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal ColorgetButtonDarker(double weight) final ColorReturns the foreground color of thePinFigurewhen the cursor is over the button.final ColorgetListBackground(double weight) Methods inherited from class org.eclipse.gef.GEFColorProvidergetButtonLightest, getLineForeground, getMenuBackground, getMenuBackgroundSelected, getMenuForeground, getMenuForegroundSelected, getTitleBackground, getTitleForeground, getTitleGradient, getTitleInactiveBackground, getTitleInactiveForeground, getTitleInactiveGradient, getTooltipBackground, getTooltipForeground
- 
Field Details- 
INSTANCE
 
- 
- 
Constructor Details- 
PaletteColorProviderprotected PaletteColorProvider()
 
- 
- 
Method Details- 
getListSelectedBackgroundColor- Specified by:
- getListSelectedBackgroundColorin interface- ColorProvider
- Overrides:
- getListSelectedBackgroundColorin class- GEFColorProvider
 
- 
getListHoverBackgroundColor- Specified by:
- getListHoverBackgroundColorin interface- ColorProvider
- Overrides:
- getListHoverBackgroundColorin class- GEFColorProvider
 
- 
getButton- Specified by:
- getButtonin interface- ColorProvider
- Overrides:
- getButtonin class- GEFColorProvider
 
- 
getButtonDarker- Specified by:
- getButtonDarkerin interface- ColorProvider
- Overrides:
- getButtonDarkerin class- GEFColorProvider
 
- 
getButtonDarkest- Specified by:
- getButtonDarkestin interface- ColorProvider
- Overrides:
- getButtonDarkestin class- GEFColorProvider
 
- 
getListBackground- Specified by:
- getListBackgroundin interface- ColorProvider
- Overrides:
- getListBackgroundin class- GEFColorProvider
 
- 
getListForeground- Specified by:
- getListForegroundin interface- ColorProvider
- Overrides:
- getListForegroundin class- GEFColorProvider
 
- 
getButtonDarkerReturns the mix ofgetButton()withgetButtonDarker()with weightweight. This weight must be within the interval [0, 1]. The mixed color is only calculated once and then cached. It is therefore recommended to only call this method with constants, to avoid rounding errors due to floating point arithmetic.- Throws:
- IllegalArgumentException- if- weightis outside the valid range.
 
- 
getListBackgroundReturns the mix ofgetButton()withgetListBackground()with weightweight. This weight must be within the interval [0, 1]. The mixed color is only calculated once and then cached. It is therefore recommended to only call this method with constants, to avoid rounding errors due to floating point arithmetic.- Throws:
- IllegalArgumentException- if- weightis outside the valid range.
- Since:
- 3.21
 
- 
getHotspotColorReturns the foreground color of thePinFigurewhen the cursor is over the button.
 
-