lt.monarch.chart.legend.symbols
Class NullLegendSymbol

java.lang.Object
  extended by lt.monarch.chart.engine.LegendSymbol
      extended by lt.monarch.chart.legend.symbols.NullLegendSymbol
All Implemented Interfaces:
java.io.Serializable

public class NullLegendSymbol
extends LegendSymbol

Empty legend symbol renderer.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.engine.LegendSymbol
paintStyle
 
Constructor Summary
Constructor and Description
NullLegendSymbol()
           
 
Method Summary
Modifier and Type Method and Description
 void draw(AbstractGraphics g, Style style, 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
 

Constructor Detail

NullLegendSymbol

public NullLegendSymbol()
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:
0

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:
0

draw

public void draw(AbstractGraphics g,
                 Style style,
                 Rectangle2D bounds,
                 PaintMode paintMode)
Description copied from class: LegendSymbol
Renders the symbol.

Specified by:
draw in class LegendSymbol
Parameters:
g - graphics context
style - legend stylesheet for common attributes, such a box symbol border
bounds - symbol bounds
paintMode - paint mode