public class Candle extends OHLC
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
Series.MarkTextResolver| Modifier and Type | Field and Description |
|---|---|
protected ChartPen |
linePen |
protected boolean |
treatNans |
protected TreatNullsStyle |
treatnulls |
vHighValues, vLowValues, vOpenValuesbAreaBrush, bClickableLine, bDark3D, drawArea, drawLine, pAreaLinesiStacked, pointAUTODEPTH, 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, yMandatorychart, InternalUse| Constructor and Description |
|---|
Candle() |
Candle(IBaseChart c) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(double[] xValues,
double[] yValues,
boolean append) |
int |
add(double x,
double y)
Adds a new point with specified x and y values.
|
void |
assign(Series source)
Copies all properties from one Series component to another.
Only the common properties shared by both source and destination Series are copied. |
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.
It is based on pixels for Screen charts. |
java.lang.String |
getDescription()
Gets descriptive text.
|
Color |
getDownCloseColor()
Candle color fill when Close value is greater than Open value.
By default, UpCloseColor is WHITE and DownCloseColor is RED. |
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.
As some Series have more than one Y Values List, this Minimum Value is the "Minimum of Minimums" of all Series Y Values lists. |
ChartPen |
getPen() |
boolean |
getShowClose()
Determines whether Close prices will be displayed.
It only has effect when Candle series.CandleStyle is set to csCandleBar. |
boolean |
getShowOpen()
Determines whether Open prices will be displayed.
It only has effect when Candle series.CandleStyle is set to csCandleBar. |
CandleStyle |
getStyle()
Determines how the Candle points will be drawn.
When it is CandleStick, a vertical rectangle represents each candle point. When it is CandleBar, a vertical line is drawn, among Open and Close horizontal tick marks. You can control both the candle colors and width. |
boolean |
getTreatNaNAsNull() |
TreatNullsStyle |
getTreatNulls()
Defines how null points are treated.
|
Color |
getUpCloseColor()
Candle color fill when Open value is greater than Close value.
By default, UpCloseColor is WHITE and DownCloseColor is RED. |
protected boolean |
IgnoreNull() |
void |
prepareForGallery(boolean isEnabled) |
void |
setCandleWidth(int value)
Sets the horizontal Candle Size in pixels.
Default value: 6 |
void |
setDownCloseColor(Color value)
Candle color fill when Close value is greater than Open value.
Default value: red |
void |
setShowClose(boolean value)
Determines whether Close prices will be displayed.
Default value: true |
void |
setShowOpen(boolean value)
Determines whether Open prices will be displayed.
Default value: true |
void |
setStyle(CandleStyle value)
Determines how the Candle points will be drawn.
Default value: CandleStick |
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.
Default value: white |
add, add, add, add, addSampleValues, calcMinMaxValue, getCloseValues, getDateValues, getHighValues, getLowValues, getOHLCPoint, getOpenValues, isValidSourceOf, numSampleValues, setCloseValues, setDateValues, setHighValues, setLowValues, setOpenValuescalcHorizMargins, 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, SmoothSeriesaddSeriesMouseListener, calcXPos, calcYPos, calcZOrder, clickedPointer, drawMark, drawPointer, getMaxXValue, getMinXValue, getOriginPos, getPointer, getStacked, onGetPointerStyle, removePointerStyleResolver, removeSeriesMouseListener, sameClassOrigin, setPointerStyleResolver, setStackedadd, 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, clone, cloneSeries, convertArray, countLegendItems, createNewSeries, createNewSeries, createNewSeries, 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, 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, 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, setTitle, setValueFormat, setValueList, setVerticalAxis, setVisible, setXValues, setYValues, setZOrder, setZPositions, sortByLabels, sortByLabels, sortDrawSeries, swapValueIndex, titleOrName, toString, valueListOfAxis, valuesListAdd, xScreenToValue, yScreenToValuegetChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringPropertyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChart, invalidateprotected ChartPen linePen
protected TreatNullsStyle treatnulls
protected boolean treatNans
public Candle(IBaseChart c)
public Candle()
public void assign(Series source)
Seriespublic 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 Seriespublic void setSubGallery(int index)
SeriessetSubGallery in interface ISeriessetSubGallery in class Seriesindex - 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)
public ChartPen getPen()
public double getMinYValue()
OHLCgetMinYValue in class OHLCpublic double getMaxYValue()
OHLCgetMaxYValue in class OHLCpublic void prepareForGallery(boolean isEnabled)
prepareForGallery in class Seriespublic java.lang.String getDescription()
getDescription in class Seriespublic int clicked(int x,
int y)
Custompublic 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)
public int add(double x,
double y)
Seriesprotected boolean IgnoreNull()
protected boolean doNotPaintNull()
public boolean getTreatNaNAsNull()
public void setTreatNaNAsNull(boolean value)