lt.monarch.chart.legend.symbols
Class LegendStockSymbol
java.lang.Object
lt.monarch.chart.engine.LegendSymbol
lt.monarch.chart.legend.symbols.LegendStockSymbol
- All Implemented Interfaces:
- java.io.Serializable
public class LegendStockSymbol
extends LegendSymbol
- See Also:
- Serialized Form
Constructor Summary
LegendStockSymbol(java.lang.String tag,
Style style,
int orientation)
Constructs a new LegendStockSymbol object. |
LegendStockSymbol(Style style,
int orientation)
Constructs a new LegendStockSymbol object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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 styleorientation - orientation of series (ORIENTATION_UP, ORIENTATION_DOWN,
ORIENTATION_UP_DOWN)
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 contextlegendStyle - legend stylesheet for common attributes, such a box symbol borderbounds - symbol boundspaintMode - paint mode