|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.AbstractView<PaintTags>
lt.monarch.chart.AbstractChart<PaintTags,GeneralProjector>
public abstract class AbstractChart<PaintTags extends AbstractPaintTags,GeneralProjector extends Projector> extends AbstractView<PaintTags> implements Chart<GeneralProjector>
Default implementation of most utility methods of a Chart
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
draftMode
Specifies whether chart is in draft mode; the default is false. |
protected java.util.Locale |
locale
Specifies a locale for this chart. |
protected java.util.List<ChartPlugin<?>> |
plugins
Chart plug-in list |
| Fields inherited from class lt.monarch.chart.AbstractView |
|---|
layoutInvalid, paintStyle, style |
| Constructor and Description |
|---|
AbstractChart()
Sole constructor. |
| Modifier and Type | Method and Description |
|---|---|
void |
addPlugin(ChartPlugin plugin)
Adds and installs the specified chart plug-in to this chart. |
protected void |
deactivate()
Deactivates this chart. |
void |
disableDrafMode()
|
void |
dispose()
Cleans this chart object. |
void |
enableDraftMode()
|
void |
fillEntitySheet(java.util.Properties id)
Dummy ChartEntity interface fillEntitySheet method implementation. |
protected void |
finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
java.lang.String |
getDescription()
Dummy ChartEntity interface's getDescription method implementation. |
java.util.Locale |
getLocale()
Returns the Locale of this chart. |
ChartEntity |
getParentEntity()
Dummy ChartEntity interface's getParentEntity method implementation. |
java.util.List<ChartPlugin<?>> |
getPlugins()
Gets the plug-in list |
java.lang.String |
getShortDescription()
Dummy ChartEntity interface's getShortDescription method implementation. |
void |
invalidate()
Invalidates the view. |
boolean |
isDraftMode()
Returns true if the chart is in a draft mode. |
protected void |
layout(AbstractGraphics g)
Prepares a chart projector. |
protected void |
paint(AbstractGraphics g)
Paints a chart background, chart contents and calls paint method for all chart plug-ins. |
protected abstract void |
paintChart(AbstractGraphics g)
Paint chart contents. |
void |
removePlugin(ChartPlugin plugin)
Uninstalls and removes the chart plug-in from this chart. |
void |
removePlugins(java.lang.Class<?> pluginType)
Uninstalls and removes the chart plug-ins from this chart. |
void |
setDraftMode(boolean draft)
Sets/unsets draft mode. |
void |
setLocale(java.util.Locale locale)
Sets locale for this chart. |
| Methods inherited from class lt.monarch.chart.AbstractView |
|---|
activate, addViewListener, clone, container, getAlignmentX, getAlignmentY, getBounds, getChartObjectBounds, getContainer, getGraphicsType, getHeight, getMaximumSize, getMinimumSize, getPaintMode, getPaintStyle, getParent, getPreferredSize, getSize, getSize, getStyle, getStyle, getWidth, getX, getY, isLayoutValid, removeViewListener, render, repaint, repaint, setAlignmentX, setAlignmentY, setBounds, setBounds, setContainer, setLocation, setMaximumSize, setMinimumSize, setPaintMode, setPreferredSize, setSize, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface lt.monarch.chart.engine.Chart |
|---|
createLegendEntries, projector |
| Methods inherited from interface lt.monarch.chart.engine.View |
|---|
addViewListener, clone, container, getAlignmentX, getAlignmentY, getBounds, getContainingObjects, getGraphicsType, getHeight, getMaximumSize, getMinimumSize, getPreferredSize, getSize, getSize, getStyle, getWidth, getX, getY, removeViewListener, render, repaint, repaint, setAlignmentX, setAlignmentY, setBounds, setBounds, setContainer, setLocation, setMaximumSize, setMinimumSize, setPreferredSize, setSize, validate |
| Field Detail |
|---|
protected final java.util.List<ChartPlugin<?>> plugins
protected boolean draftMode
protected java.util.Locale locale
| Constructor Detail |
|---|
public AbstractChart()
| Method Detail |
|---|
protected abstract void paintChart(AbstractGraphics g)
g - Graphics contextpublic void setDraftMode(boolean draft)
setDraftMode in interface Chart<GeneralProjector extends Projector>draft - true, if chart is in draft mode; false otherwise.public boolean isDraftMode()
isDraftMode in interface Chart<GeneralProjector extends Projector>public void addPlugin(ChartPlugin plugin)
addPlugin in interface Chart<GeneralProjector extends Projector>plugin - the chart plug-inChartPluginpublic void removePlugin(ChartPlugin plugin)
removePlugin in interface Chart<GeneralProjector extends Projector>plugin - the chart plug-in.ChartPluginpublic void removePlugins(java.lang.Class<?> pluginType)
pluginType - the chart plug-in type.ChartPluginprotected void layout(AbstractGraphics g)
layout in class AbstractView<PaintTags extends AbstractPaintTags>g - the Graphics context in which a chart will be paintedpublic void invalidate()
AbstractView
invalidate in interface Viewinvalidate in class AbstractView<PaintTags extends AbstractPaintTags>protected final void paint(AbstractGraphics g)
paint method for all chart plug-ins.
paint in class AbstractView<PaintTags extends AbstractPaintTags>g - the Graphics context in which to paint chartprotected void deactivate()
deactivate method of super class is called and this chart is cleared
from HotSpotMap.
deactivate in class AbstractView<PaintTags extends AbstractPaintTags>AbstractView.deactivate(),
HotSpotMappublic java.lang.String getDescription()
ChartEntity interface's getDescription method implementation.
getDescription in interface ChartEntityChartEntity.getDescription()public java.lang.String getShortDescription()
ChartEntity interface's getShortDescription method implementation.
getShortDescription in interface ChartEntityChartEntity.getShortDescription()public ChartEntity getParentEntity()
ChartEntity interface's getParentEntity method implementation.
getParentEntity in interface ChartEntityChartEntity.getParentEntity()public void fillEntitySheet(java.util.Properties id)
ChartEntity interface fillEntitySheet method implementation.
fillEntitySheet in interface ChartEntityid - property sheetpublic void setLocale(java.util.Locale locale)
setLocale in interface Chart<GeneralProjector extends Projector>locale - the localepublic java.util.Locale getLocale()
getLocale in interface Chart<GeneralProjector extends Projector>public void dispose()
dispose in interface Viewdispose in class AbstractView<PaintTags extends AbstractPaintTags>
protected void finalize()
throws java.lang.Throwable
cleanup method if it isn't called yet.
finalize in class AbstractView<PaintTags extends AbstractPaintTags>java.lang.Throwable - the Exception raised by this methodpublic java.util.List<ChartPlugin<?>> getPlugins()
public void enableDraftMode()
public void disableDrafMode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||