lt.monarch.chart.legend.symbols
Class Legend3DVectorSymbol
java.lang.Object
lt.monarch.chart.engine.LegendSymbol
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Legend3DVectorSymbol
public Legend3DVectorSymbol(Style style)
- Constructs a new symbol with explicit style.
- Parameters:
style - style
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
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