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

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

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

 

Represents Funnel chart type. Funnel chart type displays data that equals 100% when totaled. This is a single series chart representing the data as portions of 100%. This chart type does not require coordinate system to be displayed.
 // Creating series.
 ChartSeries series = new ChartSeries("Series 1", ChartTypes.Funnel);
 // Filling series with 10 data points.
 for (int i = 0; i < 10; i++)
 {
 	series.getPoints().addXY(i, i);
 }
 
Funnel type uses USAGE_Y type to determine index of corresponding Y value among chart point's Y values.

 

Since: 1.0

 

 

Fields Summary
static java.lang.String GAP_RATIO
    
Identifies the gap ratio for funnel type.
static java.lang.String MINIMAL
    
Identifies the minimal value.
static java.lang.String NECK_HEIGHT
    
Identifies height of funnel's neck.
static java.lang.String NECK_WIDTH
    
Identifies width of funnel's neck.
static java.lang.String STYLE
    
Identifies the style used to draw funnel.
static java.lang.Integer STYLE_Y_IS_HEIGHT
    
Y value is considered to be a width of funnel segments.
static java.lang.Integer STYLE_Y_IS_WIDTH
    
Y value is considered to be a height of funnel segments.

 

 

Constructors Summary
ChartFunnelType()
    

 

 

Methods Summary
boolean colorPerPoint()
    
Indicated whether this chart type requires separate color for each point it draws.
void draw(ChartRenderArgs args)
    
Draws this chart type on surface specified along.
void drawMarkers(ChartRenderArgs args)
    
Iterates over points collection for this chart type and draws marker for each point that requires it.
int getRequiredCoordinateSystem()
    
Gets value indicating coordinate system that this chart type requires to be shown.

 

Methods inherited from class: com.artfulbits.aiCharts.Base.ChartType
computeXRange, computeYRange, drawIcon, 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

 

 

 

 

STYLE

 

public static final java.lang.String STYLE

 

Identifies the style used to draw funnel.

 

Since: 1.0
See also: Constants

 

 

 

MINIMAL

 

public static final java.lang.String MINIMAL

 

Identifies the minimal value.

 

Since: 1.0
See also: Constants

 

 

 

GAP_RATIO

 

public static final java.lang.String GAP_RATIO

 

Identifies the gap ratio for funnel type.

 

Since: 1.0
See also: Constants

 

 

 

NECK_WIDTH

 

public static final java.lang.String NECK_WIDTH

 

Identifies width of funnel's neck.

 

Since: 1.0
See also: Constants

 

 

 

NECK_HEIGHT

 

public static final java.lang.String NECK_HEIGHT

 

Identifies height of funnel's neck.

 

Since: 1.0
See also: Constants

 

 

 

STYLE_Y_IS_HEIGHT

 

public static final java.lang.Integer STYLE_Y_IS_HEIGHT

 

Y value is considered to be a width of funnel segments.

 

Since: 1.0

 

 

 

STYLE_Y_IS_WIDTH

 

public static final java.lang.Integer STYLE_Y_IS_WIDTH

 

Y value is considered to be a height of funnel segments.

 

Since: 1.0

 

 

 

 

ChartFunnelType

 

public ChartFunnelType( )

 

 

 

 

getRequiredCoordinateSystem

 

public int getRequiredCoordinateSystem( )

 

[ description from ChartType.getRequiredCoordinateSystem() ]
 
Gets value indicating coordinate system that this chart type requires to be shown. Default implementation assumes CoordinateSystem.CARTESIAN.

 

Returns:
instance of

 

Overrides: ChartType.getRequiredCoordinateSystem()

 

 

 

colorPerPoint

 

public boolean colorPerPoint( )

 

[ description from ChartType.colorPerPoint() ]
 
Indicated whether this chart type requires separate color for each point it draws.

 

Returns:
true if this chart type requires color for each point, otherwise false.

 

Overrides: ChartType.colorPerPoint()

 

 

 

drawMarkers

 

public void drawMarkers( ChartRenderArgs args)

 

[ description from ChartType.drawMarkers(ChartRenderArgs) ]
 
Iterates over points collection for this chart type and draws marker for each point that requires it.

 

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

 

Overrides: ChartType.drawMarkers(ChartRenderArgs)

 

 

 

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)

 

 

© 2005 - 2010 ArtfulBits. All rights reserved.