uci.gef.demo
Class EquipmentApplet

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--javax.swing.JApplet
                                |
                                +--uci.gef.demo.EquipmentApplet

public class EquipmentApplet
extends JApplet

An example application to show off some of the capabilities of the UCI Graph Editing Framework. This example is about connecting computers to printers with cable, and plugging those machines into the wall power. It mainly shows off using Images, and defining a simple model with properties that can be edited in the property sheet. Some simple constraints are shown as well: for example, you cannot connect the power socket to the printer port.

See Also:
NodeCPU, NodePrinter, NodeWall, EdgePower, EdgeData, Serialized Form

Inner classes inherited from class javax.swing.JApplet
JApplet.AccessibleJApplet
 
Field Summary
protected static int _drawAreaHeight
           
protected static int _drawAreaWidth
           
protected static boolean _spawnFrame
           
 
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
EquipmentApplet()
          Construct a new EquipmentApplet
 
Method Summary
 void destroy()
          When the user closes this window try to free up as many objects as possible.
 String getAppletInfo()
          reply a breif string that describes this applet in the "About" box.
 void init()
          This is called when the Applet/Application starts up.
static void main(String[] args)
          If this is run as an application, basically do the same thing as the applet
static void parseParams(Applet applet)
           
 void setupWindows()
           
 void start()
          Part of the required Applet API.
 void stop()
          Part of the required Applet API.
 
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
getAppletContext, 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, 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
 

Field Detail

_spawnFrame

protected static boolean _spawnFrame

_drawAreaWidth

protected static int _drawAreaWidth

_drawAreaHeight

protected static int _drawAreaHeight
Constructor Detail

EquipmentApplet

public EquipmentApplet()
Construct a new EquipmentApplet
Method Detail

main

public static void main(String[] args)
If this is run as an application, basically do the same thing as the applet

parseParams

public static void parseParams(Applet applet)

setupWindows

public void setupWindows()

start

public void start()
Part of the required Applet API. Does nothing.
Overrides:
start in class Applet

init

public void init()
This is called when the Applet/Application starts up. It does preloading if the 'ShouldPreLoad' property is set to true. It also registers some well known Action's as an example.
Overrides:
init in class Applet

stop

public void stop()
Part of the required Applet API. Does nothing.
Overrides:
stop in class Applet

destroy

public void destroy()
When the user closes this window try to free up as many objects as possible.
Overrides:
destroy in class Applet

getAppletInfo

public String getAppletInfo()
reply a breif string that describes this applet in the "About" box.
Overrides:
getAppletInfo in class Applet