public class OHLC extends Custom
Title: OHLC class
Description: OHLC is an base Series class that maintains lists for Open, Close, High and Low values.
Copyright (c) 2005-2018 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Series.MarkTextResolver
Modifier and Type | Field and Description |
---|---|
protected ValueList |
vHighValues |
protected ValueList |
vLowValues |
protected ValueList |
vOpenValues |
bAreaBrush, bClickableLine, bDark3D, drawArea, drawLine, pAreaLines
iStacked, point
linePen, treatNans, treatnulls
AUTODEPTH, AUTOZORDER, bActive, bBrush, bColorEach, calcVisiblePoints, colorMember, customMarkText, drawBetweenPoints, endZ, firstVisible, hasZValues, iColors, iNumSampleValues, iZOrder, labelMember, lastVisible, listenerList, mandatory, manualData, marks, middleZ, notMandatory, oldDataSource, percentDecimal, percentFormat, sLabels, startZ, useAxis, useSeriesColor, valueFormat, vxValues, vyValues, yMandatory
chart, InternalUse
Constructor and Description |
---|
OHLC() |
OHLC(IBaseChart c) |
Modifier and Type | Method and Description |
---|---|
int |
add(DateTime aDate,
double open,
double high,
double low,
double close)
Adds new point with specified DateTime x and double open, high, low
and close.
|
int |
add(double open,
double high,
double low,
double close)
Adds new point with specified double open, high, low and close.
|
int |
add(double index,
double open,
double high,
double low,
double close)
Adds new point with specified double index and double open, high, low
and close.
|
int |
add(int index,
double open,
double high,
double low,
double close)
Adds new point with specified integer index and double open, high,
low and close.
|
protected void |
addSampleValues(int numValues) |
void |
assign(Series source)
Copies all properties from one Series component to another.
|
protected double |
calcMinMaxValue(boolean isMin) |
ValueList |
getCloseValues()
All the Stock market Close values.
|
ValueList |
getDateValues()
All the Stock market Date values.
|
ValueList |
getHighValues()
All the Stock market High values.
|
ValueList |
getLowValues()
All the Stock market Low values.
|
double |
getMaxYValue()
The Maximum Value of the Series Y Values List.
|
double |
getMinYValue()
The Minimum Value of the Series Y Values List.
|
SeriesOHLCPoint |
getOHLCPoint(int index)
Point characteristics
|
ValueList |
getOpenValues()
All the Stock market Open values.
|
boolean |
isValidSourceOf(ISeries value)
Validates Series datasource.
|
protected int |
numSampleValues() |
void |
setCloseValues(ValueList value)
Sets all Stock market Close values.
|
void |
setDateValues(ValueList value)
Sets all Stock market Date values.
|
void |
setHighValues(ValueList value)
Sets all Stock market High values.
|
void |
setLowValues(ValueList value)
Sets all Stock market Low values.
|
void |
setOpenValues(ValueList value)
Sets all Stock market Open values.
|
calcHorizMargins, calcVerticalMargins, clicked, draw, drawHiddenValue, drawLegendShape, drawValue, getAreaBrushColor, getBrush, getClickableLine, getColorEachLine, getDark3D, getInvertedStairs, getLineHeight, getOpacity, getOutLine, getSmoothed, getStairs, getTransparency, readResolve, setChart, setClickableLine, setColor, setColorEachLine, setDark3D, setInvertedStairs, setLineHeight, setOpacity, setSmoothed, setStairs, setTransparency, SmoothSeries
addSeriesMouseListener, calcXPos, calcYPos, calcZOrder, clickedPointer, drawMark, drawPointer, getMaxXValue, getMinXValue, getOriginPos, getPointer, getStacked, onGetPointerStyle, removePointerStyleResolver, removeSeriesMouseListener, sameClassOrigin, setPointerStyleResolver, setStacked
add, add, doNotPaintNull, getLinePen, getTreatNaNAsNull, getTreatNulls, IgnoreNull, setTreatNaNAsNull, setTreatNulls
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addChartValue, added, addedValue, addNull, addNullXY, addSeriesPaintListener, addValues, assignDispose, assignValues, associatedToAxis, beginUpdate, calcFirstLastVisibleIndex, calcPercentSt, calcPosValue, calculateMarkPosition, calcXPosValue, calcXSizeValue, calcYPosValue, calcYSizeValue, canAddRandomPoints, changeType, checkDataSource, checkMouse, checkOrder, checkOtherSeries, clear, clearLists, clicked, clone, cloneSeries, convertArray, countLegendItems, createNewSeries, createNewSeries, createNewSeries, createSubGallery, dataSourceArray, delete, delete, delete, dispose, doAfterDrawValues, doBeforeDrawChart, doBeforeDrawValues, doClick, doClickPointer, doDoubleClick, drawLegend, drawLegend, drawMarks, drawMarksSeries, drawSeries, drawSeriesForward, drawValuesForward, endUpdate, fillSampleValues, fillSampleValues, fireSeriesMouseEvent, fireSeriesPaint, firstDisplayed, galleryChanged3D, getActive, getAllowSinglePoint, getBitmapEditor, getColor, getColorEach, getColorMember, getColors, getCount, getCountLegendItems, getCursor, getCustomHorizAxis, getCustomVertAxis, getDataSource, getDefaultColor, getDefaultNullValue, getDepth, getDescription, getEndZ, getFields, getFirstVisible, getFunction, getHasZValues, getHorizAxis, getHorizontalAxis, getLabelMember, getLabels, getLastVisible, getLegendString, getMandatory, getMandatoryAxis, getMarks, getMarkText, getMarkValue, getMaxZValue, getMiddleZ, getMinZValue, getNotMandatory, getNumGallerySeries, getNumSampleValues, getOriginValue, getPercentFormat, getPoint, getSeriesColor, getShowInLegend, getStartZ, getTitle, getUseAxis, getValueColor, getValueFormat, getValueIndexSwapper, getValueList, getValueList, getValueMarkText, getValuesLists, getVertAxis, getVerticalAxis, getVisible, getXValues, getYMandatory, getYValueList, getYValues, getZOrder, hasClickEvents, hasColors, hasDataSource, hasLabels, hasListenersOf, hasNoMandatoryValues, isNull, isPointInChartRect, isValidSeriesSource, isValidSourceOf, lastDisplayed, lastVisibleMark, legendItemColor, legendToValueIndex, maxMarkWidth, moreSameZOrder, mouseEvent, newFromType, onDisposing, prepareForGallery, prepareLegendCanvas, randomBounds, recalcGetAxis, refreshSeries, removeMarkTextResolver, removeSeriesPaintListener, repaint, sameClass, setActive, setColorEach, setColorMember, setColors, setCursor, setCustomHorizAxis, setCustomHorizAxis, setCustomVertAxis, setCustomVertAxis, setDataSource, setDefaultNullValue, setDepth, setEndZ, setFunction, setHorizontal, setHorizontalAxis, setLabelMember, setLabels, setMarks, setMarkTextResolver, setMiddleZ, setNull, setNull, setPercentFormat, setSeriesColor, setShowInLegend, setStartZ, setSubGallery, setTitle, setValueFormat, setValueList, setVerticalAxis, setVisible, setXValues, setYValues, setZOrder, setZPositions, sortByLabels, sortByLabels, sortDrawSeries, swapValueIndex, titleOrName, toString, valueListOfAxis, valuesListAdd, xScreenToValue, yScreenToValue
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChart, invalidate
protected ValueList vHighValues
protected ValueList vLowValues
protected ValueList vOpenValues
public OHLC(IBaseChart c)
public OHLC()
public void assign(Series source)
Series
public ValueList getDateValues()
public void setDateValues(ValueList value)
value
- ValueListpublic ValueList getCloseValues()
public void setCloseValues(ValueList value)
value
- ValueListpublic ValueList getOpenValues()
public void setOpenValues(ValueList value)
value
- ValueListpublic ValueList getHighValues()
public void setHighValues(ValueList value)
value
- ValueListpublic ValueList getLowValues()
public void setLowValues(ValueList value)
value
- ValueListpublic int add(int index, double open, double high, double low, double close)
index
- intopen
- doublehigh
- doublelow
- doubleclose
- doublepublic int add(double index, double open, double high, double low, double close)
index
- doubleopen
- doublehigh
- doublelow
- doubleclose
- doublepublic int add(double open, double high, double low, double close)
open
- doublehigh
- doublelow
- doubleclose
- doublepublic int add(DateTime aDate, double open, double high, double low, double close)
aDate
- DateTimeopen
- doublehigh
- doublelow
- doubleclose
- doublepublic boolean isValidSourceOf(ISeries value)
value
- ISeries the series to validate.public double getMaxYValue()
getMaxYValue
in class CustomPoint
public double getMinYValue()
getMinYValue
in class CustomPoint
protected double calcMinMaxValue(boolean isMin)
calcMinMaxValue
in class BaseLine
protected int numSampleValues()
numSampleValues
in class Series
protected void addSampleValues(int numValues)
addSampleValues
in class Series
public SeriesOHLCPoint getOHLCPoint(int index)
index
- int