|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.engine.SimpleHotSpotMap.HotSpot
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.
| 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 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. |
| 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 |
|---|
public ChartEntity entity
public Rectangle2D rectangle
public java.awt.Shape shape
public int id
| Constructor Detail |
|---|
public SimpleHotSpotMap.HotSpot(ChartEntity entity,
Rectangle2D rectangle)
HotSpot mapping the specified chart entity to the
specified rectangle.
entity - the chart entityrectangle - the rectangle
public SimpleHotSpotMap.HotSpot(ChartEntity entity,
java.awt.Shape shape)
HotSpot mapping the specified chart entity to the
specified polygon.
entity - the chart entityshape - the shape
public SimpleHotSpotMap.HotSpot(ChartEntity entity,
java.awt.Shape shape,
int id)
HotSpot mapping the specified chart entity to the
specified polygon.
entity - the chart entityshape - the shapeid - chart object id| Method Detail |
|---|
public boolean contains(Point2D pt)
pt - the pointtrue if rectangle or polygon contains the specified point,
false otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||