Spreadsheet Toolkit

corpus.doodle
Class Animation

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--corpus.doodle.Animation
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.lang.Runnable, java.io.Serializable
Direct Known Subclasses:
Animation2

public class Animation
extends java.applet.Applet
implements java.lang.Runnable

An applet/application that gives an animated view of the dependency structures in a spreadsheet.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.applet.Applet
java.applet.Applet.AccessibleApplet
 
Nested classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected static Animation h
          Used to run as applet or application
protected static Stub stub
          Used to run as applet or application
protected  java.util.Vector tree
           
 
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
Animation()
           
Animation(WorkSheet ws)
           
 
Method Summary
 double calculateX(double x)
           
 double calculateY(double y)
           
 void destroy()
           
 void init()
          Initialize the applet and compute the delay between frames.
static void main(java.lang.String[] args)
           
 void paint(java.awt.Graphics g)
          Paint the previous frame (if any).
protected  void paint(java.awt.Graphics g, int level, int subframe)
           
protected  void paintFrame(java.awt.Graphics g)
          Paint a frame of animation into an off screen Image.
 void run()
          This method is called by the thread that was created in the start method.
static void setup(WorkSheet ws, java.lang.String[] args, java.lang.String title)
           
static void setupRest(WorkSheet ws, java.lang.String[] args, java.lang.String title)
           
 void start()
          This method is called when the applet becomes visible on the screen.
 void stop()
          This method is called when the applet is no longer visible.
 void update(java.awt.Graphics g)
          Update a frame of animation.
 
Methods inherited from class java.applet.Applet
getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

h

protected static Animation h
Used to run as applet or application

See Also:
Stub

stub

protected static Stub stub
Used to run as applet or application

See Also:
Animation

tree

protected java.util.Vector tree
Constructor Detail

Animation

public Animation()

Animation

public Animation(WorkSheet ws)
Method Detail

init

public void init()
Initialize the applet and compute the delay between frames.

Overrides:
init in class java.applet.Applet

start

public void start()
This method is called when the applet becomes visible on the screen. Create a thread and start it.

Overrides:
start in class java.applet.Applet

run

public void run()
This method is called by the thread that was created in the start method. It does the main animation.

Specified by:
run in interface java.lang.Runnable

stop

public void stop()
This method is called when the applet is no longer visible. Set the animator variable to null so that the thread will exit before displaying the next frame.

Overrides:
stop in class java.applet.Applet

update

public void update(java.awt.Graphics g)
Update a frame of animation.

Overrides:
update in class java.awt.Container

paint

public void paint(java.awt.Graphics g)
Paint the previous frame (if any).

Overrides:
paint in class java.awt.Container

paintFrame

protected void paintFrame(java.awt.Graphics g)
Paint a frame of animation into an off screen Image. When done the entire image will be drawn on screen in on go.


paint

protected void paint(java.awt.Graphics g,
                     int level,
                     int subframe)

calculateX

public double calculateX(double x)

calculateY

public double calculateY(double y)

destroy

public void destroy()
Overrides:
destroy in class java.applet.Applet

setup

public static void setup(WorkSheet ws,
                         java.lang.String[] args,
                         java.lang.String title)

setupRest

public static void setupRest(WorkSheet ws,
                             java.lang.String[] args,
                             java.lang.String title)

main

public static void main(java.lang.String[] args)

Spreadsheet Toolkit

Project Home Page