lt.monarch.chart.legend.symbols
Class LegendStockSymbol

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

public class LegendStockSymbol
extends LegendSymbol

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
static int ORIENTATION_DOWN
           
static int ORIENTATION_UP
           
static int ORIENTATION_UP_DOWN
           
 
Fields inherited from class lt.monarch.chart.engine.LegendSymbol
paintStyle
 
Constructor Summary
Constructor and Description
LegendStockSymbol(java.lang.String tag, Style style, int orientation)
          Constructs a new LegendStockSymbol object.
LegendStockSymbol(Style style, int orientation)
          Constructs a new LegendStockSymbol object.
 
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
 

Field Detail

ORIENTATION_UP_DOWN

public static final int ORIENTATION_UP_DOWN
See Also:
Constant Field Values

ORIENTATION_UP

public static final int ORIENTATION_UP
See Also:
Constant Field Values

ORIENTATION_DOWN

public static final int ORIENTATION_DOWN
See Also:
Constant Field Values
Constructor Detail

LegendStockSymbol

public LegendStockSymbol(Style style,
                         int orientation)
Constructs a new LegendStockSymbol object.

Parameters:
style - bar style

LegendStockSymbol

public LegendStockSymbol(java.lang.String tag,
                         Style style,
                         int orientation)
Constructs a new LegendStockSymbol object.

Parameters:
tag -
style - bar style
orientation - orientation of series (ORIENTATION_UP, ORIENTATION_DOWN, ORIENTATION_UP_DOWN)
Method Detail

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

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