Class CairoApplet

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--javax.swing.JApplet
                                |
                                +--CairoApplet

public class CairoApplet
extends javax.swing.JApplet
implements CairoWrap

Wrapper for Cairo which lets it be used as an applet. This class can be embedded in web pages to make alignments publicly viewable. Note, however, that Cairo makes extensive use of the Swing libraries introduced in Java 2 (1.2), and as of this writing most browsers (eg Netscape 4.x) do not support Swing classes. To use Cairo from within a browser, see http://java.sun.com/products/plugin, where Sun provides a Java 2 plug-in for Netscape on many platforms.

Author:
Mike Jahr
See Also:
Cairo, CairoWrap, Serialized Form

Inner classes inherited from class javax.swing.JApplet
javax.swing.JApplet.AccessibleJApplet
 
Fields inherited from class javax.swing.JApplet
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
CairoApplet()
           
 
Method Summary
 javax.swing.JMenu createFileMenu(Cairo inc)
          Required by the CairoWrap interface; returns a FileMenuApplet.
 java.lang.String getAppletInfo()
          Returns version and author information according to Cairo.
 Cairo getCairo()
          Required by the CairoWrap interface; returns the associated Cairo object.
 java.lang.String[][] getParameterInfo()
          Returns a brief descripton of recognized parameters.
 void init()
          Creates and initializes a Cairo object, then calls Cairo.init().
 void start()
          Attempts to open any default alignment file we received as a parameter.
 void stop()
          Wrapper for Cairo.stop().
 
Methods inherited from class javax.swing.JApplet
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.applet.Applet
destroy, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, 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, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, 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, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, 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

CairoApplet

public CairoApplet()
Method Detail

createFileMenu

public javax.swing.JMenu createFileMenu(Cairo inc)
Required by the CairoWrap interface; returns a FileMenuApplet.
Specified by:
createFileMenu in interface CairoWrap

getCairo

public Cairo getCairo()
Required by the CairoWrap interface; returns the associated Cairo object.
Specified by:
getCairo in interface CairoWrap

init

public void init()
Creates and initializes a Cairo object, then calls Cairo.init().
Overrides:
init in class java.applet.Applet
See Also:
Cairo.init()

start

public void start()
Attempts to open any default alignment file we received as a parameter.
Overrides:
start in class java.applet.Applet

stop

public void stop()
Wrapper for Cairo.stop().
Overrides:
stop in class java.applet.Applet

getAppletInfo

public java.lang.String getAppletInfo()
Returns version and author information according to Cairo.
Overrides:
getAppletInfo in class java.applet.Applet
See Also:
Cairo.BYLINE, Cairo.VERSION

getParameterInfo

public java.lang.String[][] getParameterInfo()
Returns a brief descripton of recognized parameters.
Overrides:
getParameterInfo in class java.applet.Applet