public interface IDrawingIndicator
| Modifier and Type | Method and Description |
|---|---|
Point |
drawOutput(Graphics g,
int outputIdx,
Object values,
Color color,
Stroke stroke,
IIndicatorDrawingSupport indicatorDrawingSupport,
List<Shape> shapes,
Map<Color,List<Point>> handles)
This method will be called once for every output marked as drawnByIndicator every time the chart surface needs to be redrawn
|
Point drawOutput(Graphics g, int outputIdx, Object values, Color color, Stroke stroke, IIndicatorDrawingSupport indicatorDrawingSupport, List<Shape> shapes, Map<Color,List<Point>> handles)
g - graphical contextoutputIdx - index of the output parametervalues - array of values (int[], double[] or Object[] depending of the type of the output). Array may be empty or null if data is not yet available.color - color selected when the indicator was addedstroke - stroke selected when the indicator was addedindicatorDrawingSupport - provides information about candle positions, indexes, etcshapes - graphical shapes can be added to this list. This makes it possible to show correct popup when user right-clicks one of the shapes in this list on charthandles - coordinate points with their corresponding colors can be added to this listnull is returned.Copyright © 2016. All rights reserved.