|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.achartengine.renderer.DefaultRenderer
public class DefaultRenderer
An abstract renderer to be extended by the multiple series classes.
Field Summary | |
---|---|
static int |
BACKGROUND_COLOR
The default background color. |
static int |
NO_COLOR
A no color constant. |
static int |
TEXT_COLOR
The default color for text. |
Constructor Summary | |
---|---|
DefaultRenderer()
|
Method Summary | |
---|---|
void |
addSeriesRenderer(int index,
SimpleSeriesRenderer renderer)
Adds a simple renderer to the multiple renderer. |
void |
addSeriesRenderer(SimpleSeriesRenderer renderer)
Adds a simple renderer to the multiple renderer. |
int |
getAxesColor()
Returns the axes color. |
int |
getBackgroundColor()
Returns the background color. |
java.lang.String |
getChartTitle()
Returns the chart title. |
float |
getChartTitleTextSize()
Returns the chart title text size. |
int |
getLabelsColor()
Returns the labels color. |
float |
getLabelsTextSize()
Returns the labels text size. |
int |
getLegendHeight()
Returns the legend height. |
float |
getLegendTextSize()
Returns the legend text size. |
int[] |
getMargins()
Returns the margin sizes. |
float |
getOriginalScale()
Returns the original value to be used for scaling the chart. |
float |
getScale()
Returns the value to be used for scaling the chart. |
int |
getSelectableBuffer()
Returns the selectable radius value around clickable points. |
SimpleSeriesRenderer |
getSeriesRendererAt(int index)
Returns the simple renderer from the multiple renderer list. |
int |
getSeriesRendererCount()
Returns the simple renderers count in the multiple renderer list. |
SimpleSeriesRenderer[] |
getSeriesRenderers()
Returns an array of the simple renderers in the multiple renderer list. |
java.lang.String |
getTextTypefaceName()
Returns the text typeface name. |
int |
getTextTypefaceStyle()
Returns the text typeface style. |
float |
getZoomRate()
Returns the zoom rate. |
boolean |
isAntialiasing()
Returns the antialiasing flag value. |
boolean |
isApplyBackgroundColor()
Returns if the background color should be applied. |
boolean |
isClickEnabled()
Returns the enabled state of the click. |
boolean |
isExternalZoomEnabled()
Returns the enabled state of the external (application implemented) zoom. |
boolean |
isFitLegend()
Returns if the legend should size to fit. |
boolean |
isInScroll()
Returns if the chart is inside a scroll view and doesn't need to shrink. |
boolean |
isPanEnabled()
Returns the enabled state of the pan. |
boolean |
isShowAxes()
Returns if the axes should be visible. |
boolean |
isShowCustomTextGrid()
Returns if the grid should be visible for custom X or Y labels. |
boolean |
isShowGrid()
Returns if the grid should be visible. |
boolean |
isShowLabels()
Returns if the labels should be visible. |
boolean |
isShowLegend()
Returns if the legend should be visible. |
boolean |
isZoomButtonsVisible()
Returns the visible state of the zoom buttons. |
boolean |
isZoomEnabled()
Returns the enabled state of the zoom. |
void |
removeSeriesRenderer(SimpleSeriesRenderer renderer)
Removes a simple renderer from the multiple renderer. |
void |
setAntialiasing(boolean antialiasing)
Sets the antialiasing value. |
void |
setApplyBackgroundColor(boolean apply)
Sets if the background color should be applied. |
void |
setAxesColor(int color)
Sets the axes color. |
void |
setBackgroundColor(int color)
Sets the background color. |
void |
setChartTitle(java.lang.String title)
Sets the chart title. |
void |
setChartTitleTextSize(float textSize)
Sets the chart title text size. |
void |
setClickEnabled(boolean enabled)
Sets the enabled state of the click. |
void |
setExternalZoomEnabled(boolean enabled)
Sets the enabled state of the external (application implemented) zoom. |
void |
setFitLegend(boolean fit)
Sets if the legend should size to fit. |
void |
setInScroll(boolean inScroll)
To be set if the chart is inside a scroll view and doesn't need to shrink when not enough space. |
void |
setLabelsColor(int color)
Sets the labels color. |
void |
setLabelsTextSize(float textSize)
Sets the labels text size. |
void |
setLegendHeight(int height)
Sets the legend height, in pixels. |
void |
setLegendTextSize(float textSize)
Sets the legend text size. |
void |
setMargins(int[] margins)
Sets the margins, in pixels. |
void |
setPanEnabled(boolean enabled)
Sets the enabled state of the pan. |
void |
setScale(float scale)
Sets the value to be used for scaling the chart. |
void |
setSelectableBuffer(int buffer)
Sets the selectable radius value around clickable points. |
void |
setShowAxes(boolean showAxes)
Sets if the axes should be visible. |
void |
setShowCustomTextGrid(boolean showGrid)
Sets if the grid for custom X or Y labels should be visible. |
void |
setShowGrid(boolean showGrid)
Sets if the grid should be visible. |
void |
setShowLabels(boolean showLabels)
Sets if the labels should be visible. |
void |
setShowLegend(boolean showLegend)
Sets if the legend should be visible. |
void |
setTextTypeface(java.lang.String typefaceName,
int style)
Sets the text typeface name and style. |
void |
setZoomButtonsVisible(boolean visible)
Sets the visible state of the zoom buttons. |
void |
setZoomEnabled(boolean enabled)
Sets the enabled state of the zoom. |
void |
setZoomRate(float rate)
Sets the zoom rate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NO_COLOR
public static final int BACKGROUND_COLOR
public static final int TEXT_COLOR
Constructor Detail |
---|
public DefaultRenderer()
Method Detail |
---|
public java.lang.String getChartTitle()
public void setChartTitle(java.lang.String title)
title
- the chart titlepublic float getChartTitleTextSize()
public void setChartTitleTextSize(float textSize)
textSize
- the chart title text sizepublic void addSeriesRenderer(SimpleSeriesRenderer renderer)
renderer
- the renderer to be addedpublic void addSeriesRenderer(int index, SimpleSeriesRenderer renderer)
index
- the index in the renderers listrenderer
- the renderer to be addedpublic void removeSeriesRenderer(SimpleSeriesRenderer renderer)
renderer
- the renderer to be removedpublic SimpleSeriesRenderer getSeriesRendererAt(int index)
index
- the index in the simple renderers list
public int getSeriesRendererCount()
public SimpleSeriesRenderer[] getSeriesRenderers()
public int getBackgroundColor()
public void setBackgroundColor(int color)
color
- the background colorpublic boolean isApplyBackgroundColor()
public void setApplyBackgroundColor(boolean apply)
apply
- the apply flag for the background colorpublic int getAxesColor()
public void setAxesColor(int color)
color
- the axes colorpublic int getLabelsColor()
public void setLabelsColor(int color)
color
- the labels colorpublic float getLabelsTextSize()
public void setLabelsTextSize(float textSize)
textSize
- the labels text sizepublic boolean isShowAxes()
public void setShowAxes(boolean showAxes)
showAxes
- the visibility flag for the axespublic boolean isShowLabels()
public void setShowLabels(boolean showLabels)
showLabels
- the visibility flag for the labelspublic boolean isShowGrid()
public void setShowGrid(boolean showGrid)
showGrid
- the visibility flag for the gridpublic boolean isShowCustomTextGrid()
public void setShowCustomTextGrid(boolean showGrid)
showGrid
- the visibility flag for the custom text gridpublic boolean isShowLegend()
public void setShowLegend(boolean showLegend)
showLegend
- the visibility flag for the legendpublic boolean isFitLegend()
public void setFitLegend(boolean fit)
fit
- the fit behaviorpublic java.lang.String getTextTypefaceName()
public int getTextTypefaceStyle()
public float getLegendTextSize()
public void setLegendTextSize(float textSize)
textSize
- the legend text sizepublic void setTextTypeface(java.lang.String typefaceName, int style)
typefaceName
- the text typeface namestyle
- the text typeface stylepublic boolean isAntialiasing()
public void setAntialiasing(boolean antialiasing)
antialiasing
- the antialiasingpublic float getScale()
public float getOriginalScale()
public void setScale(float scale)
scale
- the scale valuepublic boolean isZoomEnabled()
public void setZoomEnabled(boolean enabled)
enabled
- zoom enabledpublic boolean isZoomButtonsVisible()
public void setZoomButtonsVisible(boolean visible)
visible
- if the zoom buttons are visiblepublic boolean isExternalZoomEnabled()
public void setExternalZoomEnabled(boolean enabled)
enabled
- external zoom enabledpublic float getZoomRate()
public boolean isPanEnabled()
public void setPanEnabled(boolean enabled)
enabled
- pan enabledpublic void setZoomRate(float rate)
rate
- the zoom ratepublic boolean isClickEnabled()
public void setClickEnabled(boolean enabled)
enabled
- click enabledpublic int getSelectableBuffer()
public void setSelectableBuffer(int buffer)
buffer
- the selectable radiuspublic int getLegendHeight()
public void setLegendHeight(int height)
height
- the legend heightpublic int[] getMargins()
public void setMargins(int[] margins)
margins
- an array containing the margin size values, in this order:
top, left, bottom, rightpublic boolean isInScroll()
public void setInScroll(boolean inScroll)
inScroll
- if it is inside a scroll view
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |