lt.monarch.chart.legend.symbols
Class LegendPieSymbol

java.lang.Object
  extended by lt.monarch.chart.engine.LegendSymbol
      extended by lt.monarch.chart.legend.symbols.LegendBoxSymbol
          extended by 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

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.legend.symbols.LegendBoxSymbol
paintMode, style
 
Fields inherited from class lt.monarch.chart.engine.LegendSymbol
paintStyle
 
Constructor Summary
Constructor and Description
LegendPieSymbol(java.awt.Color color)
          Constructs a new symbol with explicit color constants.
LegendPieSymbol(Style style)
          Constructs a new symbol from a stylesheet.
 
Method Summary
Modifier and Type Method and Description
 void draw(AbstractGraphics g, Style style, Rectangle2D bounds, PaintMode paintMode)
          Renders the symbol.
 void setStyle(Style style)
          Sets style of symbol
 
Methods inherited from class lt.monarch.chart.legend.symbols.LegendBoxSymbol
getPreferredHeight, getPreferredWidth, getStyle
 
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

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
Method Detail

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 context
style - legend stylesheet for common attributes, such a box symbol border
bounds - symbol bounds
paintMode - paint mode