lt.monarch.chart.engine
Class NullHotSpotMap

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

public class NullHotSpotMap
extends HotSpotMap

Dummy HotSpotMap, which does not store any information.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
static NullHotSpotMap instance
          instance of NullHotSpotMap
 
Constructor Summary
Constructor and Description
NullHotSpotMap()
           
 
Method Summary
Modifier and Type Method and Description
 void clear()
          Does nothing.
 void clearEntity(ChartEntity entity)
          Does nothing.
 java.awt.Shape getEntityShape(ChartEntity chartEntity)
          Returns the entity shape according to the entity.
 java.awt.Shape getEntityShape(Point2D pt)
          Returns the entity shape according to the point.
 ChartEntity getObjectById(int id)
          Finds a chart object with specified id.
 void mapEntity(ChartEntity entity, Point2D pt)
          Sets the center point for the entity area.
 void mapEntity(ChartEntity entity, Rectangle2D rectangle)
          Does nothing.
 void mapEntity(ChartEntity entity, java.awt.Shape shape)
          Does nothing.
 void mapEntity(ChartEntity entity, java.awt.Shape shape, int id)
          Maps the polygon to the entity.
 
Methods inherited from class lt.monarch.chart.engine.HotSpotMap
contains, findAllEntitiesAt, findEntityAt, getEntityPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final NullHotSpotMap instance
instance of NullHotSpotMap

Constructor Detail

NullHotSpotMap

public NullHotSpotMap()
Method Detail

clearEntity

public void clearEntity(ChartEntity entity)
Does nothing.

Specified by:
clearEntity in class HotSpotMap
Parameters:
entity - chart entity
See Also:
HotSpotMap.clearEntity(ChartEntity)

clear

public void clear()
Does nothing.

Specified by:
clear in class HotSpotMap

mapEntity

public void mapEntity(ChartEntity entity,
                      java.awt.Shape shape)
Does nothing.

Specified by:
mapEntity in class HotSpotMap
Parameters:
entity - chart entity
shape - shape
See Also:
HotSpotMap.mapEntity(ChartEntity, Shape)

mapEntity

public void mapEntity(ChartEntity entity,
                      Rectangle2D rectangle)
Does nothing.

Specified by:
mapEntity in class HotSpotMap
Parameters:
entity - chart entity
rectangle - rectangle
See Also:
HotSpotMap.mapEntity(ChartEntity, Rectangle2D)

getEntityShape

public java.awt.Shape getEntityShape(Point2D pt)
Description copied from class: HotSpotMap
Returns the entity shape according to the point.

Specified by:
getEntityShape in class HotSpotMap
Parameters:
pt - point of shape
Returns:
selected entity shape

getEntityShape

public java.awt.Shape getEntityShape(ChartEntity chartEntity)
Description copied from class: HotSpotMap
Returns the entity shape according to the entity.

Specified by:
getEntityShape in class HotSpotMap
Parameters:
chartEntity - entity
Returns:
selected entity shape

getObjectById

public ChartEntity getObjectById(int id)
Description copied from class: HotSpotMap
Finds a chart object with specified id. If no entity was found, returns null.

Specified by:
getObjectById in class HotSpotMap
Parameters:
id - id to search for
Returns:
an object with specified if the search was successful, null otherwise

mapEntity

public void mapEntity(ChartEntity entity,
                      Point2D pt)
Description copied from class: HotSpotMap
Sets the center point for the entity area. This information may be used to show tool tips or notes.

Specified by:
mapEntity in class HotSpotMap
Parameters:
entity - entity to be mapped
pt - entity center point

mapEntity

public void mapEntity(ChartEntity entity,
                      java.awt.Shape shape,
                      int id)
Description copied from class: HotSpotMap
Maps the polygon to the entity. Entities may have several associated polygons.
Warning: The polygon is not copied internally. All changes made to the polygon after the method completes will affect the map.

Specified by:
mapEntity in class HotSpotMap
Parameters:
entity - entity to be mapped
shape - shape
id - id