lt.monarch.chart.plugins
Class MarkerPainter

java.lang.Object
  extended by lt.monarch.chart.plugins.AbstractChartPlugin<AbstractChart<?,?>>
      extended by lt.monarch.chart.plugins.MarkerPainter
All Implemented Interfaces:
java.io.Serializable, ChartPlugin<AbstractChart<?,?>>

public class MarkerPainter
extends AbstractChartPlugin<AbstractChart<?,?>>

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
protected  LabelLayouter layouter
          Marker label layouter.
protected  java.util.List<MarkerDecorableSeries<?,?>> markerDecoratedSeries
          array of registered marker decorated series.
 
Constructor Summary
Constructor and Description
MarkerPainter()
           
 
Method Summary
Modifier and Type Method and Description
 void activate()
          Prepares the plug-in, when it is installed.
 void addMarkerDecorableSeries(MarkerDecorableSeries<?,?> series)
          Adds series to marker decorated series array.
 void deactivate()
          Cleanups the plug-in, when it is uninstalled.
protected  void draw(AbstractGraphics g)
           
protected  java.util.ArrayList<java.util.ArrayList<MarkerConstraints>> getMarkerConstraints(MarkerDecorableSeries series)
           
 java.util.List<MarkerDecorableSeries<?,?>> getMarkerDecorableSeriesList()
          Returns list with registered MarkerDecorableSeries series objects
 void paint(AbstractGraphics g)
          Does nothing- must be overridden in extending classes.
 boolean removeMarkerDecorableSeries(MarkerDecorableSeries<?,?> series)
          Removes series from registered marker decorated series array.
 void setLabelLayouter(LabelLayouter layouter)
          Sets label layouter for labeled markers.
 
Methods inherited from class lt.monarch.chart.plugins.AbstractChartPlugin
adjustChart, chart, getChart, install, isActivated, uninstall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

markerDecoratedSeries

protected java.util.List<MarkerDecorableSeries<?,?>> markerDecoratedSeries
array of registered marker decorated series.


layouter

protected LabelLayouter layouter
Marker label layouter.

Constructor Detail

MarkerPainter

public MarkerPainter()
Method Detail

activate

public void activate()
Description copied from class: AbstractChartPlugin
Prepares the plug-in, when it is installed. Also called when chart is activated.

Specified by:
activate in class AbstractChartPlugin<AbstractChart<?,?>>

deactivate

public void deactivate()
Description copied from class: AbstractChartPlugin
Cleanups the plug-in, when it is uninstalled. Also called when chart is deactivated.

Specified by:
deactivate in class AbstractChartPlugin<AbstractChart<?,?>>

paint

public void paint(AbstractGraphics g)
Description copied from class: AbstractChartPlugin
Does nothing- must be overridden in extending classes.

Specified by:
paint in interface ChartPlugin<AbstractChart<?,?>>
Overrides:
paint in class AbstractChartPlugin<AbstractChart<?,?>>
Parameters:
g - the Graphics context in which chart is painted
See Also:
ChartPlugin.paint(lt.monarch.chart.engine.AbstractGraphics)

draw

protected void draw(AbstractGraphics g)

getMarkerConstraints

protected java.util.ArrayList<java.util.ArrayList<MarkerConstraints>> getMarkerConstraints(MarkerDecorableSeries series)

addMarkerDecorableSeries

public void addMarkerDecorableSeries(MarkerDecorableSeries<?,?> series)
Adds series to marker decorated series array.

Parameters:
series - Series that has to be registered in marker decorated series array.

removeMarkerDecorableSeries

public boolean removeMarkerDecorableSeries(MarkerDecorableSeries<?,?> series)
Removes series from registered marker decorated series array.

Parameters:
series - Series that has to be removed from registered series array.
Returns:
true if the list contained the specified element.

getMarkerDecorableSeriesList

public java.util.List<MarkerDecorableSeries<?,?>> getMarkerDecorableSeriesList()
Returns list with registered MarkerDecorableSeries series objects

Returns:

setLabelLayouter

public void setLabelLayouter(LabelLayouter layouter)
Sets label layouter for labeled markers.

Parameters:
layouter - AbstractLabel layouter.