public abstract class ChartElementPresenter extends PresenterBase
Modifier and Type | Method and Description |
---|---|
void |
attach(RadChartViewBase chart)
Attaches the
ChartElementPresenter instance
to an owning RadChartViewBase instance. |
void |
detach()
Detaches the
ChartElementPresenter instance
from the owner. |
boolean |
getCanApplyPalette()
Gets a value that determines if the chart palette should be applied to this presenter.
|
RadChartViewBase |
getChart()
Gets the owning
RadChartViewBase instance
in which this visual element resides. |
int |
getCollectionIndex()
Gets the index of this presenter in its parent
PresenterCollection . |
ChartPalette |
getPalette()
Gets the
ChartPalette instance that defines the appearance of the chart. |
int |
getZIndex()
Gets the Z-index of this series.
|
void |
invalidatePalette()
Invalidates the current
ChartPalette instance
applied to this PresenterBase
and triggers the apply-palette logic. |
void |
onPaletteInvalidated()
Triggered after invalidating the palette. Used to reapply the palette and change the
current invalidation schedule of the palette.
|
void |
onPaletteUpdated(ChartPalette source)
A palette will call this method when it has changed,
so that the listener can update itself.
|
void |
requestLayout() |
void |
requestRender() |
void |
setZIndex(int value)
Sets the Z-index of this series.
|
void |
updatePalette(boolean force)
Triggers the palette to be applied.
|
getPaletteFamily, getPaletteFamilyCore, isLoaded, isPaletteApplied, isVisible, measureContent, paletteFamily, postRender, refreshNode, render, setCanApplyPalette, setPaletteFamily, setVisible, setVisible
getValue, resetPropertyValue, setValue, setValue
public int getZIndex()
public ChartPalette getPalette()
ChartPalette
instance that defines the appearance of the chart.public void onPaletteInvalidated()
public void onPaletteUpdated(ChartPalette source)
PaletteChangedListener
public void invalidatePalette()
ChartPalette
instance
applied to this PresenterBase
and triggers the apply-palette logic.public void updatePalette(boolean force)
force
- if forced the palette will be applied without considering validations.public void requestRender()
requestRender
in class PresenterBase
public void requestLayout()
public void setZIndex(int value)
value
- the Z-index.public int getCollectionIndex()
ChartElementPresenter
PresenterCollection
.PresenterCollection
.public RadChartViewBase getChart()
RadChartViewBase
instance
in which this visual element resides.RadChartViewBase
instance.public void attach(RadChartViewBase chart)
ChartElementPresenter
instance
to an owning RadChartViewBase
instance.chart
- the owner to attach to.public void detach()
ChartElementPresenter
instance
from the owner.public boolean getCanApplyPalette()
PresenterBase
getCanApplyPalette
in class PresenterBase