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
if SampleObject is true -> color is red
-
Constructor Summary
Constructors Constructor Description BooleanStyleProvider() -
Method Summary
Modifier and Type Method Description org.eclipse.swt.graphics.ColorgetPointColor(ISample sample, Trace trace)Get the marker color for the given sampleMethods inherited from class org.eclipse.nebula.visualization.xygraph.styleprovider.BasePointStyleProvider
getPointSize, getPointStyle
-
Constructor Details
-
BooleanStyleProvider
public BooleanStyleProvider()
-
-
Method Details
-
getPointColor
Description copied from interface:IPointStyleProviderGet the marker color for the given sample- Specified by:
getPointColorin interfaceIPointStyleProvider- Overrides:
getPointColorin classBasePointStyleProvider- Parameters:
sample- sample to be styledtrace- used to return the default properties- Returns:
- marker point color
-