|
||||||||||
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
com.steema.teechart.styles.Candle
public class Candle
Title: Candle class
Description: Candle Series.
Example:
candleSeries = new com.steema.teechart.styles.Candle(myChart.getChart()); candleSeries.fillSampleValues(30); candleSeries.getColors().setColor(11, Color.YELLOW); candleSeries.getColors().setColor(15, Color.LIME); candleSeries.getColors().setColor(16, Color.BLUE); candleSeries.repaint();
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
|
Fields inherited from class com.steema.teechart.styles.OHLC |
---|
vHighValues, vLowValues, 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 | |
---|---|
Candle()
|
|
Candle(IBaseChart c)
|
Method Summary | |
---|---|
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 |
clicked(int x,
int y)
Calculates if any point is at XY position. |
int |
clicked(Point p)
|
boolean |
clickedCandle(int valueIndex,
Point p)
|
void |
createSubGallery(Gallery addSubChart)
|
protected boolean |
doNotPaintNull()
|
void |
drawValue(int valueIndex)
Called internally. |
int |
getCandleWidth()
The horizontal Candle Size in pixels. |
java.lang.String |
getDescription()
Gets descriptive text. |
Color |
getDownCloseColor()
Candle color fill when Close value is greater than Open value. |
ChartPen |
getLinePen()
Determines pen to draw the line connecting all points. |
double |
getMaxYValue()
The Maximum Value of the Series Y Values List. |
double |
getMinYValue()
The Minimum Value of the Series Y Values List. |
ChartPen |
getPen()
|
boolean |
getShowClose()
Determines whether Close prices will be displayed. |
boolean |
getShowOpen()
Determines whether Open prices will be displayed. |
CandleStyle |
getStyle()
Determines how the Candle points will be drawn. |
boolean |
getTreatNaNAsNull()
|
TreatNullsStyle |
getTreatNulls()
Defines how null points are treated. |
Color |
getUpCloseColor()
Candle color fill when Open value is greater than Close value. |
protected boolean |
IgnoreNull()
|
void |
prepareForGallery(boolean isEnabled)
|
void |
setCandleWidth(int value)
Sets the horizontal Candle Size in pixels. |
void |
setDownCloseColor(Color value)
Candle color fill when Close value is greater than Open value. |
void |
setShowClose(boolean value)
Determines whether Close prices will be displayed. |
void |
setShowOpen(boolean value)
Determines whether Open prices will be displayed. |
void |
setStyle(CandleStyle value)
Determines how the Candle points will be drawn. |
void |
setSubGallery(int index)
Creates and prepares the index'th Series style to show at sub-gallery dialog. |
void |
setTreatNaNAsNull(boolean value)
|
void |
setTreatNulls(TreatNullsStyle value)
|
void |
setUpCloseColor(Color value)
Candle color fill when Open value is greater than Close value. |
Methods inherited from class com.steema.teechart.styles.OHLC |
---|
add, add, add, add, addSampleValues, calcMinMaxValue, getCloseValues, getDateValues, getHighValues, getLowValues, getOHLCPoint, getOpenValues, isValidSourceOf, numSampleValues, setCloseValues, setDateValues, setHighValues, setLowValues, setOpenValues |
Methods inherited from class com.steema.teechart.styles.Custom |
---|
assign, calcHorizMargins, calcVerticalMargins, draw, drawHiddenValue, drawLegendShape, 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 ChartPen linePen
protected TreatNullsStyle treatnulls
protected boolean treatNans
Constructor Detail |
---|
public Candle(IBaseChart c)
public Candle()
Method Detail |
---|
public CandleStyle getStyle()
public void setStyle(CandleStyle value)
Example:
candleSeries = new com.steema.teechart.styles.Candle(myChart.getChart()); candleSeries.fillSampleValues(30); candleSeries.setStyle(CandleStyles.OpenClose);
value
- CandleStylespublic void createSubGallery(Gallery addSubChart)
createSubGallery
in class Series
public void setSubGallery(int index)
Series
setSubGallery
in interface ISeries
setSubGallery
in class Series
index
- intpublic int getCandleWidth()
public void setCandleWidth(int value)
value
- intpublic Color getUpCloseColor()
public void setUpCloseColor(Color value)
value
- Colorpublic Color getDownCloseColor()
public void setDownCloseColor(Color value)
value
- Colorpublic boolean getShowOpen()
public void setShowOpen(boolean value)
value
- booleanpublic boolean getShowClose()
public void setShowClose(boolean value)
value
- booleanpublic void drawValue(int valueIndex)
drawValue
in interface ISeries
drawValue
in class Custom
valueIndex
- intpublic ChartPen getPen()
public double getMinYValue()
OHLC
getMinYValue
in class OHLC
public double getMaxYValue()
OHLC
getMaxYValue
in class OHLC
public void prepareForGallery(boolean isEnabled)
prepareForGallery
in class Series
public java.lang.String getDescription()
getDescription
in class Series
public int clicked(int x, int y)
Custom
clicked
in interface ISeries
clicked
in class Custom
x
- inty
- int
public int clicked(Point p)
clicked
in class Series
public boolean clickedCandle(int valueIndex, Point p)
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 |