lt.monarch.chart.legend.symbols
Class LegendLineSymbol

java.lang.Object
  extended by lt.monarch.chart.engine.LegendSymbol
      extended by lt.monarch.chart.legend.symbols.LegendMarkerSymbol
          extended by lt.monarch.chart.legend.symbols.LegendLineSymbol
All Implemented Interfaces:
java.io.Serializable

public class LegendLineSymbol
extends LegendMarkerSymbol

Legend symbol to refer to the outlined series. Draws a line with an optional marker on it.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
protected  boolean connected
           
 
Fields inherited from class lt.monarch.chart.legend.symbols.LegendMarkerSymbol
marker
 
Fields inherited from class lt.monarch.chart.engine.LegendSymbol
paintStyle
 
Constructor Summary
Constructor and Description
LegendLineSymbol(Style style)
          Constructs a new symbol with explicit style.
 
Method Summary
Modifier and Type Method and Description
 void draw(AbstractGraphics g, Style legendStyle, Rectangle2D bounds, PaintMode paintMode)
          Renders the symbol.
 int getPreferredHeight(AbstractGraphics g)
          Gets the preferred height of this legend symbol.
 int getPreferredWidth(AbstractGraphics g)
          Gets the preferred width of this legend symbol.
 boolean isConnected()
          Is the data points connected with line
 void setConnected(boolean connected)
          Sets if the data points are connected with line
 
Methods inherited from class lt.monarch.chart.engine.LegendSymbol
getReferencedEntity, setReferencedEntity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connected

protected boolean connected
Constructor Detail

LegendLineSymbol

public LegendLineSymbol(Style style)
Constructs a new symbol with explicit style.

Parameters:
style - style
Method Detail

getPreferredHeight

public int getPreferredHeight(AbstractGraphics g)
Gets the preferred height of this legend symbol.

Overrides:
getPreferredHeight in class LegendMarkerSymbol
Parameters:
g - graphics context for which the preferred height is to be calculated
Returns:
this symbols's preferred height

getPreferredWidth

public int getPreferredWidth(AbstractGraphics g)
Gets the preferred width of this legend symbol.

Overrides:
getPreferredWidth in class LegendMarkerSymbol
Parameters:
g - graphics context for which the preferred width is to be calculated
Returns:
this symbols's preferred width

draw

public void draw(AbstractGraphics g,
                 Style legendStyle,
                 Rectangle2D bounds,
                 PaintMode paintMode)
Description copied from class: LegendSymbol
Renders the symbol.

Overrides:
draw in class LegendMarkerSymbol
Parameters:
g - graphics context
legendStyle - legend stylesheet for common attributes, such a box symbol border
bounds - symbol bounds
paintMode - paint mode

isConnected

public boolean isConnected()
Is the data points connected with line

Returns:
true if connected

setConnected

public void setConnected(boolean connected)
Sets if the data points are connected with line

Parameters:
connected - true if data points are connected