|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.engine.HotSpotMap
public abstract class HotSpotMap extends java.lang.Object implements java.io.Serializable
Manages a map of hot polygons and related chart entities. There is one HotSpotMap object per chart container. Every time, while chart is being rendered, every chart object may define hot areas in the map. Stored information can then be used by the actual HotSpotMap instance to show tool tips, define event listeners or HTML client maps in a fast and efficient way.
| Constructor and Description |
|---|
HotSpotMap()
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
clear()
Removes all chart objects |
abstract void |
clearEntity(ChartEntity entity)
Clears all hot spot polygons for the entity and it's all child entities. |
protected boolean |
contains(ChartEntity container,
ChartEntity entity)
Utility method, to check if one entity is contained in another entity. |
java.util.List<ChartEntity> |
findAllEntitiesAt(Point2D pt)
Finds all mapped entities at the specified point. |
ChartEntity |
findEntityAt(Point2D pt)
Finds a mapped entity at the specified point. |
Point2D |
getEntityPosition(ChartEntity entity)
Returns the entity center point, mapped via the mapEntity method. |
abstract java.awt.Shape |
getEntityShape(ChartEntity chartEntity)
Returns the entity shape according to the entity. |
abstract java.awt.Shape |
getEntityShape(Point2D pt)
Returns the entity shape according to the point. |
abstract ChartEntity |
getObjectById(int id)
Finds a chart object with specified id. |
abstract void |
mapEntity(ChartEntity entity,
Point2D pt)
Sets the center point for the entity area. |
abstract void |
mapEntity(ChartEntity entity,
Rectangle2D rectangle)
Maps the rectangle to the entity. |
abstract void |
mapEntity(ChartEntity entity,
java.awt.Shape shape)
Maps the polygon to the entity. |
abstract void |
mapEntity(ChartEntity entity,
java.awt.Shape shape,
int id)
Maps the polygon to the entity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HotSpotMap()
| Method Detail |
|---|
public abstract void clearEntity(ChartEntity entity)
entity - entity to be removed from the mappublic abstract void clear()
public abstract void mapEntity(ChartEntity entity,
java.awt.Shape shape)
entity - entity to be mappedshape - shape
public abstract void mapEntity(ChartEntity entity,
java.awt.Shape shape,
int id)
entity - entity to be mappedshape - shapeid - id
public abstract void mapEntity(ChartEntity entity,
Rectangle2D rectangle)
entity - entity to be mappedrectangle - rectangle
public abstract void mapEntity(ChartEntity entity,
Point2D pt)
entity - entity to be mappedpt - entity center pointpublic abstract ChartEntity getObjectById(int id)
null.
id - id to search fornull
otherwise
protected boolean contains(ChartEntity container,
ChartEntity entity)
container - container entityentity - child entitypublic ChartEntity findEntityAt(Point2D pt)
pt - search pointnullpublic Point2D getEntityPosition(ChartEntity entity)
mapEntity method.
entity - entitypublic abstract java.awt.Shape getEntityShape(Point2D pt)
pt - point of shapepublic abstract java.awt.Shape getEntityShape(ChartEntity chartEntity)
chartEntity - entitypublic java.util.List<ChartEntity> findAllEntitiesAt(Point2D pt)
pt - search pointnull
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||