lt.monarch.chart.legend.symbols
Class LegendMarkerSymbol

java.lang.Object
  extended by lt.monarch.chart.engine.LegendSymbol
      extended by lt.monarch.chart.legend.symbols.LegendMarkerSymbol
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
LegendLineSymbol

public class LegendMarkerSymbol
extends LegendSymbol

Legend symbol to refer to the scatter series. Draws just the marker.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
protected  AbstractMarker marker
          Marker to paint
 
Fields inherited from class lt.monarch.chart.engine.LegendSymbol
paintStyle
 
Constructor Summary
Constructor and Description
LegendMarkerSymbol()
          Constructs a new symbol.
LegendMarkerSymbol(AbstractMarker marker)
          Constructs a new symbol with the given marker.
 
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

marker

protected AbstractMarker marker
Marker to paint

Constructor Detail

LegendMarkerSymbol

public LegendMarkerSymbol()
Constructs a new symbol.


LegendMarkerSymbol

public LegendMarkerSymbol(AbstractMarker marker)
Constructs a new symbol with the given marker.

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:
this symbols's preferred height

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