|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.plugins.AbstractChartPlugin<ChartType>
public abstract class AbstractChartPlugin<ChartType extends Chart<?>> extends java.lang.Object implements ChartPlugin<ChartType>, java.io.Serializable
Base implementation of ChartPlugin
ChartPlugin,
Serialized Form| Constructor and Description |
|---|
AbstractChartPlugin()
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
activate()
Prepares the plug-in, when it is installed. |
void |
adjustChart()
Performs chart objects modifications. |
protected ChartType |
chart()
Deprecated. use getChart() |
abstract void |
deactivate()
Cleanups the plug-in, when it is uninstalled. |
protected ChartType |
getChart()
Returns hosting chart. |
void |
install(ChartType chart)
Prepares this plug-in for operation on the specified chart. |
boolean |
isActivated()
Checks if the plug-in is activated |
void |
paint(AbstractGraphics g)
Does nothing- must be overridden in extending classes. |
void |
uninstall(ChartType chart)
Shuts down the plug-in by removing it from the chart. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractChartPlugin()
| Method Detail |
|---|
public void install(ChartType chart)
activate and deactivate methods are called respectively.
install in interface ChartPlugin<ChartType extends Chart<?>>chart - hosting chartpublic void uninstall(ChartType chart)
uninstall in interface ChartPlugin<ChartType extends Chart<?>>chart - hosting chart@Deprecated protected ChartType chart()
protected ChartType getChart()
public void paint(AbstractGraphics g)
paint in interface ChartPlugin<ChartType extends Chart<?>>g - the Graphics context in which chart is paintedChartPlugin.paint(lt.monarch.chart.engine.AbstractGraphics)public void adjustChart()
ChartPlugin
adjustChart in interface ChartPlugin<ChartType extends Chart<?>>public boolean isActivated()
ChartPlugin
isActivated in interface ChartPlugin<ChartType extends Chart<?>>public abstract void activate()
public abstract void deactivate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||