lt.monarch.chart.engine
Class NullChartObjectsMap

java.lang.Object
  extended by lt.monarch.chart.engine.NullChartObjectsMap
All Implemented Interfaces:
ChartObjectsMap

public class NullChartObjectsMap
extends java.lang.Object
implements ChartObjectsMap


Nested Class Summary
Modifier and Type Interface and Description
 
Nested classes/interfaces inherited from interface lt.monarch.chart.engine.ChartObjectsMap
ChartObjectsMap.TaggedChartObject
 
Constructor Summary
Constructor and Description
NullChartObjectsMap()
           
 
Method Summary
Modifier and Type Method and Description
 void clear()
          Removes all chart objects
 void clearChartObject(StyleEditorEntity chartObject, AbstractPaintTags tag)
          Does nothing
 java.util.List<? extends ChartObjectsMap.TaggedChartObject> findAllObjectsAt(Point2D pt)
          Finds all chart objects & tags at the specified point.
 ChartObjectsMap.TaggedChartObject findChartObjectAt(Point2D pt)
          Finds a chart object & tag at the specified point.
 int generateNextId()
          Does nothing
 java.util.List<? extends ChartObjectsMap.TaggedChartObject> getAllObjects()
          Gets all chart objects & tags
 java.util.List<java.awt.Shape> getChartObjectShapes(StyleEditorEntity chartObject, AbstractPaintTags tag)
          Returns list of shapes for the specified chart object & tag.
static ChartObjectsMap getInstance()
          Returns instance of NullChartObjectsMap
 ChartObjectsMap.TaggedChartObject getObjectById(int id)
          Does nothing
 void mapChartObject(StyleEditorEntity chartObject, AbstractPaintTags tag, java.awt.Shape shape)
          Does nothing
 void mapChartObject(StyleEditorEntity chartObject, AbstractPaintTags tag, java.awt.Shape shape, int id)
          Does nothing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullChartObjectsMap

public NullChartObjectsMap()
Method Detail

getInstance

public static ChartObjectsMap getInstance()
Returns instance of NullChartObjectsMap

Returns:
instance

clearChartObject

public void clearChartObject(StyleEditorEntity chartObject,
                             AbstractPaintTags tag)
Does nothing

Specified by:
clearChartObject in interface ChartObjectsMap

findAllObjectsAt

public java.util.List<? extends ChartObjectsMap.TaggedChartObject> findAllObjectsAt(Point2D pt)
Description copied from interface: ChartObjectsMap
Finds all chart objects & tags at the specified point. If no entity was found, returns null.

Specified by:
findAllObjectsAt in interface ChartObjectsMap
Parameters:
pt - the point
Returns:
all objects at the specified point if search was successful, null otherwise

getAllObjects

public java.util.List<? extends ChartObjectsMap.TaggedChartObject> getAllObjects()
Description copied from interface: ChartObjectsMap
Gets all chart objects & tags

Specified by:
getAllObjects in interface ChartObjectsMap
Returns:
all objects

findChartObjectAt

public ChartObjectsMap.TaggedChartObject findChartObjectAt(Point2D pt)
Description copied from interface: ChartObjectsMap
Finds a chart object & tag at the specified point. If no entity was found, returns null.

Specified by:
findChartObjectAt in interface ChartObjectsMap
Parameters:
pt - the point
Returns:
an object at the specified point if the search was successful, null otherwise

mapChartObject

public void mapChartObject(StyleEditorEntity chartObject,
                           AbstractPaintTags tag,
                           java.awt.Shape shape)
Does nothing

Specified by:
mapChartObject in interface ChartObjectsMap
Parameters:
chartObject - the chart object
tag - the paint tag
shape - the shape

mapChartObject

public void mapChartObject(StyleEditorEntity chartObject,
                           AbstractPaintTags tag,
                           java.awt.Shape shape,
                           int id)
Does nothing

Specified by:
mapChartObject in interface ChartObjectsMap
Parameters:
chartObject - the chart object
tag - the paint tag
shape - the shape
id - id

getChartObjectShapes

public java.util.List<java.awt.Shape> getChartObjectShapes(StyleEditorEntity chartObject,
                                                           AbstractPaintTags tag)
Description copied from interface: ChartObjectsMap
Returns list of shapes for the specified chart object & tag.

Specified by:
getChartObjectShapes in interface ChartObjectsMap
Parameters:
chartObject - the chart object
tag - the paint tag
Returns:
list of shapes

clear

public void clear()
Description copied from interface: ChartObjectsMap
Removes all chart objects

Specified by:
clear in interface ChartObjectsMap

getObjectById

public ChartObjectsMap.TaggedChartObject getObjectById(int id)
Does nothing

Specified by:
getObjectById in interface ChartObjectsMap
Parameters:
id - id to search for
Returns:
an object with specified if the search was successful, null otherwise

generateNextId

public int generateNextId()
Does nothing

Specified by:
generateNextId in interface ChartObjectsMap
Returns:
generated id