lt.monarch.chart.engine
Class SimpleHotSpotMap.HotSpot

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

public static class SimpleHotSpotMap.HotSpot
extends java.lang.Object
implements java.io.Serializable

A simple hot spot, which maps some chart entity to some rectangle or polygon.

See Also:
Serialized Form

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

Field Detail

entity

public ChartEntity entity
the chart entity


rectangle

public Rectangle2D rectangle
the rectangle to which entity is mapped


shape

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


id

public int id
ID associated with chart object

Constructor Detail

SimpleHotSpotMap.HotSpot

public SimpleHotSpotMap.HotSpot(ChartEntity entity,
                                Rectangle2D rectangle)
Constructs a new HotSpot mapping the specified chart entity to the specified rectangle.

Parameters:
entity - the chart entity
rectangle - the rectangle

SimpleHotSpotMap.HotSpot

public SimpleHotSpotMap.HotSpot(ChartEntity entity,
                                java.awt.Shape shape)
Constructs a new HotSpot mapping the specified chart entity to the specified polygon.

Parameters:
entity - the chart entity
shape - the shape

SimpleHotSpotMap.HotSpot

public SimpleHotSpotMap.HotSpot(ChartEntity entity,
                                java.awt.Shape shape,
                                int id)
Constructs a new HotSpot mapping the specified chart entity to the specified polygon.

Parameters:
entity - the chart entity
shape - the shape
id - chart object id
Method Detail

contains

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

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