Interface IPieRenderableSeries
Defines the interface for renderable series which are used within ISciPieChartSurface.
Implements
Namespace:
Assembly: .dll
Syntax
public interface IPieRenderableSeries extends renderableSeries.IRenderableSeriesCore, ISciPieChartSurfaceProvider, IAttachable, IThemeable
Methods
animate(long duration)
Animates this series with specified duration.
Declaration
public abstract void animate(long duration)
Parameters
Type | Name | Description |
---|---|---|
long | duration | The duration of animation in milliseconds. |
animate(long duration, TimeInterpolator interpolator)
Animates associated series with specified duration.
Declaration
public abstract void animate(long duration, TimeInterpolator interpolator)
Parameters
Type | Name | Description |
---|---|---|
long | duration | The duration of animation in milliseconds. |
android.animation.TimeInterpolator | interpolator | The interpolator to be used by this animation. A value of |
getCurrentRenderPassData()
Returns the current IPieDonutRenderPassData instance which is used for render pass.
Declaration
public abstract renderableSeriesIPieDonutRenderPassData getCurrentRenderPassData()
Returns
Type | Description |
---|---|
renderableSeriesIPieDonutRenderPassData | The current render pass data. |
getDrawLabels()
Gets a flag indicating whether to draw labels over segments, or not.
Declaration
public abstract boolean getDrawLabels()
Returns
Type | Description |
---|---|
boolean | The drawLabels value. |
getHeight()
Gets the IPieRenderableSeries height considering IPieRenderableSeries#getHeightSizingMode()
Declaration
public abstract float getHeight()
Returns
Type | Description |
---|---|
float | The current height value. |
getHeightSizingMode()
Gets the SizingMode to use for computation of this series height. E.g. the default of Absolute requires that the spacing value is in pixels. The value of Relative requires relative spacing value
Declaration
public abstract SizingMode getHeightSizingMode()
Returns
Type | Description |
---|---|
SizingMode | The current SizingMode instance. |
getPieSegmentLabelFormatter()
Gets label formatter for IPieSegment collection use by this series
Declaration
public abstract renderableSeries.IPieSegmentLabelFormatter getPieSegmentLabelFormatter()
Returns
Type | Description |
---|---|
renderableSeries.IPieSegmentLabelFormatter | The current label formatter |
getScale()
Gets the value determines which percentage of the circumference is occupied by the series.
Declaration
public abstract float getScale()
Returns
Type | Description |
---|---|
float | The value determines which percentage of the circumference is occupied by the series. |
getSegmentSpacing()
Gets the value indicating spacing between segments of current IPieRenderableSeries.
Declaration
public abstract float getSegmentSpacing()
Returns
Type | Description |
---|---|
float | The value which indicates spacing between segments. |
getSegmentsCollection()
Gets the collection of IPieSegment that this IPieRenderableSeries draws.
Declaration
public abstract PieSegmentCollection getSegmentsCollection()
Returns
Type | Description |
---|---|
PieSegmentCollection | The segments collection. |
getSelectedSegmentOffset()
Gets the value which specifies the offset from center, which will be used for selected IPieSegments.
Declaration
public abstract float getSelectedSegmentOffset()
Returns
Type | Description |
---|---|
float | The current offset for selected segments. |
getSelectedSegmentsCollection()
Gets the collection of IPieSegment that are selected
Declaration
public abstract PieSegmentCollection getSelectedSegmentsCollection()
Returns
Type | Description |
---|---|
PieSegmentCollection | The selected segments collection. |
getSeriesInfoProvider()
Gets the IPieSeriesInfoProvider instance associated with this series.
Declaration
public abstract renderableSeries.hitTest.IPieSeriesInfoProvider getSeriesInfoProvider()
Returns
Type | Description |
---|---|
renderableSeries.hitTest.IPieSeriesInfoProvider | The current IPieSeriesInfoProvider instance. |
getSeriesName()
Gets the name of this series.
Declaration
public abstract String getSeriesName()
Returns
Type | Description |
---|---|
String | The series name. |
getStartAngle()
Gets the start angle value from which this series will be drawn.
Declaration
public abstract float getStartAngle()
Returns
Type | Description |
---|---|
float | The start angle value. |
hasSegments()
Checks if this IPieRenderableSeries has segments in it's PieSegmentCollection.
Declaration
public abstract boolean hasSegments()
Returns
Type | Description |
---|---|
boolean | True if this IPieRenderableSeries has at least one segment. Otherwise - false. |
hitTest(renderableSeries.hitTest.PieHitTestInfo hitTestResult, float x, float y)
Performs a hit-test at the specific point (x,y coordinate on the parent SciPieChartSurface.
Declaration
public abstract void hitTest(renderableSeries.hitTest.PieHitTestInfo hitTestResult, float x, float y)
Parameters
Type | Name | Description |
---|---|---|
renderableSeries.hitTest.PieHitTestInfo | hitTestResult | The PieHitTestInfo instance where result of hit-test should be stored. |
float | x | The x coordinate in pixels relative to parent SciPieChartSurface. |
float | y | The y coordinate in pixels relative to parent SciPieChartSurface. |
invalidateLayout()
Asynchronously requests layout for the parent ISciPieChartSurface instance.
Declaration
public abstract void invalidateLayout()
onDraw(Canvas canvas)
Draws this IPieRenderableSeries instance.
Declaration
public abstract void onDraw(Canvas canvas)
Parameters
Type | Name | Description |
---|---|---|
android.graphics.Canvas | canvas | The canvas instance to draw on. |
setDrawLabels(boolean drawLabels)
Sets a flag indicating whether to draw labels over segments, or not.
Declaration
public abstract void setDrawLabels(boolean drawLabels)
Parameters
Type | Name | Description |
---|---|---|
boolean | drawLabels | The new drawLabels value. |
setHeight(float height)
Sets the IPieRenderableSeries height.
Declaration
public abstract void setHeight(float height)
Parameters
Type | Name | Description |
---|---|---|
float | height | New height value. |
setHeightSizingMode(SizingMode sizingMode)
Sets the SizingMode to use for computation of this series height. E.g. the default of Absolute requires that the spacing value is in pixels. The value of Relative requires relative spacing value
Declaration
public abstract void setHeightSizingMode(SizingMode sizingMode)
Parameters
Type | Name | Description |
---|---|---|
SizingMode | sizingMode | The new SizingMode instance. |
setPieSegmentLabelFormatter(renderableSeries.IPieSegmentLabelFormatter labelFormatter)
Sets label formatter for IPieSegment collection use by this series
Declaration
public abstract void setPieSegmentLabelFormatter(renderableSeries.IPieSegmentLabelFormatter labelFormatter)
Parameters
Type | Name | Description |
---|---|---|
renderableSeries.IPieSegmentLabelFormatter | labelFormatter | The new label formatter |
setScale(float scale)
Sets the value determines which percentage of the circumference is occupied by the series.
Declaration
public abstract void setScale(float scale)
Parameters
Type | Name | Description |
---|---|---|
float | scale | New scale value. |
setSegmentSpacing(float segmentSpacing)
Sets the value indicating spacing between segments of current IPieRenderableSeries.
Declaration
public abstract void setSegmentSpacing(float segmentSpacing)
Parameters
Type | Name | Description |
---|---|---|
float | segmentSpacing | New spacing between segments. |
setSelectedSegmentOffset(float offset)
Sets the value which specifies the offset from center, which will be used for selected IPieSegments.
Declaration
public abstract void setSelectedSegmentOffset(float offset)
Parameters
Type | Name | Description |
---|---|---|
float | offset | New offset for selected segments. |
setSeriesInfoProvider(renderableSeries.hitTest.IPieSeriesInfoProvider seriesInfoProvider)
Sets the IPieSeriesInfoProvider instance associated with this series.
Declaration
public abstract void setSeriesInfoProvider(renderableSeries.hitTest.IPieSeriesInfoProvider seriesInfoProvider)
Parameters
Type | Name | Description |
---|---|---|
renderableSeries.hitTest.IPieSeriesInfoProvider | seriesInfoProvider | New IPieSeriesInfoProvider instance. |
setSeriesName(String seriesName)
Sets the name of this series.
Declaration
public abstract void setSeriesName(String seriesName)
Parameters
Type | Name | Description |
---|---|---|
String | seriesName | The new name of this series. |
setStartAngle(float startAngle)
Sets the start angle value from which this series will be drawn.
Declaration
public abstract void setStartAngle(float startAngle)
Parameters
Type | Name | Description |
---|---|---|
float | startAngle | New start angle value. |
updateLayoutPassData(PieChartLayoutState pieChartLayoutState)
Called during layout pass and updates current layout pass data.
Declaration
public abstract void updateLayoutPassData(PieChartLayoutState pieChartLayoutState)
Parameters
Type | Name | Description |
---|---|---|
PieChartLayoutState | pieChartLayoutState |