lt.monarch.chart.engine
Interface ViewContainer

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
ChartCanvas, ChartImageBuilder, DirectChartRenderer, JChartPanel, NullViewContainer

public interface ViewContainer
extends java.io.Serializable

ViewContainer is an adapter, which connects a view with some input/output device. It allows the view to do more than just rendering. Chart can process mouse input to perform zooming, rotation, etc. The chart can request screen updates, when chart data changes.


Method Summary
Modifier and Type Method and Description
 void addGestureListener(GestureListener l)
          Adds the specified gesture listener to receive gesture events from this view container.
 void addMouseListener(java.awt.event.MouseListener l)
          Adds the specified mouse listener to receive mouse events from this view container.
 void addMouseMotionListener(java.awt.event.MouseMotionListener l)
          Adds the specified mouse motion listener to receive mouse motion events from this view container.
 void addMouseWheelListener(java.awt.event.MouseWheelListener l)
          Adds the specified mouse listener to receive mouse wheel events from this view container.
 void addMultitouchListener(MultitouchListener l)
          Adds the specified multitouch listener to receive multitouch events from this view container.
 ChartObjectsMap getChartObjectsMap()
          Returns a chart objects map for the container
 java.awt.Component getComponent()
          Returns the associated Component
 HotSpotMap getHotSpotMap()
          Returns a hot spot map for the container
 AbstractGraphics getUpdateGraphics()
          Returns the default graphics context, where any view can render itself
 View getView()
          Returns chart view.
 void removeGestureListener(GestureListener l)
          Removes the specified gesture listener so that it no longer receives gesture events from this view container.
 void removeMouseListener(java.awt.event.MouseListener l)
          Removes the specified mouse listener so that it no longer receives mouse events from this view container.
 void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
          Removes the specified mouse motion listener so that it no longer receives mouse motion events from this view container.
 void removeMouseWheelListener(java.awt.event.MouseWheelListener l)
          Removes the specified mouse wheel listener so that it no longer receives mouse wheels events from this view container.
 void removeMultitouchListener(MultitouchListener l)
          Removes the specified multitouch listener so that it no longer receives multitouch events from this view container.
 void repaint(Rectangle2D bounds)
          Requests a container update
 void revalidate()
          Requests a container to be revalidated
 

Method Detail

getUpdateGraphics

AbstractGraphics getUpdateGraphics()
Returns the default graphics context, where any view can render itself

Returns:
graphics context

getComponent

java.awt.Component getComponent()
Returns the associated Component

Returns:
Component or null if there is no component available

repaint

void repaint(Rectangle2D bounds)
Requests a container update

Parameters:
bounds - the specified rectangle of this view container to repaint

revalidate

void revalidate()
Requests a container to be revalidated


getHotSpotMap

HotSpotMap getHotSpotMap()
Returns a hot spot map for the container

Returns:
a hot spot map for the container

getChartObjectsMap

ChartObjectsMap getChartObjectsMap()
Returns a chart objects map for the container

Returns:
a chart objects map for the container

addMouseListener

void addMouseListener(java.awt.event.MouseListener l)
Adds the specified mouse listener to receive mouse events from this view container.

Parameters:
l - the mouse listener

addMouseWheelListener

void addMouseWheelListener(java.awt.event.MouseWheelListener l)
Adds the specified mouse listener to receive mouse wheel events from this view container.

Parameters:
l - the mouse listener

addGestureListener

void addGestureListener(GestureListener l)
Adds the specified gesture listener to receive gesture events from this view container.

Parameters:
l - the gesture listener

addMultitouchListener

void addMultitouchListener(MultitouchListener l)
Adds the specified multitouch listener to receive multitouch events from this view container.

Parameters:
l - the gesture listener

removeMouseListener

void removeMouseListener(java.awt.event.MouseListener l)
Removes the specified mouse listener so that it no longer receives mouse events from this view container.

Parameters:
l - the mouse listener

addMouseMotionListener

void addMouseMotionListener(java.awt.event.MouseMotionListener l)
Adds the specified mouse motion listener to receive mouse motion events from this view container.

Parameters:
l - the mouse motion listener

removeMouseMotionListener

void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
Removes the specified mouse motion listener so that it no longer receives mouse motion events from this view container.

Parameters:
l - the mouse motion listener

removeMouseWheelListener

void removeMouseWheelListener(java.awt.event.MouseWheelListener l)
Removes the specified mouse wheel listener so that it no longer receives mouse wheels events from this view container.

Parameters:
l - the mouse motion listener

removeGestureListener

void removeGestureListener(GestureListener l)
Removes the specified gesture listener so that it no longer receives gesture events from this view container.

Parameters:
l - the gesture listener

removeMultitouchListener

void removeMultitouchListener(MultitouchListener l)
Removes the specified multitouch listener so that it no longer receives multitouch events from this view container.

Parameters:
l - the gesture listener

getView

View getView()
Returns chart view.

Returns:
Returns the chart view.