lt.monarch.chart.view
Class DirectChartRenderer

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

public class DirectChartRenderer
extends java.lang.Object
implements ViewContainer

ViewContainer implementation for chart rendering directly to a Graphics context.

See Also:
ViewContainer, Serialized Form

Field Summary
Modifier and Type Field and Description
protected  Rectangle2D bounds
          The bounds of this view container in the form of a Rectangle object.
protected  View chart
          the view to render.
 
Constructor Summary
Constructor and Description
DirectChartRenderer(View chart)
          Constructs a new DirectChartRenderer with the specified chart.
 
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.
 void dispose()
          This method should be called to clean the renderer after it becomes unnecessary.
 ChartObjectsMap getChartObjectsMap()
          Returns NullChartObjectsMap instance
 java.awt.Component getComponent()
          Returns null.
 HotSpotMap getHotSpotMap()
          Returns NullHotSpotMap.instance.
 AbstractGraphics getUpdateGraphics()
          Returns null.
 View getView()
          Returns chart view.
 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 renderInto(AbstractGraphics g)
          Renders the chart into the specified Graphics context.
 void repaint(Rectangle2D r)
          Does nothing.
 void revalidate()
          Does nothing.
 void setBounds(Rectangle2D newBounds)
          Moves and resizes this view container to conform to the new bounding rectangle r.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bounds

protected Rectangle2D bounds
The bounds of this view container in the form of a Rectangle object.


chart

protected View chart
the view to render.

Constructor Detail

DirectChartRenderer

public DirectChartRenderer(View chart)
Constructs a new DirectChartRenderer with the specified chart.

Parameters:
chart - the chart
Method Detail

setBounds

public void setBounds(Rectangle2D newBounds)
Moves and resizes this view container to conform to the new bounding rectangle r. This view container's new position is specified by r.x and r.y, and its new size is specified by r.width and r.height.

Parameters:
newBounds - the new bounding rectangle for this view container.

renderInto

public void renderInto(AbstractGraphics g)
Renders the chart into the specified Graphics context.

Parameters:
g - the Graphics context in which to render chart

getComponent

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

Specified by:
getComponent in interface ViewContainer
Returns:
null
See Also:
ViewContainer.getComponent()

getUpdateGraphics

public AbstractGraphics getUpdateGraphics()
Returns null.

Specified by:
getUpdateGraphics in interface ViewContainer
Returns:
null
See Also:
ViewContainer.getUpdateGraphics()

getHotSpotMap

public HotSpotMap getHotSpotMap()
Returns NullHotSpotMap.instance.

Specified by:
getHotSpotMap in interface ViewContainer
Returns:
NullHotSpotMap.instance
See Also:
ViewContainer.getHotSpotMap()

getChartObjectsMap

public ChartObjectsMap getChartObjectsMap()
Returns NullChartObjectsMap instance

Specified by:
getChartObjectsMap in interface ViewContainer
Returns:
NullChartObjectsMap instance

repaint

public void repaint(Rectangle2D r)
Does nothing.

Specified by:
repaint in interface ViewContainer
Parameters:
r - the view container region to repaint.
See Also:
ViewContainer.repaint(lt.monarch.math.geom.Rectangle2D)

revalidate

public void revalidate()
Does nothing.

Specified by:
revalidate in interface ViewContainer
See Also:
ViewContainer.revalidate()

addMouseListener

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

Specified by:
addMouseListener in interface ViewContainer
Parameters:
l - the mouse listener.
See Also:
ViewContainer.addMouseListener(java.awt.event.MouseListener)

removeMouseListener

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

Specified by:
removeMouseListener in interface ViewContainer
Parameters:
l - the mouse listener.
See Also:
ViewContainer.removeMouseListener(java.awt.event.MouseListener)

addMouseMotionListener

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

Specified by:
addMouseMotionListener in interface ViewContainer
Parameters:
l - the mouse motion listener.
See Also:
ViewContainer.addMouseMotionListener(java.awt.event.MouseMotionListener)

removeMouseMotionListener

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

Specified by:
removeMouseMotionListener in interface ViewContainer
Parameters:
l - the mouse motion listener.
See Also:
ViewContainer.removeMouseMotionListener(java.awt.event.MouseMotionListener)

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

dispose

public void dispose()
This method should be called to clean the renderer after it becomes unnecessary.


getView

public View getView()
Returns chart view.

Specified by:
getView in interface ViewContainer
Returns:
Returns the chart view.