lt.monarch.chart.engine
Class LegendEntry

java.lang.Object
  extended by lt.monarch.chart.engine.LegendEntry
All Implemented Interfaces:
java.io.Serializable

public class LegendEntry
extends java.lang.Object
implements java.io.Serializable

Legend entry. Binds legend symbol to a text label.

See Also:
Serialized Form

Constructor Summary
Constructor and Description
LegendEntry(java.lang.String label, LegendSymbol symbol)
          Constructs a new LegendEntry with the specified text label and legend symbol.
LegendEntry(java.lang.String startlabel, java.lang.String endLabel, LegendSymbol symbol)
          Constructs a new LegendEntry with the specified text labels and legend symbol.
 
Method Summary
Modifier and Type Method and Description
 java.lang.String getEndLabel()
          Gets the text label of the legend entry range end (used for ColorScaleLegend.
 java.lang.String getLabel()
          Gets the text label of the legend entry.
 ChartEntity getReferencedEntity()
          Gets the chart entity referenced by the legend symbol.
 LegendSymbol getSymbol()
          Gets the legend symbol of the legend entry.
 void setLabel(java.lang.String label)
          Sets the specified text label to the legend entry.
 void setReferencedEntity(ChartEntity referencedEntity)
          Sets the referenced chart entity for the legend symbol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegendEntry

public LegendEntry(java.lang.String label,
                   LegendSymbol symbol)
Constructs a new LegendEntry with the specified text label and legend symbol.

Parameters:
label - the label of legend entry
symbol - the symbol of legend entry

LegendEntry

public LegendEntry(java.lang.String startlabel,
                   java.lang.String endLabel,
                   LegendSymbol symbol)
Constructs a new LegendEntry with the specified text labels and legend symbol.

Parameters:
startlabel - the start label of legend entry
endLabel - the end label of legend entry
symbol - the symbol of legend entry
Method Detail

setLabel

public void setLabel(java.lang.String label)
Sets the specified text label to the legend entry.

Parameters:
label - the label

getLabel

public java.lang.String getLabel()
Gets the text label of the legend entry.

Returns:
the label

getEndLabel

public java.lang.String getEndLabel()
Gets the text label of the legend entry range end (used for ColorScaleLegend.

Returns:
the end label

getSymbol

public LegendSymbol getSymbol()
Gets the legend symbol of the legend entry.

Returns:
legend symbol of the legend entry

setReferencedEntity

public void setReferencedEntity(ChartEntity referencedEntity)
Sets the referenced chart entity for the legend symbol.

Parameters:
referencedEntity - the referenced chart entity

getReferencedEntity

public ChartEntity getReferencedEntity()
Gets the chart entity referenced by the legend symbol.

Returns:
the chart entity referenced by the legend symbol