public abstract class PresenterBase extends PropertyManager implements ChartElementPresenter, PaletteChangedListener
FrameLayout
base for displaying widget elements.ChartElementPresenter
Modifier and Type | Method and Description |
---|---|
boolean |
getCanApplyPalette()
Gets a value that determines if the chart palette should be applied to this presenter.
|
String |
getPaletteFamily()
Returns the palette family of this
PresenterBase . |
String |
getPaletteFamilyCore()
Returns the palette family of this
PresenterBase . |
boolean |
isLoaded()
Returns
true if the current presenter was loaded and false otherwise. |
boolean |
isPaletteApplied() |
boolean |
isVisible() |
RadSize |
measureContent(ChartNode owner,
Object content)
Retrieves the desired size of the specified logical node's content.
|
String |
paletteFamily()
Deprecated.
|
void |
postRender(Canvas canvas)
Used as second layer for rendering the current presenter instance onto the passed canvas object.
|
void |
refreshNode(ChartNode node)
Invalidates the visual representation of the specified logical node.
|
void |
render(Canvas canvas)
Used to render the current presenter instance onto the passed canvas object.
|
abstract void |
requestRender() |
void |
setCanApplyPalette(boolean value)
Sets a value that determines if the chart palette should be applied to this presenter.
|
void |
setPaletteFamily(String value) |
void |
setVisible(boolean visible) |
void |
setVisible(boolean visible,
boolean requestRender) |
getValue, resetPropertyValue, setValue, setValue
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCollectionIndex, invalidatePalette
onPaletteUpdated
public boolean isPaletteApplied()
public boolean isVisible()
public void setVisible(boolean visible)
public void setVisible(boolean visible, boolean requestRender)
public abstract void requestRender()
public void render(Canvas canvas)
canvas
- the canvas onto which the presenter is to be rendered.public void postRender(Canvas canvas)
canvas
- the canvas onto which the presenter is to be rendered.public boolean isLoaded()
true
if the current presenter was loaded and false
otherwise.public void refreshNode(ChartNode node)
ChartElementPresenter
refreshNode
in interface ChartElementPresenter
node
- the node to be refreshed.public RadSize measureContent(ChartNode owner, Object content)
ChartElementPresenter
measureContent
in interface ChartElementPresenter
owner
- node that holds the content.content
- content of the node.@Deprecated public String paletteFamily()
PresenterBase
.
The family is used to resolve the right palette resources for this presenter when a ChartPalette
is applied
to this presenter.public String getPaletteFamilyCore()
PresenterBase
.
The family is used to resolve the right palette resources for this presenter when a ChartPalette
is applied
to this presenter.public String getPaletteFamily()
PresenterBase
.
The family is used to resolve the right palette resources for this presenter when a ChartPalette
is applied
to this presenter.public void setPaletteFamily(String value)
public boolean getCanApplyPalette()
public void setCanApplyPalette(boolean value)