public interface IPieRenderableSeries extends IRenderableSeriesBase, ISciPieChartSurfaceProvider, com.scichart.core.framework.IContextProvider, com.scichart.core.framework.IAttachable, IThemeable
ISciPieChartSurface
.Modifier and Type | Method and Description |
---|---|
void |
addIsSelectedChangeListener(PieRenderableSeriesChangeListener listener)
Add the listener which should be invoked if this series becomes selected/unselected.
|
void |
addIsVisibleChangeListener(PieRenderableSeriesChangeListener listener)
Add the listener which should be invoked if this series becomes visible/invisible.
|
void |
animate(long duration)
Animates this series with specified duration.
|
void |
animate(long duration,
android.animation.TimeInterpolator interpolator)
Animates associated series with specified duration.
|
IPieDonutRenderPassData |
getCurrentRenderPassData()
Returns the current
IPieDonutRenderPassData instance which is used for render pass. |
boolean |
getDrawLabels()
Gets a flag indicating whether to draw labels over segments, or not.
|
float |
getHeight()
Gets the
IPieRenderableSeries height considering getHeightSizingMode() |
SizingMode |
getHeightSizingMode()
Gets the
SizingMode to use for computation of this series height. |
float |
getScale()
Gets the value determines which percentage of the circumference is occupied by the series.
|
PieSegmentCollection |
getSegmentsCollection()
Gets the collection of
IPieSegment that this IPieRenderableSeries draws. |
float |
getSegmentSpacing()
Gets the value indicating spacing between segments of current
IPieRenderableSeries . |
float |
getSelectedSegmentOffset()
Gets the value which specifies the offset from center, which will be used for selected
IPieSegment s. |
PieSegmentCollection |
getSelectedSegmentsCollection()
Gets the collection of
IPieSegment that are selected |
IPieSeriesInfoProvider |
getSeriesInfoProvider()
Gets the
IPieSeriesInfoProvider instance associated with this series. |
java.lang.String |
getSeriesName()
Gets the name of this series.
|
float |
getStartAngle()
Gets the start angle value from which this series will be drawn.
|
boolean |
hasSegments()
Checks if this
IPieRenderableSeries has segments in it's PieSegmentCollection . |
void |
hitTest(PieHitTestInfo hitTestResult,
float x,
float y)
Performs a hit-test at the specific point (x,y coordinate on the parent
SciPieChartSurface . |
void |
invalidateLayout()
Asynchronously requests layout for the parent
ISciPieChartSurface instance. |
void |
onDraw(android.graphics.Canvas canvas)
Draws this
IPieRenderableSeries instance. |
void |
removeIsSelectedChangeListener(PieRenderableSeriesChangeListener listener)
Removes the listener which should invoke if this series become selected/unselected.
|
void |
removeIsVisibleChangeListener(PieRenderableSeriesChangeListener listener)
Removes the listener which should invoke if this series become visible/invisible.
|
void |
setDrawLabels(boolean drawLabels)
Sets a flag indicating whether to draw labels over segments, or not.
|
void |
setHeight(float height)
Sets the
IPieRenderableSeries height. |
void |
setHeightSizingMode(SizingMode sizingMode)
Sets the
SizingMode to use for computation of this series height. |
void |
setScale(float scale)
Sets the value determines which percentage of the circumference is occupied by the series.
|
void |
setSegmentSpacing(float segmentSpacing)
Sets the value indicating spacing between segments of current
IPieRenderableSeries . |
void |
setSelectedSegmentOffset(float offset)
Sets the value which specifies the offset from center, which will be used for selected
IPieSegment s. |
void |
setSeriesInfoProvider(IPieSeriesInfoProvider seriesInfoProvider)
Sets the
IPieSeriesInfoProvider instance associated with this series. |
void |
setSeriesName(java.lang.String seriesName)
Sets the name of this series.
|
void |
setStartAngle(float startAngle)
Sets the start angle value from which this series will be drawn.
|
void |
updateLayoutPassData(PieChartLayoutState pieChartLayoutState)
Called during layout pass and updates current layout pass data.
|
getIsSelected, getIsVisible, isValidForDrawing, isValidForUpdate, setIsSelected, setIsVisible
invalidateElement
getParentSurface
attachTo, detach, isAttached
applyThemeProvider
boolean getDrawLabels()
void setDrawLabels(boolean drawLabels)
drawLabels
- The new drawLabels value.float getStartAngle()
void setStartAngle(float startAngle)
startAngle
- New start angle value.float getSelectedSegmentOffset()
IPieSegment
s.void setSelectedSegmentOffset(float offset)
IPieSegment
s.offset
- New offset for selected segments.float getHeight()
IPieRenderableSeries
height considering getHeightSizingMode()
void setHeight(float height)
IPieRenderableSeries
height.height
- New height value.SizingMode getHeightSizingMode()
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 valueSizingMode
instance.void setHeightSizingMode(SizingMode sizingMode)
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 valuesizingMode
- The new SizingMode
instance.float getSegmentSpacing()
IPieRenderableSeries
.void setSegmentSpacing(float segmentSpacing)
IPieRenderableSeries
.segmentSpacing
- New spacing between segments.float getScale()
void setScale(float scale)
scale
- New scale value.java.lang.String getSeriesName()
void setSeriesName(java.lang.String seriesName)
seriesName
- The new name of this series.PieSegmentCollection getSegmentsCollection()
IPieSegment
that this IPieRenderableSeries
draws.PieSegmentCollection getSelectedSegmentsCollection()
IPieSegment
that are selectedboolean hasSegments()
IPieRenderableSeries
has segments in it's PieSegmentCollection
.IPieRenderableSeries
has at least one segment. Otherwise - false.IPieDonutRenderPassData getCurrentRenderPassData()
IPieDonutRenderPassData
instance which is used for render pass.void hitTest(@NonNull PieHitTestInfo hitTestResult, float x, float y)
SciPieChartSurface
.hitTestResult
- The PieHitTestInfo
instance where result of hit-test should be stored.x
- The x coordinate in pixels relative to parent SciPieChartSurface
.y
- The y coordinate in pixels relative to parent SciPieChartSurface
.IPieSeriesInfoProvider getSeriesInfoProvider()
IPieSeriesInfoProvider
instance associated with this series.IPieSeriesInfoProvider
instance.void setSeriesInfoProvider(IPieSeriesInfoProvider seriesInfoProvider)
IPieSeriesInfoProvider
instance associated with this series.seriesInfoProvider
- New IPieSeriesInfoProvider
instance.void invalidateLayout()
ISciPieChartSurface
instance.void updateLayoutPassData(PieChartLayoutState pieChartLayoutState)
void onDraw(android.graphics.Canvas canvas)
IPieRenderableSeries
instance.canvas
- The canvas instance to draw on.void animate(long duration)
duration
- The duration of animation in milliseconds.void animate(long duration, android.animation.TimeInterpolator interpolator)
duration
- The duration of animation in milliseconds.interpolator
- The interpolator to be used by this animation. A value of null
will result in LinearInterpolator
void addIsVisibleChangeListener(PieRenderableSeriesChangeListener listener)
listener
- The listener to add.void removeIsVisibleChangeListener(PieRenderableSeriesChangeListener listener)
listener
- The listener to remove.void addIsSelectedChangeListener(PieRenderableSeriesChangeListener listener)
listener
- The listener to add.void removeIsSelectedChangeListener(PieRenderableSeriesChangeListener listener)
listener
- The listener to remove.