|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.engine.SimpleChartObjectsMap
public class SimpleChartObjectsMap extends java.lang.Object implements ChartObjectsMap
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleChartObjectsMap.HotSpot
A simple hot spot, which maps some chart objects to some polygon. |
protected class |
SimpleChartObjectsMap.TaggedChartObjectImpl
structure for chart object & paint tag |
| Nested classes/interfaces inherited from interface lt.monarch.chart.engine.ChartObjectsMap |
|---|
ChartObjectsMap.TaggedChartObject |
| Modifier and Type | Field and Description |
|---|---|
protected int |
lastId
Last generated id |
protected java.util.List<SimpleChartObjectsMap.HotSpot> |
map
array of chart objects mappings to polygons |
| Constructor and Description |
|---|
SimpleChartObjectsMap()
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all chart objects |
void |
clearChartObject(StyleEditorEntity chartObject,
AbstractPaintTags tag)
Removes chart object & tag combination from map |
java.util.List<? extends ChartObjectsMap.TaggedChartObject> |
findAllObjectsAt(Point2D pt)
Finds all chart objects & tags at the specified point. |
SimpleChartObjectsMap.TaggedChartObjectImpl |
findChartObjectAt(Point2D pt)
Finds a chart object & tag at the specified point. |
int |
generateNextId()
Returns an id which will be valid until the last clear call. |
java.util.List<? extends ChartObjectsMap.TaggedChartObject> |
getAllObjects()
Gets all chart objects & tags |
java.util.List<java.awt.Shape> |
getChartObjectShapes(StyleEditorEntity chartObject,
AbstractPaintTags tag)
Returns shape for the specified chart object & tag. |
ChartObjectsMap.TaggedChartObject |
getObjectById(int id)
Finds a chart object with specified id. |
protected void |
mapChartObject(SimpleChartObjectsMap.HotSpot spot)
Adds HotSpot to map |
void |
mapChartObject(StyleEditorEntity chartObject,
AbstractPaintTags tag,
java.awt.Shape shape)
Maps the specified chart object & tag to the specified polygon. |
void |
mapChartObject(StyleEditorEntity chartObject,
AbstractPaintTags tag,
java.awt.Shape shape,
int id)
Maps the specified chart object & tag to the specified polygon. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.util.List<SimpleChartObjectsMap.HotSpot> map
protected int lastId
| Constructor Detail |
|---|
public SimpleChartObjectsMap()
| Method Detail |
|---|
public void clearChartObject(StyleEditorEntity chartObject,
AbstractPaintTags tag)
clearChartObject in interface ChartObjectsMapchartObject - tag - public void clear()
clear in interface ChartObjectsMap
public void mapChartObject(StyleEditorEntity chartObject,
AbstractPaintTags tag,
java.awt.Shape shape,
int id)
mapChartObject in interface ChartObjectsMapchartObject - the chart objecttag - the paint tagshape - the shapeid - id
public void mapChartObject(StyleEditorEntity chartObject,
AbstractPaintTags tag,
java.awt.Shape shape)
mapChartObject in interface ChartObjectsMapchartObject - the chart objecttag - the paint tagshape - the shapeprotected void mapChartObject(SimpleChartObjectsMap.HotSpot spot)
spot - the HotSpotpublic java.util.List<? extends ChartObjectsMap.TaggedChartObject> findAllObjectsAt(Point2D pt)
null.
findAllObjectsAt in interface ChartObjectsMappt - the pointnull
otherwisepublic java.util.List<? extends ChartObjectsMap.TaggedChartObject> getAllObjects()
getAllObjects in interface ChartObjectsMappublic SimpleChartObjectsMap.TaggedChartObjectImpl findChartObjectAt(Point2D pt)
null.
findChartObjectAt in interface ChartObjectsMappt - the pointnull
otherwise
public java.util.List<java.awt.Shape> getChartObjectShapes(StyleEditorEntity chartObject,
AbstractPaintTags tag)
getChartObjectShapes in interface ChartObjectsMapchartObject - the chart objecttag - the paint tagpublic ChartObjectsMap.TaggedChartObject getObjectById(int id)
ChartObjectsMapnull.
getObjectById in interface ChartObjectsMapid - id to search fornull
otherwisepublic int generateNextId()
ChartObjectsMap
generateNextId in interface ChartObjectsMap
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||