public class LegendModifier3D extends ChartModifierBase3D
Constructor and Description |
---|
LegendModifier3D(android.content.Context context)
Creates a new instance of
LegendModifier class |
LegendModifier3D(com.scichart.charting.visuals.legend.SciChartLegend legend)
Creates a new instance of
LegendModifier class |
LegendModifier3D(com.scichart.charting.visuals.legend.SciChartLegend legend,
boolean useAutoPlacement)
Creates a new instance of
LegendModifier3D class |
LegendModifier3D(com.scichart.charting.visuals.legend.SciChartLegend legend,
LegendItemsAdapter3D legendAdapter,
boolean useAutoPlacement)
Creates a new instance of
LegendModifier3D class |
Modifier and Type | Method and Description |
---|---|
void |
applyThemeProvider(com.scichart.charting.themes.IThemeProvider themeProvider) |
void |
attachTo(com.scichart.core.IServiceContainer serviceContainer) |
void |
detach() |
protected boolean |
isSeriesValid(IRenderableSeries3D series)
When overridden in derived classes, indicates whether the series should be inspected in order to get
SeriesInfo |
void |
onRenderableSeriesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<? extends com.scichart.charting.visuals.renderableSeries.IRenderableSeriesCore> args) |
void |
onRenderableSeriesDrasticallyChanged() |
void |
setLegendPosition(int gravity,
int margin)
Sets the position of the current
LegendModifier3D instance. |
void |
setLegendPosition(int gravity,
int leftMargin,
int topMargin,
int rightMargin,
int bottomMargin)
Sets the position of the current
LegendModifier3D instance. |
void |
setOrientation(int orientation)
Sets the orientation of the legend
|
void |
setShowCheckboxes(boolean showCheckboxes)
Sets whether the legend should display checkboxes
|
void |
setShowLegend(boolean showLegend)
Sets whether the legend should be displayed
|
void |
setShowSeriesMarkers(boolean showSeriesMarkers)
Sets whether the legend should display series markers
|
void |
setSourceMode(com.scichart.charting.modifiers.SourceMode sourceMode)
Sets the
SourceMode value for legend |
void |
updateLegend()
Refreshes content of the legend with up-to-date values
|
getCamera, getContext, getModifierSurface, getParentSurface, getPointRelativeTo, getXAxis, getYAxis, getZAxis, onChartRendered, onXAxisChanged, onYAxisChanged, onZAxisChanged
checkPointerCounter, getEventsGroupTag, getIsEnabled, getReceiveHandledEvents, getServices, isAttached, onGenericMotion, onIsEnabledChanged, onSelectedSeriesCollectionChanged, onTouch, setEventsGroupTag, setIsEnabled, setReceiveHandledEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEventsGroupTag, getIsEnabled, setIsEnabled
public LegendModifier3D(android.content.Context context)
LegendModifier
classcontext
- The context of the applicationpublic LegendModifier3D(com.scichart.charting.visuals.legend.SciChartLegend legend)
LegendModifier
classlegend
- The SciChartLegend
instance which should be used by this modifierpublic LegendModifier3D(com.scichart.charting.visuals.legend.SciChartLegend legend, boolean useAutoPlacement)
LegendModifier3D
classlegend
- The SciChartLegend
instance which should be used by this modifieruseAutoPlacement
- If true modifier will try to place legend inside chart, otherwise legend is already placed somewhere and shouldn't be movedpublic LegendModifier3D(com.scichart.charting.visuals.legend.SciChartLegend legend, LegendItemsAdapter3D legendAdapter, boolean useAutoPlacement)
LegendModifier3D
classlegend
- The SciChartLegend
instance which should be used by this modifierlegendAdapter
- The LegendItemsAdapter3D
instance which should be used by legenduseAutoPlacement
- If true modifier will try to place legend inside chart, otherwise legend is already placed somewhere and shouldn't be movedpublic void setLegendPosition(int gravity, int margin)
LegendModifier3D
instance.gravity
- The sciChartLegend
gravity for this modifier.margin
- The margin size for all sides (left, top, right, bottom).public void setLegendPosition(int gravity, int leftMargin, int topMargin, int rightMargin, int bottomMargin)
LegendModifier3D
instance.gravity
- The sciChartLegend
gravity for this modifier.leftMargin
- The left margin size.topMargin
- The top margin size.rightMargin
- The right margin size.bottomMargin
- The bottom margin size.public final void setOrientation(int orientation)
orientation
- The orientation of legendpublic final void setShowLegend(boolean showLegend)
showLegend
- The new showLegend valuepublic final void setShowCheckboxes(boolean showCheckboxes)
showCheckboxes
- The new showCheckboxes valuepublic final void setShowSeriesMarkers(boolean showSeriesMarkers)
showSeriesMarkers
- The new showSeriesMarkers valuepublic final void setSourceMode(com.scichart.charting.modifiers.SourceMode sourceMode)
SourceMode
value for legendsourceMode
- The new SourceMode
valuepublic void applyThemeProvider(com.scichart.charting.themes.IThemeProvider themeProvider)
applyThemeProvider
in interface com.scichart.charting.themes.IThemeable
applyThemeProvider
in class com.scichart.charting.modifiers.ChartModifierCore
public void attachTo(com.scichart.core.IServiceContainer serviceContainer)
attachTo
in interface com.scichart.core.framework.IAttachable
attachTo
in class ChartModifierBase3D
public void detach()
detach
in interface com.scichart.core.framework.IAttachable
detach
in class ChartModifierBase3D
public void onRenderableSeriesDrasticallyChanged()
onRenderableSeriesDrasticallyChanged
in interface com.scichart.charting.visuals.IRenderableSeriesChangeListener
onRenderableSeriesDrasticallyChanged
in class com.scichart.charting.modifiers.ChartModifierCore
public void onRenderableSeriesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<? extends com.scichart.charting.visuals.renderableSeries.IRenderableSeriesCore> args)
onRenderableSeriesCollectionChanged
in interface com.scichart.charting.visuals.IRenderableSeriesChangeListener
onRenderableSeriesCollectionChanged
in class com.scichart.charting.modifiers.ChartModifierCore
public void updateLegend()
protected boolean isSeriesValid(IRenderableSeries3D series)
SeriesInfo
series
- The renderable series to check