JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart
Class JCHLOCChartFormat

java.lang.Object
  |
  +--com.klg.jclass.chart.JCHLOCChartFormat
All Implemented Interfaces:
JCChartTypeFormat, Serializable

public class JCHLOCChartFormat
extends Object
implements JCChartTypeFormat, Serializable

Manages chart properties specific to Hi-Lo-Open-Close charts.

Hi-Lo-Open-Close charts take the Y values of 4 data series to construct each "logical" bar. The number of data points defines the number of bars in each row.

See Also:
Serialized Form

Field Summary
protected  boolean isOpenCloseFullWidth
           
protected  boolean isShowingClose
           
protected  boolean isShowingOpen
           
protected  com.klg.jclass.chart.ChartDataView parent
           
 
Constructor Summary
JCHLOCChartFormat()
           
JCHLOCChartFormat(com.klg.jclass.chart.ChartDataView p)
           
 
Method Summary
 com.klg.jclass.chart.JCChartStyle getHiloStyle(int index)
          Gets the JCChartStyle that controls the style of the Hi-Lo-Open-Close chart.
 com.klg.jclass.chart.ChartDataView getParent()
           
 int getTickSize(int index)
          Gets the tick size for the open and close ticks.
 boolean isOpenCloseFullWidth()
          Gets the OpenCloseFullWidth property of the Hi-Lo-Open-Close chart.
 boolean isShowingClose()
          Gets the ShowingClose property of the Hi-Lo-Open-Close chart.
 boolean isShowingOpen()
          Gets the ShowingOpen property of the Hi-Lo-Open-Close chart.
 void setHiloStyle(int index, com.klg.jclass.chart.JCChartStyle value)
          Sets the style of the Hi-Lo-Open-Close chart.
 void setOpenCloseFullWidth(boolean b)
          Sets the OpenCloseFullWidth property of the Hi-Lo-Open-Close chart.
 void setParent(com.klg.jclass.chart.ChartDataView cdv)
           
 void setShowingClose(boolean b)
          Sets the ShowingClose property of the Hi-Lo-Open-Close chart.
 void setShowingOpen(boolean b)
          Sets the ShowingOpen property of the Hi-Lo-Open-Close chart.
 void setTickSize(int index, int value)
          Sets the tick size for the open and close ticks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isShowingOpen

protected boolean isShowingOpen

isShowingClose

protected boolean isShowingClose

isOpenCloseFullWidth

protected boolean isOpenCloseFullWidth

parent

protected com.klg.jclass.chart.ChartDataView parent
Constructor Detail

JCHLOCChartFormat

public JCHLOCChartFormat()

JCHLOCChartFormat

public JCHLOCChartFormat(com.klg.jclass.chart.ChartDataView p)
Method Detail

setParent

public void setParent(com.klg.jclass.chart.ChartDataView cdv)
Specified by:
setParent in interface JCChartTypeFormat

getParent

public com.klg.jclass.chart.ChartDataView getParent()

isShowingOpen

public boolean isShowingOpen()
Gets the ShowingOpen property of the Hi-Lo-Open-Close chart. This property determines whether the open tick indication is shown or not.

Returns:
true if the open tick is shown; false otherwise

setShowingOpen

public void setShowingOpen(boolean b)
Sets the ShowingOpen property of the Hi-Lo-Open-Close chart. This property determines whether the open tick indication is shown or not.

Parameters:
b - if true, the open tick is shown

isShowingClose

public boolean isShowingClose()
Gets the ShowingClose property of the Hi-Lo-Open-Close chart. This property determines whether the close tick indication is shown or not.

Returns:
true if close tick shown; false otherwise

setShowingClose

public void setShowingClose(boolean b)
Sets the ShowingClose property of the Hi-Lo-Open-Close chart. This property determines whether the close tick indication is shown or not.

Parameters:
b - if true, the close tick is shown

isOpenCloseFullWidth

public boolean isOpenCloseFullWidth()
Gets the OpenCloseFullWidth property of the Hi-Lo-Open-Close chart. This property determines whether the open and close tick indications are shown full width from left of the Hi-Lo line to the right of the Hi-Lo line.

Returns:
true if full open and close tick indications are shown full width; flase otherwise

setOpenCloseFullWidth

public void setOpenCloseFullWidth(boolean b)
Sets the OpenCloseFullWidth property of the Hi-Lo-Open-Close chart. This property determines whether the open and close tick indications are shown full width from left of the Hi-Lo line to the right of the Hi-Lo line.

Parameters:
b - if true, full width is shown

getHiloStyle

public com.klg.jclass.chart.JCChartStyle getHiloStyle(int index)
Gets the JCChartStyle that controls the style of the Hi-Lo-Open-Close chart.

Parameters:
index - the logical index of the Hi-Lo-Open-Close series
Returns:
the JCChartStyle object

setHiloStyle

public void setHiloStyle(int index,
                         com.klg.jclass.chart.JCChartStyle value)
Sets the style of the Hi-Lo-Open-Close chart.

Parameters:
index - the logical index of the Hi-Lo-Open-Close series
value - the JCChartStyle object containing the desired style

getTickSize

public int getTickSize(int index)
Gets the tick size for the open and close ticks.

Parameters:
index - the logical index of the Hi-Lo-Open-Close series
Returns:
the tick size

setTickSize

public void setTickSize(int index,
                        int value)
Sets the tick size for the open and close ticks.

Parameters:
index - the logical index of the Hi-Lo-Open-Close series
value - the tick size

Copyright © 2004 Quest Software Inc..
All rights reserved.