org.achartengine.renderer
Class SimpleSeriesRenderer

java.lang.Object
  extended by org.achartengine.renderer.SimpleSeriesRenderer
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
XYSeriesRenderer

public class SimpleSeriesRenderer
extends java.lang.Object
implements java.io.Serializable

A simple series renderer.

See Also:
Serialized Form

Constructor Summary
SimpleSeriesRenderer()
           
 
Method Summary
 float getChartValuesSpacing()
          Returns the chart values spacing from the data point.
 android.graphics.Paint.Align getChartValuesTextAlign()
          Returns the chart values text align.
 float getChartValuesTextSize()
          Returns the chart values text size.
 int getColor()
          Returns the series color.
 int getGradientStartColor()
          Returns the gradient start color.
 double getGradientStartValue()
          Returns the gradient start value.
 int getGradientStopColor()
          Returns the gradient stop color.
 double getGradientStopValue()
          Returns the gradient stop value.
 BasicStroke getStroke()
          Returns the stroke style.
 boolean isDisplayChartValues()
          Returns if the chart point values should be displayed as text.
 boolean isGradientEnabled()
          Returns the gradient is enabled value.
 void setChartValuesSpacing(float spacing)
          Sets the chart values spacing from the data point.
 void setChartValuesTextAlign(android.graphics.Paint.Align align)
          Sets the chart values text align.
 void setChartValuesTextSize(float textSize)
          Sets the chart values text size.
 void setColor(int color)
          Sets the series color.
 void setDisplayChartValues(boolean display)
          Sets if the chart point values should be displayed as text.
 void setGradientEnabled(boolean enabled)
          Sets the gradient enabled value.
 void setGradientStart(double start, int color)
          Sets the gradient start value and color.
 void setGradientStop(double start, int color)
          Sets the gradient stop value and color.
 void setStroke(BasicStroke stroke)
          Sets the stroke style.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSeriesRenderer

public SimpleSeriesRenderer()
Method Detail

getColor

public int getColor()
Returns the series color.

Returns:
the series color

setColor

public void setColor(int color)
Sets the series color.

Parameters:
color - the series color

isDisplayChartValues

public boolean isDisplayChartValues()
Returns if the chart point values should be displayed as text.

Returns:
if the chart point values should be displayed as text

setDisplayChartValues

public void setDisplayChartValues(boolean display)
Sets if the chart point values should be displayed as text.

Parameters:
display - if the chart point values should be displayed as text

getChartValuesTextSize

public float getChartValuesTextSize()
Returns the chart values text size.

Returns:
the chart values text size

setChartValuesTextSize

public void setChartValuesTextSize(float textSize)
Sets the chart values text size.

Parameters:
textSize - the chart values text size

getChartValuesTextAlign

public android.graphics.Paint.Align getChartValuesTextAlign()
Returns the chart values text align.

Returns:
the chart values text align

setChartValuesTextAlign

public void setChartValuesTextAlign(android.graphics.Paint.Align align)
Sets the chart values text align.

Parameters:
align - the chart values text align

getChartValuesSpacing

public float getChartValuesSpacing()
Returns the chart values spacing from the data point.

Returns:
the chart values spacing

setChartValuesSpacing

public void setChartValuesSpacing(float spacing)
Sets the chart values spacing from the data point.

Parameters:
spacing - the chart values spacing (in pixels) from the chart data point

getStroke

public BasicStroke getStroke()
Returns the stroke style.

Returns:
the stroke style

setStroke

public void setStroke(BasicStroke stroke)
Sets the stroke style.

Parameters:
stroke - the stroke style

isGradientEnabled

public boolean isGradientEnabled()
Returns the gradient is enabled value.

Returns:
the gradient enabled

setGradientEnabled

public void setGradientEnabled(boolean enabled)
Sets the gradient enabled value.

Parameters:
enabled - the gradient enabled

getGradientStartValue

public double getGradientStartValue()
Returns the gradient start value.

Returns:
the gradient start value

getGradientStartColor

public int getGradientStartColor()
Returns the gradient start color.

Returns:
the gradient start color

setGradientStart

public void setGradientStart(double start,
                             int color)
Sets the gradient start value and color.

Parameters:
start - the gradient start value
color - the gradient start color

getGradientStopValue

public double getGradientStopValue()
Returns the gradient stop value.

Returns:
the gradient stop value

getGradientStopColor

public int getGradientStopColor()
Returns the gradient stop color.

Returns:
the gradient stop color

setGradientStop

public void setGradientStop(double start,
                            int color)
Sets the gradient stop value and color.

Parameters:
start - the gradient stop value
color - the gradient stop color


Copyright © 2009 - 2011 4ViewSoft. All Rights Reserved.