public abstract class DataPointIndicatorRenderer extends PropertyManager
Modifier and Type | Field and Description |
---|---|
static int |
POINT_INDICATOR_COLOR_PROPERTY_KEY |
static int |
POINT_INDICATOR_STROKE_COLOR_PROPERTY_KEY |
static int |
POINT_INDICATOR_STROKE_WIDTH_PROPERTY_KEY |
Constructor and Description |
---|
DataPointIndicatorRenderer(ChartSeries owner) |
Modifier and Type | Method and Description |
---|---|
void |
addDataPointLocation(float x,
float y)
Adds a data point location which later will be used to render an indicator.
|
void |
addDataPointLocation(Point point)
Adds a data point location which later will be used to render an indicator.
|
void |
applyPalette(ChartPalette palette)
Applies a given palette to the current indicator renderer instance.
|
void |
clearDataPointLocations()
Clears all the current data point locations.
|
void |
drawDataPointIndicators(Canvas canvas)
Triggers the render process for drawing all the data point indicators.
|
int |
getPointIndicatorColor()
Gets the point indicator color.
|
int |
getPointIndicatorStrokeColor()
Gets the color of the indicator stroke.
|
float |
getPointIndicatorStrokeWidth()
Gets the width of the indicator stroke.
|
void |
invalidatePalette()
Used to force apply the current palette.
|
void |
setPointIndicatorColor(int color)
Sets the point indicator color.
|
void |
setPointIndicatorStrokeColor(int color)
Sets the current point indicator stroke color.
|
void |
setPointIndicatorStrokeWidth(float width)
Sets the width of the indicator stroke.
|
getValue, resetPropertyValue, setValue, setValue
public static final int POINT_INDICATOR_STROKE_COLOR_PROPERTY_KEY
public static final int POINT_INDICATOR_COLOR_PROPERTY_KEY
public static final int POINT_INDICATOR_STROKE_WIDTH_PROPERTY_KEY
public DataPointIndicatorRenderer(ChartSeries owner)
public int getPointIndicatorStrokeColor()
public void setPointIndicatorStrokeColor(int color)
color
- the new color.public int getPointIndicatorColor()
public void setPointIndicatorColor(int color)
color
- the new color.public float getPointIndicatorStrokeWidth()
public void setPointIndicatorStrokeWidth(float width)
width
- the new indicator stroke width.public void applyPalette(ChartPalette palette)
palette
- the palette to be applied.public void invalidatePalette()
public void addDataPointLocation(float x, float y)
x
- the x coordinate of the data point location.y
- the y coordinate of the data point location.public void addDataPointLocation(Point point)
point
- point holding the coordinates for both x and y indicating the data point location.public void drawDataPointIndicators(Canvas canvas)
canvas
- the canvas to be used in rendering the data point indicators.public void clearDataPointLocations()