lt.monarch.chart.engine
Interface Chart<GeneralProjector extends Projector>

All Superinterfaces:
ChartEntity, java.lang.Cloneable, View
All Known Implementing Classes:
AbstractChart, BarChart, BoxWhiskerChart, Chart2D, Chart3D, ControlChart, CpkChart, DotPlotChart, EmptyChart, HistogramChart, LinePlotChart, MultiSeriesChartBase, ParetoChart, ScatterChart, SpcChart

public interface Chart<GeneralProjector extends Projector>
extends View, ChartEntity

Chart view interface. Chart view has several specific entityStyle, which apply only to chart objects. Each chart has an assigned projector and maintains it.


Method Summary
Modifier and Type Method and Description
 void addPlugin(ChartPlugin plugin)
          Registers the plug-in object for this chart.
 LegendEntry[] createLegendEntries()
          Creates a list of legend entries for the chart.
 java.util.Locale getLocale()
          Returns locale of this chart
 boolean isDraftMode()
          Queries, if chart is in draft mode
 GeneralProjector projector()
          Returns the projector for the chart.
 void removePlugin(ChartPlugin plugin)
          Unregisters the plug-in object from this chart.
 void setDraftMode(boolean draft)
          Sets chart in draft mode for faster rendering and lower quality.
 void setLocale(java.util.Locale locale)
          Sets locale for this chart.
 
Methods inherited from interface lt.monarch.chart.engine.View
addViewListener, clone, container, dispose, getAlignmentX, getAlignmentY, getBounds, getContainingObjects, getGraphicsType, getHeight, getMaximumSize, getMinimumSize, getPreferredSize, getSize, getSize, getStyle, getWidth, getX, getY, invalidate, removeViewListener, render, repaint, repaint, setAlignmentX, setAlignmentY, setBounds, setBounds, setContainer, setLocation, setMaximumSize, setMinimumSize, setPreferredSize, setSize, validate
 
Methods inherited from interface lt.monarch.chart.engine.ChartEntity
fillEntitySheet, getDescription, getParentEntity, getShortDescription
 

Method Detail

projector

GeneralProjector projector()
Returns the projector for the chart.

Returns:
projector chart projector

addPlugin

void addPlugin(ChartPlugin plugin)
Registers the plug-in object for this chart. Plug-ins are installed when chart is added to the container.

Parameters:
plugin - plug-in object

removePlugin

void removePlugin(ChartPlugin plugin)
Unregisters the plug-in object from this chart.

Parameters:
plugin - plug-in object

setDraftMode

void setDraftMode(boolean draft)
Sets chart in draft mode for faster rendering and lower quality.

Parameters:
draft - draft mode flag

isDraftMode

boolean isDraftMode()
Queries, if chart is in draft mode

Returns:
true if chart is in draft mode

createLegendEntries

LegendEntry[] createLegendEntries()
Creates a list of legend entries for the chart.

Returns:
array of legend entries

setLocale

void setLocale(java.util.Locale locale)
Sets locale for this chart.

Parameters:
locale - the locale

getLocale

java.util.Locale getLocale()
Returns locale of this chart

Returns:
the locale