sunw.demo.juggler
Class Juggler

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--sunw.demo.juggler.Juggler

public class Juggler
extends java.applet.Applet
implements java.lang.Runnable, java.beans.beancontext.BeanContextProxy, java.beans.beancontext.BeanContextServicesListener, java.beans.PropertyChangeListener, java.beans.DesignMode

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.beans.DesignMode
PROPERTYNAME
 
Constructor Summary
Juggler()
           
 
Method Summary
 int getAnimationRate()
           
 java.beans.beancontext.BeanContextChild getBeanContextProxy()
           
 java.awt.Dimension getMinimumSize()
           
 java.awt.Dimension getPreferredSize()
           
 boolean isDebug()
          Returns true if debugging is enabled, false if it's not.
 boolean isDesignTime()
           
 boolean isJuggling()
          Returns false if the Juggler is stopped, true otherwise.
 java.awt.Dimension minimumSize()
          Deprecated. provided for backward compatibility with old layout managers.
 void paint(java.awt.Graphics g)
          Draw the current frame.
 java.awt.Dimension preferredSize()
          Deprecated. provided for backward compatibility with old layout managers.
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 void run()
           
 void serviceAvailable(java.beans.beancontext.BeanContextServiceAvailableEvent bcsae)
           
 void serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent bcsre)
           
 void setAnimationRate(int x)
           
 void setDebug(boolean debug)
          Turns debugging on, only if a MethodTracer service is available and we are in design mode.
 void setDesignTime(boolean dmode)
           
 void setEnabled(boolean x)
          If false, suspend the animation thread.
 void start()
          Applet method: start the Juggler applet.
 void startJuggling()
          Resume the animation thread if we're enabled.
 void startJuggling(java.awt.event.ActionEvent x)
          An event handling method that calls startJuggling.
 void stop()
          Applet method: stop the Juggler applet.
 void stopJuggling()
          Suspend the animation thread if neccessary.
 void stopJuggling(java.awt.event.ActionEvent x)
          This method can be used to connect a Button or a MenuItem to the Juggler.stopJuggling method.
 
Methods inherited from class java.applet.Applet
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, init, 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, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, insets, invalidate, isAncestorOf, layout, list, list, locate, paintComponents, paramString, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setCursor, setFont, setLayout, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, 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, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Juggler

public Juggler()
Method Detail

getBeanContextProxy

public java.beans.beancontext.BeanContextChild getBeanContextProxy()
Specified by:
getBeanContextProxy in interface java.beans.beancontext.BeanContextProxy

start

public void start()
Applet method: start the Juggler applet.
Overrides:
start in class java.applet.Applet

stop

public void stop()
Applet method: stop the Juggler applet.
Overrides:
stop in class java.applet.Applet

paint

public void paint(java.awt.Graphics g)
Draw the current frame.
Overrides:
paint in class java.awt.Container

setEnabled

public void setEnabled(boolean x)
If false, suspend the animation thread.
Overrides:
setEnabled in class java.awt.Component

startJuggling

public void startJuggling()
Resume the animation thread if we're enabled.
See Also:
stopJuggling(), setEnabled(boolean)

stopJuggling

public void stopJuggling()
Suspend the animation thread if neccessary.
See Also:
startJuggling(), setEnabled(boolean)

startJuggling

public void startJuggling(java.awt.event.ActionEvent x)
An event handling method that calls startJuggling. This method can be used to connect a Button or a MenuItem to the Juggler.

stopJuggling

public void stopJuggling(java.awt.event.ActionEvent x)
This method can be used to connect a Button or a MenuItem to the Juggler.stopJuggling method.

isJuggling

public boolean isJuggling()
Returns false if the Juggler is stopped, true otherwise.

getAnimationRate

public int getAnimationRate()

setAnimationRate

public void setAnimationRate(int x)

getMinimumSize

public java.awt.Dimension getMinimumSize()
Overrides:
getMinimumSize in class java.awt.Container

minimumSize

public java.awt.Dimension minimumSize()
Deprecated. provided for backward compatibility with old layout managers.

Overrides:
minimumSize in class java.awt.Container

getPreferredSize

public java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class java.awt.Container

preferredSize

public java.awt.Dimension preferredSize()
Deprecated. provided for backward compatibility with old layout managers.

Overrides:
preferredSize in class java.awt.Container

isDebug

public boolean isDebug()
Returns true if debugging is enabled, false if it's not.

setDebug

public void setDebug(boolean debug)
Turns debugging on, only if a MethodTracer service is available and we are in design mode.

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

setDesignTime

public void setDesignTime(boolean dmode)
Specified by:
setDesignTime in interface java.beans.DesignMode

isDesignTime

public boolean isDesignTime()
Specified by:
isDesignTime in interface java.beans.DesignMode

serviceRevoked

public void serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent bcsre)

serviceAvailable

public void serviceAvailable(java.beans.beancontext.BeanContextServiceAvailableEvent bcsae)
Specified by:
serviceAvailable in interface java.beans.beancontext.BeanContextServicesListener

run

public void run()
Specified by:
run in interface java.lang.Runnable