lt.monarch.chart.legend.symbols
Class LegendPieSymbol
java.lang.Object
lt.monarch.chart.engine.LegendSymbol
lt.monarch.chart.legend.symbols.LegendBoxSymbol
lt.monarch.chart.legend.symbols.LegendPieSymbol
- All Implemented Interfaces:
- java.io.Serializable
public class LegendPieSymbol
extends LegendBoxSymbol
Legend symbol to refer to the filled series. Draws a box, filled with the specified color.
- See Also:
- Serialized Form
Constructor Summary
LegendPieSymbol(java.awt.Color color)
Constructs a new symbol with explicit color constants. |
LegendPieSymbol(Style style)
Constructs a new symbol from a stylesheet. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LegendPieSymbol
public LegendPieSymbol(Style style)
- Constructs a new symbol from a stylesheet. Uses the background property to set background color.
- Parameters:
style - stylesheet style sheet to set
LegendPieSymbol
public LegendPieSymbol(java.awt.Color color)
- Constructs a new symbol with explicit color constants.
- Parameters:
color - toFill color
setStyle
public void setStyle(Style style)
- Sets style of symbol
- Parameters:
style - of symbol
draw
public void draw(AbstractGraphics g,
Style style,
Rectangle2D bounds,
PaintMode paintMode)
- Description copied from class:
LegendSymbol
- Renders the symbol.
- Overrides:
draw in class LegendBoxSymbol
- Parameters:
g - graphics contextstyle - legend stylesheet for common attributes, such a box symbol borderbounds - symbol boundspaintMode - paint mode