com.odesys.chart.linechart
Class LineLegendItem

java.lang.Object
  |
  +--com.odesys.chart.LegendItem
        |
        +--com.odesys.chart.linechart.LineLegendItem

public class LineLegendItem
extends LegendItem

LineLegendItem extends LegendItem to provide the Line Chart specific Symbols needed to show the line style in the Legend.


Constructor Summary
LineLegendItem(LegendView view, Line line)
          Creates a new LineLegendItem instance for the specified LegendView and Line.
 
Method Summary
 void drawSymbol(java.awt.Graphics g, java.awt.Rectangle symbolRect)
          Draws the symbol of this LineLegendItem depending on the style of the Line associated with this LineLegendItem.
 
Methods inherited from class com.odesys.chart.LegendItem
getSize, paint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineLegendItem

public LineLegendItem(LegendView view,
                      Line line)
Creates a new LineLegendItem instance for the specified LegendView and Line.
Method Detail

drawSymbol

public void drawSymbol(java.awt.Graphics g,
                       java.awt.Rectangle symbolRect)
Draws the symbol of this LineLegendItem depending on the style of the Line associated with this LineLegendItem.
Overrides:
drawSymbol in class LegendItem