|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.steema.teechart.TeeBase
com.steema.teechart.styles.Series
com.steema.teechart.styles.CustomPoint
com.steema.teechart.styles.Custom
com.steema.teechart.styles.OHLC
public class OHLC
Title: OHLC class
Description: OHLC is an base Series class that maintains lists for Open, Close, High and Low values.
Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.steema.teechart.styles.Series |
---|
Series.MarkTextResolver |
Field Summary | |
---|---|
protected ChartPen |
linePen
|
protected boolean |
treatNans
|
protected TreatNullsStyle |
treatnulls
|
protected ValueList |
vHighValues
|
protected ValueList |
vLowValues
|
protected ValueList |
vOpenValues
|
Fields inherited from class com.steema.teechart.styles.Custom |
---|
bAreaBrush, bClickableLine, bDark3D, drawArea, drawLine, pAreaLines |
Fields inherited from class com.steema.teechart.styles.CustomPoint |
---|
iStacked, point |
Fields inherited from class com.steema.teechart.styles.Series |
---|
AUTODEPTH, AUTOZORDER, bActive, bBrush, bColorEach, calcVisiblePoints, colorMember, customMarkText, drawBetweenPoints, endZ, firstVisible, hasZValues, iColors, iNumSampleValues, iZOrder, labelMember, lastVisible, listenerList, mandatory, manualData, marks, middleZ, notMandatory, percentDecimal, percentFormat, sLabels, startZ, useAxis, useSeriesColor, valueFormat, vxValues, vyValues, yMandatory |
Fields inherited from class com.steema.teechart.TeeBase |
---|
chart, InternalUse |
Constructor Summary | |
---|---|
OHLC()
|
|
OHLC(IBaseChart c)
|
Method Summary | |
---|---|
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. |
void |
add(double[] xValues,
double[] yValues,
boolean append)
|
int |
add(double x,
double y)
Adds a new point with specified x and y values. |
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)
|
protected double |
calcMinMaxValue(boolean isMin)
|
protected boolean |
doNotPaintNull()
|
ValueList |
getCloseValues()
All the Stock market Close values. |
ValueList |
getDateValues()
All the Stock market Date values. |
ValueList |
getHighValues()
All the Stock market High values. |
ChartPen |
getLinePen()
Determines pen to draw the line connecting all points. |
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 |
getTreatNaNAsNull()
|
TreatNullsStyle |
getTreatNulls()
Defines how null points are treated. |
protected boolean |
IgnoreNull()
|
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. |
void |
setTreatNaNAsNull(boolean value)
|
void |
setTreatNulls(TreatNullsStyle value)
|
Methods inherited from class com.steema.teechart.styles.Custom |
---|
assign, 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 |
Methods inherited from class com.steema.teechart.styles.CustomPoint |
---|
addSeriesMouseListener, calcXPos, calcYPos, calcZOrder, clickedPointer, drawMark, drawPointer, getMaxXValue, getMinXValue, getOriginPos, getPointer, getStacked, onGetPointerStyle, removePointerStyleResolver, removeSeriesMouseListener, sameClassOrigin, setPointerStyleResolver, setStacked |
Methods inherited from class com.steema.teechart.TeeBase |
---|
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.steema.teechart.styles.ISeries |
---|
getChart, invalidate |
Field Detail |
---|
protected ValueList vHighValues
protected ValueList vLowValues
protected ValueList vOpenValues
protected ChartPen linePen
protected TreatNullsStyle treatnulls
protected boolean treatNans
Constructor Detail |
---|
public OHLC(IBaseChart c)
public OHLC()
Method Detail |
---|
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
- double
public int add(double index, double open, double high, double low, double close)
index
- doubleopen
- doublehigh
- doublelow
- doubleclose
- double
public int add(double open, double high, double low, double close)
open
- doublehigh
- doublelow
- doubleclose
- double
public int add(DateTime aDate, double open, double high, double low, double close)
aDate
- DateTimeopen
- doublehigh
- doublelow
- doubleclose
- double
public 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)
protected int numSampleValues()
numSampleValues
in class Series
protected void addSampleValues(int numValues)
addSampleValues
in class Series
public SeriesOHLCPoint getOHLCPoint(int index)
index
- int
public ChartPen getLinePen()
public TreatNullsStyle getTreatNulls()
public void setTreatNulls(TreatNullsStyle value)
public void add(double[] xValues, double[] yValues, boolean append)
add
in class Series
public int add(double x, double y)
Series
add
in interface ISeries
add
in class Series
x
- doubley
- double
protected boolean IgnoreNull()
protected boolean doNotPaintNull()
public boolean getTreatNaNAsNull()
public void setTreatNaNAsNull(boolean value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |