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

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

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

 

Represents Step Line chart type. A step line chart is similar to a line chart but does not use the shortest distance to connect two data points. Instead, the step line chart uses vertical and horizontal lines to connect the data points in a series forming a step-like progression.
 // Creating series.
 ChartSeries series = new ChartSeries("Series 1", ChartTypes.StepLine);
 // Filling series with 10 data points.
 for(int i = 0; i < 10; i++)
 {
 	series.getPoints().addXY(i, Math.cos(i));
 }
 
Similar output should be expected:

Step line type uses YValue type to determine index of corresponding Y value among chart point's Y values.

 

Since: 1.0

 

 

Fields Summary
static ChartCustomAttribute<java.lang.Double> BREAK_DELTA
    
Identifies delta break mode used to draw fast line chart.
static ChartCustomAttribute<ChartLineType.BreakMode> BREAK_MODE
    
Identifies value that determines whether auto break mode should be enabled for line chart type.
static ChartCustomAttribute<java.lang.Boolean> BREAK_POINT
    
Identifies value that determines point value used for breaks.
static ChartCustomAttribute<java.lang.Integer> HIT_RADIUS
    
Represents value used to measure line's width when user hits it with a tap.
static ChartCustomAttribute<java.lang.Boolean> INVERSED
    
Identifies whether this type is inversed.

 

Fields inherited from class: com.artfulbits.aiCharts.Base.ChartType
POINT_WIDTH

 

 

Constructors Summary
ChartStepLineType()
    
Sole constructor.

 

 

Methods Summary
void draw(ChartRenderArgs args)
    
Draws this chart type on surface specified along.
java.lang.String getName()
    
Provides human-readable representation of this chart type.

 

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

 

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

 

 

 

 

INVERSED

 

public static final ChartCustomAttribute<java.lang.Boolean> INVERSED

 

Identifies whether this type is inversed.

 

Since: 1.0

 

 

 

BREAK_MODE

 

public static final ChartCustomAttribute<ChartLineType.BreakMode> BREAK_MODE

 

Identifies value that determines whether auto break mode should be enabled for line chart type.

 

 

 

BREAK_DELTA

 

public static final ChartCustomAttribute<java.lang.Double> BREAK_DELTA

 

Identifies delta break mode used to draw fast line chart.

 

 

 

BREAK_POINT

 

public static final ChartCustomAttribute<java.lang.Boolean> BREAK_POINT

 

Identifies value that determines point value used for breaks.

 

 

 

HIT_RADIUS

 

public static final ChartCustomAttribute<java.lang.Integer> HIT_RADIUS

 

Represents value used to measure line's width when user hits it with a tap.

 

 

 

 

ChartStepLineType

 

public ChartStepLineType( )

 

Sole constructor. (For invocation by subclass constructors, typically implicit.)

 

 

 

 

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)

 

 

 

getName

 

public java.lang.String getName( )

 

[ description from ChartType.getName() ]
 
Provides human-readable representation of this chart type.

 

Returns:
instance of

 

Implements: ChartType.getName()

 

 

© 2005 - 2010 ArtfulBits. All rights reserved.