Class BooleanStyleProvider
- java.lang.Object
-
- org.eclipse.nebula.visualization.xygraph.styleprovider.BasePointStyleProvider
-
- org.eclipse.nebula.visualization.xygraph.styleprovider.BooleanStyleProvider
-
- All Implemented Interfaces:
IPointStyleProvider
public class BooleanStyleProvider extends BasePointStyleProvider
Example StyleProvider for boolean elements... if SampleObject is true -> color is green
if SampleObject is true -> color is red
-
-
Constructor Summary
Constructors Constructor Description BooleanStyleProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.graphics.Color
getPointColor(ISample sample, Trace trace)
Get the marker color for the given sample-
Methods inherited from class org.eclipse.nebula.visualization.xygraph.styleprovider.BasePointStyleProvider
getPointSize, getPointStyle
-
-
-
-
Method Detail
-
getPointColor
public org.eclipse.swt.graphics.Color getPointColor(ISample sample, Trace trace)
Description copied from interface:IPointStyleProvider
Get the marker color for the given sample- Specified by:
getPointColor
in interfaceIPointStyleProvider
- Overrides:
getPointColor
in classBasePointStyleProvider
- Parameters:
sample
- sample to be styledtrace
- used to return the default properties- Returns:
- marker point color
-
-