Search Results for

    Show / Hide Table of Contents

    Class PieChartLegendModifier

    Defines a custom chart modifier which shows a Legend on the SciPieChartSurface and also can provide a data-source via PieChartLegendModifier#setSourceSeries(IPieRenderableSeries) method.

    Inheritance
    java.lang.Object
    ReceiveMotionEventsBase
    ChartModifierCore
    PieChartModifierBase
    PieChartLegendModifier
    Inherited Members
    ChartModifierCore.applyThemeProvider(IThemeProvider)
    ChartModifierCore.checkPointerCounter(MotionEvent,int)
    ChartModifierCore.getEventsGroupTag()
    ChartModifierCore.getIsEnabled()
    ChartModifierCore.getReceiveHandledEvents()
    ChartModifierCore.getServices()
    ChartModifierCore.isAttached()
    ChartModifierCore.onGenericMotion(ModifierTouchEventArgs)
    ChartModifierCore.onIsEnabledChanged(boolean)
    ChartModifierCore.onTouch(ModifierTouchEventArgs)
    ChartModifierCore.setEventsGroupTag(String)
    ChartModifierCore.setIsEnabled(boolean)
    ChartModifierCore.setReceiveHandledEvents(boolean)
    PieChartModifierBase.attachTo(IServiceContainer)
    PieChartModifierBase.detach()
    PieChartModifierBase.getContext()
    PieChartModifierBase.getModifierSurface()
    PieChartModifierBase.getParentSurface()
    PieChartModifierBase.getPointRelativeTo(PointF,IHitTestable)
    PieChartModifierBase.getRenderableSeries()
    PieChartModifierBase.onParentSurfaceResized(ResizedMessage)
    PieChartModifierBase.onPieRenderSurfaceRendered(PieChartRenderedMessage)
    PieChartModifierBase.onRenderableSeriesCollectionChanged(CollectionChangedEventArgs<? extends renderableSeries.IRenderableSeriesCore>)
    PieChartModifierBase.onRenderableSeriesDrasticallyChanged()
    PieChartModifierBase.onSegmentCollectionDrasticallyChanged()
    PieChartModifierBase.onSegmentsCollectionChanged(CollectionChangedEventArgs<renderableSeries.IPieSegment>)
    PieChartModifierBase.onSelectedSegmentsCollectionChanged(CollectionChangedEventArgs<renderableSeries.IPieSegment>)
    PieChartModifierBase.onSelectedSeriesCollectionChanged(CollectionChangedEventArgs<? extends renderableSeries.IRenderableSeriesCore>)
    ReceiveMotionEventsBase.getName()
    Object.clone()
    Object.equals(Object)
    Object.finalize()
    Object.getClass()
    Object.hashCode()
    Object.notify()
    Object.notifyAll()
    Object.toString()
    Object.wait()
    Object.wait(long)
    Object.wait(long,int)
    Namespace:
    Assembly: .dll
    Syntax
    public class PieChartLegendModifier extends PieChartModifierBase

    Constructors

    PieChartLegendModifier(Context context)

    Creates a new instance of PieChartLegendModifier class

    Declaration
    public PieChartLegendModifier(Context context)
    Parameters
    Type Name Description
    android.content.Context context

    The context of the application

    PieChartLegendModifier(SciChartLegend legend)

    Creates a new instance of PieChartLegendModifier class

    Declaration
    public PieChartLegendModifier(SciChartLegend legend)
    Parameters
    Type Name Description
    SciChartLegend legend

    The SciChartLegend instance which should be used by this modifier

    PieChartLegendModifier(SciChartLegend legend, boolean useAutoPlacement)

    Creates a new instance of PieChartLegendModifier class

    Declaration
    public PieChartLegendModifier(SciChartLegend legend, boolean useAutoPlacement)
    Parameters
    Type Name Description
    SciChartLegend legend

    The SciChartLegend instance which should be used by this modifier

    boolean useAutoPlacement

    If true modifier will try to place legend inside chart, otherwise legend is already placed somewhere and shouldn't be moved

    PieChartLegendModifier(SciChartLegend legend, PieSegmentsLegendAdapter legendAdapter, boolean useAutoPlacement)

    Creates a new instance of PieChartLegendModifier class

    Declaration
    public PieChartLegendModifier(SciChartLegend legend, PieSegmentsLegendAdapter legendAdapter, boolean useAutoPlacement)
    Parameters
    Type Name Description
    SciChartLegend legend

    The SciChartLegend instance which should be used by this modifier

    PieSegmentsLegendAdapter legendAdapter

    The PieSegmentsLegendAdapter instance which should be used by legend

    boolean useAutoPlacement

    If true modifier will try to place legend inside chart, otherwise legend is already placed somewhere and shouldn't be moved

    Methods

    applyThemeProvider(IThemeProvider themeProvider)

    Applies specified theme to current instance

    Declaration
    public void applyThemeProvider(IThemeProvider themeProvider)
    Parameters
    Type Name Description
    IThemeProvider themeProvider
    Overrides
    ChartModifierCore.applyThemeProvider(IThemeProvider themeProvider)

    attachTo(IServiceContainer serviceContainer)

    Declaration
    public void attachTo(IServiceContainer serviceContainer)
    Parameters
    Type Name Description
    IServiceContainer serviceContainer
    Overrides
    PieChartModifierBase.attachTo(IServiceContainer services)

    detach()

    Declaration
    public void detach()
    Overrides
    PieChartModifierBase.detach()

    isSeriesValid(renderableSeries.IPieRenderableSeries series)

    When overridden in derived classes, indicates whether the series should be inspected in order to get SeriesInfo

    Declaration
    protected boolean isSeriesValid(renderableSeries.IPieRenderableSeries series)
    Parameters
    Type Name Description
    renderableSeries.IPieRenderableSeries series

    The renderable series to check

    Returns
    Type Description
    boolean

    True if renderable series is valid

    onSegmentCollectionDrasticallyChanged()

    Called when segments collection drastically changed.

    Declaration
    public void onSegmentCollectionDrasticallyChanged()
    Overrides
    PieChartModifierBase.onSegmentCollectionDrasticallyChanged()

    onSegmentsCollectionChanged(CollectionChangedEventArgs<renderableSeries.IPieSegment> args)

    Called when segments collection changes.

    Declaration
    public void onSegmentsCollectionChanged(CollectionChangedEventArgs<renderableSeries.IPieSegment> args)
    Parameters
    Type Name Description
    CollectionChangedEventArgs<IPieSegment> args
    Overrides
    PieChartModifierBase.onSegmentsCollectionChanged(CollectionChangedEventArgs<renderableSeries.IPieSegment> args)

    onSelectedSegmentsCollectionChanged(CollectionChangedEventArgs<renderableSeries.IPieSegment> args)

    Called when selected segments collection changes.

    Declaration
    public void onSelectedSegmentsCollectionChanged(CollectionChangedEventArgs<renderableSeries.IPieSegment> args)
    Parameters
    Type Name Description
    CollectionChangedEventArgs<IPieSegment> args
    Overrides
    PieChartModifierBase.onSelectedSegmentsCollectionChanged(CollectionChangedEventArgs<renderableSeries.IPieSegment> args)

    setLegendPosition(int gravity, int margin)

    Sets the position of the current PieChartLegendModifier instance.

    Declaration
    public void setLegendPosition(int gravity, int margin)
    Parameters
    Type Name Description
    int gravity

    The PieChartLegendModifier#sciChartLegend gravity for this modifier.

    int margin

    The margin size for all sides (left, top, right, bottom).

    setLegendPosition(int gravity, int leftMargin, int topMargin, int rightMargin, int bottomMargin)

    Sets the position of the current PieChartLegendModifier instance.

    Declaration
    public void setLegendPosition(int gravity, int leftMargin, int topMargin, int rightMargin, int bottomMargin)
    Parameters
    Type Name Description
    int gravity

    The PieChartLegendModifier#sciChartLegend gravity for this modifier.

    int leftMargin

    The left margin size.

    int topMargin

    The top margin size.

    int rightMargin

    The right margin size.

    int bottomMargin

    The bottom margin size.

    setOrientation(int orientation)

    Sets the orientation of the legend

    Declaration
    public final void setOrientation(int orientation)
    Parameters
    Type Name Description
    int orientation

    The orientation of legend

    setShowCheckboxes(boolean showCheckboxes)

    Sets whether the legend should display checkboxes

    Declaration
    public final void setShowCheckboxes(boolean showCheckboxes)
    Parameters
    Type Name Description
    boolean showCheckboxes

    The new showCheckboxes value

    setShowLegend(boolean showLegend)

    Sets whether the legend should be displayed

    Declaration
    public final void setShowLegend(boolean showLegend)
    Parameters
    Type Name Description
    boolean showLegend

    The new showLegend value

    setShowSeriesMarkers(boolean showSeriesMarkers)

    Sets whether the legend should display series markers

    Declaration
    public final void setShowSeriesMarkers(boolean showSeriesMarkers)
    Parameters
    Type Name Description
    boolean showSeriesMarkers

    The new showSeriesMarkers value

    setSourceSeries(renderableSeries.IPieRenderableSeries sourceSeries)

    Sets the SourceMode value for legend

    Declaration
    public final void setSourceSeries(renderableSeries.IPieRenderableSeries sourceSeries)
    Parameters
    Type Name Description
    renderableSeries.IPieRenderableSeries sourceSeries

    The new SourceMode value

    updateLegend()

    Refreshes content of the legend with up-to-date values

    Declaration
    public void updateLegend()
    Back to top © 2011-2025 SciChart. All rights reserved. | sitemap.xml