lt.monarch.chart.engine
Class NullViewContainer

java.lang.Object
  extended by lt.monarch.chart.engine.NullViewContainer
All Implemented Interfaces:
java.io.Serializable, ViewContainer

public class NullViewContainer
extends java.lang.Object
implements ViewContainer, java.io.Serializable

Dummy chart container. It is used until a real chart container is assigned. In same cases a real chart container is not needed at all - NullViewContainer works just fine.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
static NullViewContainer instance
          an NullViewContainer instance
 
Constructor Summary
Constructor and Description
NullViewContainer()
           
 
Method Summary
Modifier and Type Method and Description
 void addGestureListener(GestureListener l)
          Does nothing.
 void addMouseListener(java.awt.event.MouseListener l)
          Does nothing.
 void addMouseMotionListener(java.awt.event.MouseMotionListener l)
          Does nothing.
 void addMouseWheelListener(java.awt.event.MouseWheelListener l)
          Does nothing.
 void addMultitouchListener(MultitouchListener l)
          Does nothing.
 ChartObjectsMap getChartObjectsMap()
          Returns NullChartObjectsMap instance.
 java.awt.Component getComponent()
          Returns null.
 HotSpotMap getHotSpotMap()
          Returns NullHotSpotMap.instance.
 AbstractGraphics getUpdateGraphics()
          Returns null.
 View getView()
          Returns null.
 void removeGestureListener(GestureListener l)
          Does nothing.
 void removeMouseListener(java.awt.event.MouseListener l)
          Does nothing.
 void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
          Does nothing.
 void removeMouseWheelListener(java.awt.event.MouseWheelListener l)
          Does nothing.
 void removeMultitouchListener(MultitouchListener l)
          Does nothing.
 void repaint(Rectangle2D r)
          Does nothing.
 void revalidate()
          Does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final NullViewContainer instance
an NullViewContainer instance

Constructor Detail

NullViewContainer

public NullViewContainer()
Method Detail

getUpdateGraphics

public AbstractGraphics getUpdateGraphics()
Returns null.

Specified by:
getUpdateGraphics in interface ViewContainer
Returns:
null

getComponent

public java.awt.Component getComponent()
Returns null.

Specified by:
getComponent in interface ViewContainer
Returns:
null

repaint

public void repaint(Rectangle2D r)
Does nothing.

Specified by:
repaint in interface ViewContainer
Parameters:
r - rectangle

revalidate

public void revalidate()
Does nothing.

Specified by:
revalidate in interface ViewContainer

getHotSpotMap

public HotSpotMap getHotSpotMap()
Returns NullHotSpotMap.instance.

Specified by:
getHotSpotMap in interface ViewContainer
Returns:
NullHotSpotMap.instance

getChartObjectsMap

public ChartObjectsMap getChartObjectsMap()
Returns NullChartObjectsMap instance.

Specified by:
getChartObjectsMap in interface ViewContainer
Returns:
NullChartObjectsMap instance

getView

public View getView()
Returns null.

Specified by:
getView in interface ViewContainer
Returns:
null

addMouseListener

public void addMouseListener(java.awt.event.MouseListener l)
Does nothing.

Specified by:
addMouseListener in interface ViewContainer
Parameters:
l - mouse listener

removeMouseListener

public void removeMouseListener(java.awt.event.MouseListener l)
Does nothing.

Specified by:
removeMouseListener in interface ViewContainer
Parameters:
l - mouse listener

addMouseMotionListener

public void addMouseMotionListener(java.awt.event.MouseMotionListener l)
Does nothing.

Specified by:
addMouseMotionListener in interface ViewContainer
Parameters:
l - mouse motion listener

removeMouseMotionListener

public void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
Does nothing.

Specified by:
removeMouseMotionListener in interface ViewContainer
Parameters:
l - mouse motion listener

addMouseWheelListener

public void addMouseWheelListener(java.awt.event.MouseWheelListener l)
Does nothing.

Specified by:
addMouseWheelListener in interface ViewContainer
Parameters:
l - the mouse listener

removeMouseWheelListener

public void removeMouseWheelListener(java.awt.event.MouseWheelListener l)
Does nothing.

Specified by:
removeMouseWheelListener in interface ViewContainer
Parameters:
l - the mouse motion listener

addGestureListener

public void addGestureListener(GestureListener l)
Does nothing.

Specified by:
addGestureListener in interface ViewContainer
Parameters:
l - the gesture listener

addMultitouchListener

public void addMultitouchListener(MultitouchListener l)
Does nothing.

Specified by:
addMultitouchListener in interface ViewContainer
Parameters:
l - the gesture listener

removeGestureListener

public void removeGestureListener(GestureListener l)
Does nothing.

Specified by:
removeGestureListener in interface ViewContainer
Parameters:
l - the gesture listener

removeMultitouchListener

public void removeMultitouchListener(MultitouchListener l)
Does nothing.

Specified by:
removeMultitouchListener in interface ViewContainer
Parameters:
l - the gesture listener