|
|||||||||
| 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>
lt.monarch.chart.MultiSeriesChartBase<PaintTags,GeneralProjector>
public abstract class MultiSeriesChartBase<PaintTags extends AbstractPaintTags,GeneralProjector extends Projector> extends AbstractChart<PaintTags,GeneralProjector>
Default implementation of the chart, which manages several chart series.
| Modifier and Type | Field and Description |
|---|
| Fields inherited from class lt.monarch.chart.AbstractChart |
|---|
draftMode, locale, plugins |
| Fields inherited from class lt.monarch.chart.AbstractView |
|---|
layoutInvalid, paintStyle, style |
| Constructor and Description |
|---|
MultiSeriesChartBase()
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Activates this chart. |
void |
addObject(ChartObject obj)
Adds the specified chart object to the chart at run-time. |
LegendEntry[] |
createLegendEntries()
Creates a list of legend entries for the chart. |
void |
deactivate()
Deactivates this chart. |
void |
dispose()
Cleans this chart object. |
protected void |
finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
ChartObject |
findObject(java.lang.Class<?> type)
Deprecated. |
java.util.List<ChartObject> |
getContainingObjects()
Returns all contianing chart objects |
ChartObject[] |
getObjects()
Returns an array of chart objects to be painted in the chart. |
protected void |
layout(AbstractGraphics g)
Layouts the chart. |
protected void |
layoutObjects(AbstractGraphics g)
Layouts chart objects. |
protected void |
paintChart(AbstractGraphics g)
Paints the chart. |
void |
removeObject(ChartObject obj)
Removes the specified chart object from the chart at run-time. |
void |
replaceObject(ChartObject oldObject,
ChartObject newObject)
Replaces one chart object with another (keeping position). |
void |
reset()
Removes all chart objects from the chart |
void |
setObjects(ChartObject[] objs)
Sets an array of chart objects to be painted in the chart. |
void |
shiftObjects(ChartObject o1,
ChartObject o2)
Shifts order of given objects in chart. |
| Methods inherited from class lt.monarch.chart.AbstractChart |
|---|
addPlugin, disableDrafMode, enableDraftMode, fillEntitySheet, getDescription, getLocale, getParentEntity, getPlugins, getShortDescription, invalidate, isDraftMode, paint, removePlugin, removePlugins, setDraftMode, setLocale |
| Methods inherited from class lt.monarch.chart.AbstractView |
|---|
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 |
|---|
projector |
| Methods inherited from interface lt.monarch.chart.engine.View |
|---|
addViewListener, clone, container, getAlignmentX, getAlignmentY, getBounds, 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 |
| Constructor Detail |
|---|
public MultiSeriesChartBase()
| Method Detail |
|---|
public LegendEntry[] createLegendEntries()
public void setObjects(ChartObject[] objs)
objs - an array of chart objectspublic void addObject(ChartObject obj)
obj - the chart objectpublic void removeObject(ChartObject obj)
obj - the chart object
public void replaceObject(ChartObject oldObject,
ChartObject newObject)
oldObject - the chart object to removenewObject - the chart object to add in place of removed one
public void shiftObjects(ChartObject o1,
ChartObject o2)
o1 - first objecto2 - second objectpublic ChartObject[] getObjects()
public void reset()
public void deactivate()
deactivate method of super class is called and parent
chart to all containing chart objects is set to null.
deactivate in class AbstractChart<PaintTags extends AbstractPaintTags,GeneralProjector extends Projector>AbstractView.deactivate(),
HotSpotMappublic void activate()
activate method of super class is called and parent
chart to all containing chart objects is set to this.
activate in class AbstractView<PaintTags extends AbstractPaintTags>protected void layout(AbstractGraphics g)
layout method of super class and all chart objects are
called.
layout in class AbstractChart<PaintTags extends AbstractPaintTags,GeneralProjector extends Projector>g - the Graphics context in which chart will be paintedprotected void layoutObjects(AbstractGraphics g)
layout method for all chart objects is called.
g - the Graphics context in which chart will be paintedprotected void paintChart(AbstractGraphics g)
layout methods for AbstractBarSeries
are called. Layout method itself is not static, but bar and series spacing access methods are
static. All chart objects are drawn.
paintChart in class AbstractChart<PaintTags extends AbstractPaintTags,GeneralProjector extends Projector>g - the Graphics context in which chart will be paintedAbstractBarSeries.layout(int, int)public void dispose()
dispose in interface Viewdispose in class AbstractChart<PaintTags extends AbstractPaintTags,GeneralProjector extends Projector>
protected void finalize()
throws java.lang.Throwable
cleanup method if it isn't called
yet.
finalize in class AbstractChart<PaintTags extends AbstractPaintTags,GeneralProjector extends Projector>java.lang.Throwable - the Exception raised by this method@Deprecated public ChartObject findObject(java.lang.Class<?> type)
public java.util.List<ChartObject> getContainingObjects()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||