lt.monarch.chart.legend.symbols
Class Legend3DVectorSymbol

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

public class Legend3DVectorSymbol
extends LegendSymbol

Legend symbol to refer to the vector series. Draws a line with an arrow at the end.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.engine.LegendSymbol
paintStyle
 
Constructor Summary
Constructor and Description
Legend3DVectorSymbol(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.
 
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
 

Constructor Detail

Legend3DVectorSymbol

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

Parameters:
style - style
Method Detail

draw

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

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

getPreferredHeight

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

Specified by:
getPreferredHeight in class LegendSymbol
Parameters:
g - graphics context for which the preferred height is to be calculated
Returns:
preferred height of the symbol

getPreferredWidth

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

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