lt.monarch.chart.engine
Class SimpleChartObjectsMap.HotSpot

java.lang.Object
  extended by lt.monarch.chart.engine.SimpleChartObjectsMap.HotSpot
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
SimpleChartObjectsMap

public class SimpleChartObjectsMap.HotSpot
extends java.lang.Object
implements java.io.Serializable

A simple hot spot, which maps some chart objects to some polygon.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 SimpleChartObjectsMap.TaggedChartObjectImpl chartObjectTagged
          the chart object with tag
 int id
          ID associated with chart object
 java.awt.Shape shape
          the polygon to which object is mapped
 
Constructor Summary
Constructor and Description
SimpleChartObjectsMap.HotSpot(SimpleChartObjectsMap.TaggedChartObjectImpl chartObjectTagged, java.awt.Shape shape)
          Constructs a new HotSpot mapping the specified chart object to the specified polygon.
SimpleChartObjectsMap.HotSpot(SimpleChartObjectsMap.TaggedChartObjectImpl chartObjectTagged, java.awt.Shape shape, int id)
          Constructs a new HotSpot mapping the specified chart object to the specified polygon.
 
Method Summary
Modifier and Type Method and Description
 boolean contains(Point2D pt)
          Checks whether polygon to which the chart object is mapped contains the specified point.
 java.awt.Shape getShape()
          Returns chart object polygon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

chartObjectTagged

public SimpleChartObjectsMap.TaggedChartObjectImpl chartObjectTagged
the chart object with tag


shape

public java.awt.Shape shape
the polygon to which object is mapped


id

public int id
ID associated with chart object

Constructor Detail

SimpleChartObjectsMap.HotSpot

public SimpleChartObjectsMap.HotSpot(SimpleChartObjectsMap.TaggedChartObjectImpl chartObjectTagged,
                                     java.awt.Shape shape)
Constructs a new HotSpot mapping the specified chart object to the specified polygon.

Parameters:
chartObjectTagged - the chart object with tag
shape - the shape

SimpleChartObjectsMap.HotSpot

public SimpleChartObjectsMap.HotSpot(SimpleChartObjectsMap.TaggedChartObjectImpl chartObjectTagged,
                                     java.awt.Shape shape,
                                     int id)
Constructs a new HotSpot mapping the specified chart object to the specified polygon.

Parameters:
chartObjectTagged - the chart object with tag
shape - the shape
id - chart object id
Method Detail

contains

public boolean contains(Point2D pt)
Checks whether polygon to which the chart object is mapped contains the specified point.

Parameters:
pt - the point
Returns:
true if polygon contains the specified point, false otherwise

getShape

public java.awt.Shape getShape()
Returns chart object polygon.

Returns:
shape