org.limn.render
Class SimpleViewer

java.lang.Object
  |
  +--java.awt.Component
        |
        +--org.limn.render.SimpleViewer
All Implemented Interfaces:
java.util.EventListener, java.awt.image.ImageObserver, LimnViewer, java.awt.MenuContainer, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable

public class SimpleViewer
extends java.awt.Component
implements LimnViewer, java.awt.event.MouseListener, java.awt.event.MouseMotionListener

SimpleViewer is used in the Viewing process. It provides a basic implementation of the LimnViewer interface and allows the display and interaction with a LimnRendering.

See Also:
Serialized Form

Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
SimpleViewer(LimnFilter f)
           
 
Method Summary
 void addControls(java.awt.Panel p)
          add control panel to the viewer.
 void addRenderable(LimnRenderable lr)
          will allow additional objects to augment the display.
 void clear()
          will deleted the collection of LimnRenderables held by the object.
 java.awt.Image createImage(java.awt.image.ImageProducer ip, int c)
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void paint(java.awt.Graphics g)
           
 boolean prepareImage(java.awt.Image i, java.awt.image.ImageObserver io)
           
 void setCount(int c)
          set the index of the position in the tour, this will then allow renderable objects to know what projections to base their drawing on.
 void updateImage(java.awt.Image i)
           
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, 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, 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, update, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleViewer

public SimpleViewer(LimnFilter f)
Method Detail

addRenderable

public void addRenderable(LimnRenderable lr)
Description copied from interface: LimnViewer
will allow additional objects to augment the display. This is used by the parsingThread object to highlight data points that have been brushed.
Specified by:
addRenderable in interface LimnViewer

updateImage

public void updateImage(java.awt.Image i)
Specified by:
updateImage in interface LimnViewer

createImage

public java.awt.Image createImage(java.awt.image.ImageProducer ip,
                                  int c)
Specified by:
createImage in interface LimnViewer

prepareImage

public boolean prepareImage(java.awt.Image i,
                            java.awt.image.ImageObserver io)
Specified by:
prepareImage in interface LimnViewer
Overrides:
prepareImage in class java.awt.Component

setCount

public void setCount(int c)
Description copied from interface: LimnViewer
set the index of the position in the tour, this will then allow renderable objects to know what projections to base their drawing on.
Specified by:
setCount in interface LimnViewer

clear

public void clear()
Description copied from interface: LimnViewer
will deleted the collection of LimnRenderables held by the object. This will in effect remove any graphics from the scene.
Specified by:
clear in interface LimnViewer

paint

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

addControls

public void addControls(java.awt.Panel p)
Description copied from interface: LimnViewer
add control panel to the viewer.
Specified by:
addControls in interface LimnViewer

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener