Summ:  Constr. Methods    Details:  Constr. Methods      Class:  Prev Next
com.artfulbits.aiCharts.Types
Class ChartHiLoType

java.lang.Object com.artfulbits.aiCharts.Base.ChartType com.artfulbits.aiCharts.Types.ChartHiLoType

Declaration: public class ChartHiLoType extends com.artfulbits.aiCharts.Base.ChartType

 

Represents HiLo chart type. A HiLo chart combines two independent values to supply high and low data for each point in a series. HiLo charts are used primarily in financial applications to show the high and low price for a given stock. The elements of the Y values array in each series' point of a HiLo chart represent the "high" value, and the "low" value.
 ChartSeries series = new ChartSeries("Series 1", ChartTypes.HiLo);
 // Filling series with 10 data points.
 for(int i = 0; i < 10; i++)
 {
 	//Supplying Hi and Low values.
 	series.getPoints().addXY(i, Math.cos(i) - 1, Math.cos(i) + 1);
 }
 
HiLo type uses USAGE_LOW, USAGE_HIGH types to determine index of corresponding Y values among chart point's Y values.

 

Since: 1.0

 

 

Constructors Summary
ChartHiLoType()
    

 

 

Methods Summary
void draw(ChartRenderArgs args)
    
Draws this chart type on surface specified along.
DoubleRange getYRange(ChartSeries series)
    
Gets range that this chart type will consume having specified series.
boolean isSideBySide()
    
Indicated whether this chart type is placed side by side.

 

Methods inherited from class: com.artfulbits.aiCharts.Base.ChartType
colorPerPoint, computeXRange, computeYRange, drawIcon, drawMarkers, getRequiredCoordinateSystem, getXRange, isCompatible, isCompatible, isOriginDependent, isRotated, isStacked, isStacked100

 

Methods inherited from class: java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

 

 

 

ChartHiLoType

 

public ChartHiLoType( )

 

 

 

 

isSideBySide

 

public boolean isSideBySide( )

 

[ description from ChartType.isSideBySide() ]
 
Indicated whether this chart type is placed side by side. Typical side-by-side chart type is ChartColumnType.

 

Returns:
true if chart type is side by side, otherwise false.

 

Overrides: ChartType.isSideBySide()

 

 

 

draw

 

public void draw( ChartRenderArgs args)

 

[ description from ChartType.draw(ChartRenderArgs) ]
 
Draws this chart type on surface specified along.

 

Parameters:
args-
instance of ChartRenderArgs that provides facilities to draw this type.

 

Implements: ChartType.draw(ChartRenderArgs)

 

 

 

getYRange

 

public DoubleRange getYRange( ChartSeries series)

 

[ description from ChartType.getYRange(ChartSeries) ]
 
Gets range that this chart type will consume having specified series.

 

Parameters:
series-
instance of ChartSeries class.
Returns:
instance of

 

Overrides: ChartType.getYRange(ChartSeries)

 

 

© 2005 - 2010 ArtfulBits. All rights reserved.