All Packages Class Hierarchy This Package Previous Next Index
Class jclass.chart.JCCandleChartFormat
java.lang.Object
|
+----jclass.chart.JCCandleChartFormat
- public class JCCandleChartFormat
- extends Object
- implements JCSerializable, HTMLHandler
Manages properties and convenience methods specific to candle charts.
Candle charts take the Y values of 4 data series to
construct each "logical" candle series. The number of data points
defines the number of candles in each row.
Note: The methods in this class use the logical candle series
index instead of the actual series index, to make programming candle styles
more convenient.
Properties
Name |
Description |
IsComplex
|
The IsComplex property determines whether candle charts use
the simple or the complex display style. When false, Chart only uses
the style referenced by getHiLoStyle() for the candle appearance.
When set to true, all four styles are used.
Default value is false.
|
-
JCCandleChartFormat()
-
-
JCCandleChartFormat(ChartDataView)
-
-
getCandleOutlineStyle(int)
- Gets the JCChartStyle that controls the candle outline style of the
complex candle chart.
-
getFallingCandleStyle(int)
- Gets the JCChartStyle that controls the falling candle style of the
complex candle chart.
-
getHiloStyle(int)
- Gets the JCChartStyle that controls the candle style of the simple candle
or the HiLo line of the complex candle chart.
-
getIsComplex()
- Gets the IsComplex property of the candle chart.
-
getRisingCandleStyle(int)
- Gets the JCChartStyle that controls the rising candle style of the
complex candle chart.
-
loadParams(String, JCChart)
- Load JCChart parameters from HTML file
-
saveParams(String, JCChart)
- Save JCChart parameters as HTML tags
-
setCandleOutlineStyle(int, JCChartStyle)
- Sets the candle style of the candle outline style of the
complex candle chart.
-
setFallingCandleStyle(int, JCChartStyle)
- Sets the candle style of the falling candle style of the
complex candle chart.
-
setHiloStyle(int, JCChartStyle)
- Sets the candle style of the simple candle or the HiLo line of the
complex candle chart.
-
setIsComplex(boolean)
- Sets the IsComplex property of the candle chart.
-
setRisingCandleStyle(int, JCChartStyle)
- Sets the candle style of the rising candle style of the
complex candle chart.
JCCandleChartFormat
public JCCandleChartFormat()
JCCandleChartFormat
public JCCandleChartFormat(ChartDataView p)
getIsComplex
public boolean getIsComplex()
- Gets the IsComplex property of the candle chart. This
property determines whether the candle is a simple or
complex candle.
- Returns:
- true if complex
setIsComplex
public void setIsComplex(boolean b)
- Sets the IsComplex property of the candle chart. This
property determines whether the candle is a simple or
complex candle.
- Parameters:
- b - if true, chart is complex candle else chart is simple candle.
getHiloStyle
public JCChartStyle getHiloStyle(int index)
- Gets the JCChartStyle that controls the candle style of the simple candle
or the HiLo line of the complex candle chart.
- Parameters:
- index - logical candle series (not the actual data series)
- Returns:
- JCChartStyle object
setHiloStyle
public void setHiloStyle(int index,
JCChartStyle value)
- Sets the candle style of the simple candle or the HiLo line of the
complex candle chart.
- Parameters:
- index - logical candle series (not the actual data series)
- value - JCChartStyle object containing the desired style
getRisingCandleStyle
public JCChartStyle getRisingCandleStyle(int index)
- Gets the JCChartStyle that controls the rising candle style of the
complex candle chart.
- Parameters:
- index - logical candle series (not the actual data series)
- Returns:
- JCChartStyle object
setRisingCandleStyle
public void setRisingCandleStyle(int index,
JCChartStyle value)
- Sets the candle style of the rising candle style of the
complex candle chart.
- Parameters:
- index - logical candle series (not the actual data series)
- value - JCChartStyle object containing the desired style
getFallingCandleStyle
public JCChartStyle getFallingCandleStyle(int index)
- Gets the JCChartStyle that controls the falling candle style of the
complex candle chart.
- Parameters:
- index - logical candle series (not the actual data series)
- Returns:
- JCChartStyle object
setFallingCandleStyle
public void setFallingCandleStyle(int index,
JCChartStyle value)
- Sets the candle style of the falling candle style of the
complex candle chart.
- Parameters:
- index - logical candle series (not the actual data series)
- value - JCChartStyle object containing the desired style
getCandleOutlineStyle
public JCChartStyle getCandleOutlineStyle(int index)
- Gets the JCChartStyle that controls the candle outline style of the
complex candle chart.
- Parameters:
- index - logical candle series (not the actual data series)
- Returns:
- JCChartStyle object
setCandleOutlineStyle
public void setCandleOutlineStyle(int index,
JCChartStyle value)
- Sets the candle style of the candle outline style of the
complex candle chart.
- Parameters:
- index - logical candle series (not the actual data series)
- value - JCChartStyle object containing the desired style
saveParams
public void saveParams(String name,
JCChart comp)
- Save JCChart parameters as HTML tags
- Parameters:
- name - the PARAM NAME
- chart - the JCChart component
loadParams
public void loadParams(String name,
JCChart comp)
- Load JCChart parameters from HTML file
- Parameters:
- name - the PARAM NAME
- chart - the JCChart component
All Packages Class Hierarchy This Package Previous Next Index