lt.monarch.chart.engine
Class SimpleChartEntity

java.lang.Object
  extended by lt.monarch.chart.engine.SimpleChartEntity
All Implemented Interfaces:
ChartEntity
Direct Known Subclasses:
NoDataPainter

public class SimpleChartEntity
extends java.lang.Object
implements ChartEntity

Default simple implementation of the ChartEntity interface.


Constructor Summary
Constructor and Description
SimpleChartEntity()
          Constructs a new SimpleChartEntity with the null strings as description, short description and null parent entity.
SimpleChartEntity(java.lang.String description)
          Constructs a new SimpleChartEntity with the specified description, null string as short description and null parent entity.
SimpleChartEntity(java.lang.String description, ChartEntity parentEntity)
          Constructs a new SimpleChartEntity with the specified description, parent entity and null string as short description.
SimpleChartEntity(java.lang.String description, java.lang.String shortDescription, ChartEntity parentEntity)
          Constructs a new SimpleChartEntity with the specified description, short description and parent entity.
 
Method Summary
Modifier and Type Method and Description
 void fillEntitySheet(java.util.Properties id)
          Fills in the property sheet of the entity.
 java.lang.String getDescription()
          Returns a description of the chart entity.
 ChartEntity getParentEntity()
          Returns the parent chart entity.
 java.lang.String getShortDescription()
          Returns a short description of the chart entity.
 void setDescription(java.lang.String description)
          Sets the description for the entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleChartEntity

public SimpleChartEntity()
Constructs a new SimpleChartEntity with the null strings as description, short description and null parent entity.


SimpleChartEntity

public SimpleChartEntity(java.lang.String description)
Constructs a new SimpleChartEntity with the specified description, null string as short description and null parent entity.

Parameters:
description - the entity description

SimpleChartEntity

public SimpleChartEntity(java.lang.String description,
                         ChartEntity parentEntity)
Constructs a new SimpleChartEntity with the specified description, parent entity and null string as short description.

Parameters:
description - the entity description
parentEntity - the parent entity

SimpleChartEntity

public SimpleChartEntity(java.lang.String description,
                         java.lang.String shortDescription,
                         ChartEntity parentEntity)
Constructs a new SimpleChartEntity with the specified description, short description and parent entity.

Parameters:
description - the entity description
shortDescription - the short entity description
parentEntity - the parent entity
Method Detail

fillEntitySheet

public void fillEntitySheet(java.util.Properties id)
Fills in the property sheet of the entity. Puts a "description" property into the property sheet. The value of the property is a description of the entity.

Specified by:
fillEntitySheet in interface ChartEntity
Parameters:
id - the property sheet
See Also:
ChartEntity.fillEntitySheet(java.util.Properties)

setDescription

public void setDescription(java.lang.String description)
Sets the description for the entity.

Parameters:
description - the description of the entity

getDescription

public java.lang.String getDescription()
Returns a description of the chart entity.

Specified by:
getDescription in interface ChartEntity
Returns:
description of the chart entity
See Also:
ChartEntity.getDescription()

getParentEntity

public ChartEntity getParentEntity()
Returns the parent chart entity.

Specified by:
getParentEntity in interface ChartEntity
Returns:
the parent chart entity
See Also:
ChartEntity.getParentEntity()

getShortDescription

public java.lang.String getShortDescription()
Returns a short description of the chart entity.

Specified by:
getShortDescription in interface ChartEntity
Returns:
short description of the chart entity
See Also:
ChartEntity.getShortDescription()