Class MultiColorsHistogramRender
A HistogramRender with a color per row: one histogram per color, painted one after another.
public class MultiColorsHistogramRender
- Inheritance
-
objectMultiColorsHistogramRender
- Extension Methods
Constructors
MultiColorsHistogramRender(Color, bool)
Creates the histograms with one for baseColor ready; the bars grow from the zero line to
the right (leftToRight true) or to the left. A histogram for any other color is created
when its first row is added.
public MultiColorsHistogramRender(Color baseColor, bool leftToRight)
Parameters
baseColorColorleftToRightbool
Properties
DirectMode
DirectMode of every histogram, the ones created later included.
Added in ATAS 8.0.15.
public bool DirectMode { get; set; }
Property Value
- bool
Methods
AddPrice(int, int, int, int, Color)
Adds the bar of one price row in color; see AddPrice(int, int, int, int) for the coordinates.
Rows merge only with the adjacent rows of the same color.
public void AddPrice(int zeroX, int x, int bottomY, int upperY, Color color)
Parameters
zeroXintxintbottomYintupperYintcolorColor
Clear()
Drops the rows of every color; the histograms are kept for the next frame.
Added in ATAS 8.0.15.
public void Clear()
Draw(RenderContext, bool)
Paints every histogram in its color, the zero line included (Draw(RenderContext, bool, bool) with drawZeroValues true).
public void Draw(RenderContext context, bool fill)
Parameters
contextRenderContextfillbool
Draw(RenderContext, bool, bool)
Paints every histogram in its color, in the order the colors were first added; the parameters are those of Draw(RenderContext, Color, bool, bool).
Added in ATAS 8.0.15.
public void Draw(RenderContext context, bool fill, bool drawZeroValues)
Parameters
contextRenderContextfillbooldrawZeroValuesbool