org.limn.render
Class RecordCanvas

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--org.limn.render.RecordCanvas
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, LimnRender, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
HistogramPlot, ParallelCoordinatePlot, ScatterPlotCanvas

public class RecordCanvas
extends java.awt.Canvas
implements LimnRender

A basic implementation of the LimnRender interface. This class provides the basic mechanics for making the image buffer avaiable to a LimnRecorder object for preserving.

See Also:
Serialized Form

Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
RecordCanvas(LimnData dd)
           
 
Method Summary
 void addRenderable(LimnRenderable lr)
          a renderable should be able to collect other objects that implement the Limnrednerable interface.
 int getHeight()
           
 java.awt.Image getImage()
          returns the image handle, this is used by the recorder object.
 int getWidth()
           
 void prepImage(LimnBasis l, LimnRecorder r)
          prepare/repaint the image for recording.
 void update(java.awt.Graphics g)
           
 
Methods inherited from class java.awt.Canvas
addNotify, getAccessibleContext, paint
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RecordCanvas

public RecordCanvas(LimnData dd)
Method Detail

addRenderable

public void addRenderable(LimnRenderable lr)
Description copied from interface: LimnRender
a renderable should be able to collect other objects that implement the Limnrednerable interface. These other objects are intented to provide additional augmentation graphics for the s
Specified by:
addRenderable in interface LimnRender

update

public void update(java.awt.Graphics g)
Overrides:
update in class java.awt.Component

prepImage

public void prepImage(LimnBasis l,
                      LimnRecorder r)
Description copied from interface: LimnRender
prepare/repaint the image for recording. This method will allow the canvas to repaint given the updated Basis and then notify the given recorder object that it has finished another image.
Specified by:
prepImage in interface LimnRender

getImage

public java.awt.Image getImage()
Description copied from interface: LimnRender
returns the image handle, this is used by the recorder object.
Specified by:
getImage in interface LimnRender

getHeight

public int getHeight()
Specified by:
getHeight in interface LimnRender
Overrides:
getHeight in class java.awt.Component

getWidth

public int getWidth()
Specified by:
getWidth in interface LimnRender
Overrides:
getWidth in class java.awt.Component