Class DialRenderer
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class DefaultRenderer
BACKGROUND_COLOR, NO_COLOR, TEXT_COLORModifier and TypeFieldDescriptionstatic final intThe default background color.static final intA no color constant.static final intThe default color for text. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the end angle value of the dial.doubleReturns the start angle value of the dial.doubleReturns the major ticks spacing.doubleReturns the end value to be rendered on the dial.doubleReturns the minor ticks spacing.doubleReturns the start value to be rendered on the dial.getVisualTypeForIndex(int index) Returns the visual type at the specified index.booleanReturns if the maximum dial value was set.booleanReturns if the minimum dial value was set.voidsetAngleMax(double max) Sets the end angle value of the dial.voidsetAngleMin(double min) Sets the start angle value of the dial.voidsetMajorTicksSpacing(double spacing) Sets the major ticks spacing.voidsetMaxValue(double max) Sets the end value to be rendered on the dial.voidsetMinorTicksSpacing(double spacing) Sets the minor ticks spacing.voidsetMinValue(double min) Sets the start value to be rendered on the dial.voidsetVisualTypes(DialRenderer.Type[] types) Sets the visual types.Methods inherited from class DefaultRenderer
addSeriesRenderer, addSeriesRenderer, getAxesColor, getBackgroundColor, getChartTitle, getChartTitleTextSize, getLabelsColor, getLabelsTextSize, getLegendHeight, getLegendTextSize, getMargins, getOriginalScale, getScale, getSelectableBuffer, getSeriesRendererAt, getSeriesRendererCount, getSeriesRenderers, getStartAngle, getTextTypeface, getTextTypefaceName, getTextTypefaceStyle, getXAxisColor, getYAxisColor, getZoomRate, isAntialiasing, isApplyBackgroundColor, isClickEnabled, isDisplayValues, isExternalZoomEnabled, isFitLegend, isInScroll, isPanEnabled, isShowAxes, isShowCustomTextGridX, isShowCustomTextGridY, isShowGridX, isShowGridY, isShowLabels, isShowLegend, isShowTickMarks, isZoomButtonsVisible, isZoomEnabled, removeAllRenderers, removeSeriesRenderer, setAntialiasing, setApplyBackgroundColor, setAxesColor, setBackgroundColor, setChartTitle, setChartTitleTextFont, setChartTitleTextSize, setClickEnabled, setDisplayValues, setExternalZoomEnabled, setFitLegend, setInScroll, setLabelsColor, setLabelsTextFont, setLabelsTextSize, setLegendHeight, setLegendTextFont, setLegendTextSize, setMargins, setPanEnabled, setScale, setSelectableBuffer, setShowAxes, setShowCustomTextGrid, setShowCustomTextGridX, setShowCustomTextGridY, setShowGrid, setShowGridX, setShowGridY, setShowLabels, setShowLegend, setShowTickMarks, setStartAngle, setTextTypeface, setTextTypeface, setXAxisColor, setYAxisColor, setZoomButtonsVisible, setZoomEnabled, setZoomRateModifier and TypeMethodDescriptionvoidaddSeriesRenderer(int index, SimpleSeriesRenderer renderer) Adds a simple renderer to the multiple renderer.voidaddSeriesRenderer(SimpleSeriesRenderer renderer) Adds a simple renderer to the multiple renderer.intReturns the axes color.intReturns the background color.Returns the chart title.floatReturns the chart title text size.intReturns the labels color.floatReturns the labels text size.intReturns the legend height.floatReturns the legend text size.int[]Returns the margin sizes.floatReturns the original value to be used for scaling the chart.floatgetScale()Returns the value to be used for scaling the chart.intReturns the selectable radius value around clickable points.getSeriesRendererAt(int index) Returns the simple renderer from the multiple renderer list.intReturns the simple renderers count in the multiple renderer list.Returns an array of the simple renderers in the multiple renderer list.floatReturns the start angle for circular charts such as pie, doughnut.Returns the text typeface.intReturns the text typeface name.intReturns the text typeface style.intReturns the color of the X axisintReturns the color of the Y axisfloatReturns the zoom rate.booleanReturns the antialiasing flag value.booleanReturns if the background color should be applied.booleanReturns the enabled state of the click.booleanReturns if the values should be displayed as text.booleanReturns the enabled state of the external (application implemented) zoom.booleanReturns if the legend should size to fit.booleanReturns if the chart is inside a scroll view and doesn't need to shrink.booleanReturns the enabled state of the pan.booleanReturns if the axes should be visible.booleanReturns if the X axis custom text grid should be visible.booleanReturns if the Y axis custom text grid should be visible.booleanReturns if the X axis grid should be visible.booleanReturns if the Y axis grid should be visible.booleanReturns if the labels should be visible.booleanReturns if the legend should be visible.booleanReturns if the tick marks should be visible.booleanReturns the visible state of the zoom buttons.booleanReturns the enabled state of the zoom.voidRemoves all renderers from the multiple renderer.voidremoveSeriesRenderer(SimpleSeriesRenderer renderer) Removes a simple renderer from the multiple renderer.voidsetAntialiasing(boolean antialiasing) Sets the antialiasing value.voidsetApplyBackgroundColor(boolean apply) Sets if the background color should be applied.voidsetAxesColor(int color) Sets the axes color.voidsetBackgroundColor(int color) Sets the background color.voidsetChartTitle(String title) Sets the chart title.voidsetChartTitleTextFont(Font font) Sets the chart title font size using a Font object instead of a point size.voidsetChartTitleTextSize(float textSize) Sets the chart title text size in pixels.voidsetClickEnabled(boolean enabled) Sets the enabled state of the click.voidsetDisplayValues(boolean display) Sets if the values should be displayed as text (supported by pie chart).voidsetExternalZoomEnabled(boolean enabled) Sets the enabled state of the external (application implemented) zoom.voidsetFitLegend(boolean fit) Sets if the legend should size to fit.voidsetInScroll(boolean inScroll) To be set if the chart is inside a scroll view and doesn't need to shrink when not enough space.voidsetLabelsColor(int color) Sets the labels color.voidsetLabelsTextFont(Font font) Sets the label title font size using a Font object instead of a point size.voidsetLabelsTextSize(float textSize) Sets the labels text size.voidsetLegendHeight(int height) Sets the legend height, in pixels.voidsetLegendTextFont(Font font) Sets the legend text font size using a Font object instead of a point size.voidsetLegendTextSize(float textSize) Sets the legend text size.voidsetMargins(int[] margins) Sets the margins, in pixels.voidsetPanEnabled(boolean enabled) Sets the enabled state of the pan.voidsetScale(float scale) Sets the value to be used for scaling the chart.voidsetSelectableBuffer(int buffer) Sets the selectable radius value around clickable points.voidsetShowAxes(boolean showAxes) Sets if the axes should be visible.voidsetShowCustomTextGrid(boolean showGrid) Sets if the grid for custom X or Y labels should be visible.voidsetShowCustomTextGridX(boolean showGrid) Sets if the X axis custom text grid should be visible.voidsetShowCustomTextGridY(boolean showGrid) Sets if the Y axis custom text grid should be visible.voidsetShowGrid(boolean showGrid) Sets if the grid should be visible.voidsetShowGridX(boolean showGrid) Sets if the X axis grid should be visible.voidsetShowGridY(boolean showGrid) Sets if the Y axis grid should be visible.voidsetShowLabels(boolean showLabels) Sets if the labels should be visible.voidsetShowLegend(boolean showLegend) Sets if the legend should be visible.voidsetShowTickMarks(boolean mShowTickMarks) Sets if the tick marks should be visible.voidsetStartAngle(float startAngle) Sets the start angle for circular charts such as pie, doughnut, etc.voidsetTextTypeface(int typefaceName, int style) Sets the text typeface name and style.voidsetTextTypeface(Font typeface) Sets the text typeface.voidsetXAxisColor(int color) Sets the X axis color.voidsetYAxisColor(int color) Sets the Y axis color.voidsetZoomButtonsVisible(boolean visible) Sets the visible state of the zoom buttons.voidsetZoomEnabled(boolean enabled) Sets the enabled state of the zoom.voidsetZoomRate(float rate) Sets the zoom rate.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
Constructor Details
-
DialRenderer
public DialRenderer()
-
-
Method Details
-
getAngleMin
public double getAngleMin()Returns the start angle value of the dial.
Returns
the angle start value
-
setAngleMin
public void setAngleMin(double min) Sets the start angle value of the dial.
Parameters
min: the dial angle start value
-
getAngleMax
public double getAngleMax()Returns the end angle value of the dial.
Returns
the angle end value
-
setAngleMax
public void setAngleMax(double max) Sets the end angle value of the dial.
Parameters
max: the dial angle end value
-
getMinValue
public double getMinValue()Returns the start value to be rendered on the dial.
Returns
the start value on dial
-
setMinValue
public void setMinValue(double min) Sets the start value to be rendered on the dial.
Parameters
min: the start value on the dial
-
isMinValueSet
public boolean isMinValueSet()Returns if the minimum dial value was set.
Returns
the minimum dial value was set or not
-
getMaxValue
public double getMaxValue()Returns the end value to be rendered on the dial.
Returns
the end value on the dial
-
setMaxValue
public void setMaxValue(double max) Sets the end value to be rendered on the dial.
Parameters
max: the end value on the dial
-
isMaxValueSet
public boolean isMaxValueSet()Returns if the maximum dial value was set.
Returns
the maximum dial was set or not
-
getMinorTicksSpacing
public double getMinorTicksSpacing()Returns the minor ticks spacing.
Returns
the minor ticks spacing
-
setMinorTicksSpacing
public void setMinorTicksSpacing(double spacing) Sets the minor ticks spacing.
Parameters
spacing: the minor ticks spacing
-
getMajorTicksSpacing
public double getMajorTicksSpacing()Returns the major ticks spacing.
Returns
the major ticks spacing
-
setMajorTicksSpacing
public void setMajorTicksSpacing(double spacing) Sets the major ticks spacing.
Parameters
spacing: the major ticks spacing
-
getVisualTypeForIndex
Returns the visual type at the specified index.
Parameters
index: the index
Returns
the visual type
-
setVisualTypes
Sets the visual types.
Parameters
types: the visual types
-