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

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

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

 

Represents Pyramid chart type. Pyramid charts are another type of accumulation chart which has a triangular upper surface that converge at one point. Similar to a ChartFunnelType chart, the height of a segment is proportional to the Y value of the corresponding point.
 // Creating series.
 ChartSeries series = new ChartSeries("Series 1", ChartTypes.Pyramid);
 // Filling series with 10 data points.
 for(int i = 0; i < 10; i++)
 {
 	series.getPoints().addXY(i, i);
 }
 
Similar output should be expected:

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

 

Since: 1.0

 

 

Nested Members Summary
static enum ChartPyramidType.Style
    
Represents style that is used to draw the pyramid.

 

 

Fields Summary
static ChartCustomAttribute<java.lang.Float> GAP_RATIO
    
Identifies pyramid gap ratio.
static ChartCustomAttribute<java.lang.Float> MINIMAL
    
Identifies minimal pyramid value.
static ChartCustomAttribute<ChartPyramidType.Style> STYLE
    
Identifies the style used to draw the pyramid.

 

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

 

 

Constructors Summary
ChartPyramidType()
    
Sole constructor.

 

 

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.
java.lang.String getName()
    
Provides human-readable representation of this chart type.
CoordinateSystem 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, 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

 

 

 

 

STYLE

 

public static final ChartCustomAttribute<ChartPyramidType.Style> STYLE

 

Identifies the style used to draw the pyramid.

 

Since: 1.0

 

 

 

MINIMAL

 

public static final ChartCustomAttribute<java.lang.Float> MINIMAL

 

Identifies minimal pyramid value.

 

Since: 1.0

 

 

 

GAP_RATIO

 

public static final ChartCustomAttribute<java.lang.Float> GAP_RATIO

 

Identifies pyramid gap ratio.

 

Since: 1.0

 

 

 

 

ChartPyramidType

 

public ChartPyramidType( )

 

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

 

Since: 1.0

 

 

 

 

getRequiredCoordinateSystem

 

public CoordinateSystem getRequiredCoordinateSystem( )

 

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

 

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)

 

 

 

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.