public abstract class DrawablePointMarker extends BasePointMarker
IRenderContext2D
API at each data point location.
Derived classes should implement internalDraw(IRenderContext2D, float, float, IPen2D, IBrush2D)
which draws PointMarker at specified point.BasePointMarker
fillStyleProperty, strokeStyleProperty
Constructor and Description |
---|
DrawablePointMarker() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
internalDraw(com.scichart.drawing.common.IRenderContext2D renderContext,
float x,
float y,
com.scichart.drawing.common.IPen2D strokePen,
com.scichart.drawing.common.IBrush2D fillBrush)
Renders single PointMarker at specified coordinates on screen
|
void |
onDraw(com.scichart.drawing.common.IRenderContext2D renderContext,
com.scichart.drawing.common.IAssetManager2D assetManager,
com.scichart.drawing.common.PenStyle strokeStyle,
com.scichart.drawing.common.BrushStyle fillStyle,
float opacity,
float[] points,
int startIndex,
int count)
Renders the PointMarker at specified points with fill and stroke.
|
attachTo, detach, getFillStyle, getHeight, getRenderableSeries, getStrokeStyle, getWidth, invalidateElement, isAttached, onRenderSurfaceChanged, onSizeChanged, setFillStyle, setHeight, setSize, setStrokeStyle, setWidth
public void onDraw(com.scichart.drawing.common.IRenderContext2D renderContext, com.scichart.drawing.common.IAssetManager2D assetManager, com.scichart.drawing.common.PenStyle strokeStyle, com.scichart.drawing.common.BrushStyle fillStyle, float opacity, float[] points, int startIndex, int count)
renderContext
- The IRenderContext2D
instance to draw toassetManager
- The IAssetManager2D
instance which allows to create assets for drawing on render contextstrokeStyle
- Stroke PenStyle
instancefillStyle
- Fill BrushStyle
instanceopacity
- The opacity of point markerpoints
- Array of points to draw [x0 y0 x1 y1 x2 y2 ...]startIndex
- Start index of values in the array which need to be drawncount
- The number of values in the array to process.protected abstract void internalDraw(com.scichart.drawing.common.IRenderContext2D renderContext, float x, float y, com.scichart.drawing.common.IPen2D strokePen, com.scichart.drawing.common.IBrush2D fillBrush)
renderContext
- The IRenderContext2D
instance to draw to.x
- The x-coordinate of the point to draw point marker at.y
- The y-coordinate of the point to draw point marker at.strokePen
- Stroke IPen2D
instance.fillBrush
- Fill IBrush2D
instance.