simulator
Class BarClient

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--simulator.Client
                                |
                                +--simulator.BarClient

public class BarClient
extends simulator.Client

Create the client for Bar Pushing simulation ambient

See Also:
Serialized Form

Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Field Summary
(package private)  java.awt.Label barLengthLabel
          Label for bar length text
(package private)  java.awt.TextField barLengthText
          Area for input bar length
(package private)  java.awt.Label boxDimLabel
          Label for box dimension text
(package private)  java.awt.TextField boxDimText
          Area for input box dimension
(package private)  java.awt.Label boxMassLabel
          Label for box mass text
(package private)  java.awt.TextField boxMassText
          Area for input box mass
 
Fields inherited from class simulator.Client
about, browser, DEFAULT_HOST, DEFAULT_PORT, DEFAULT_SHOWROUNDTRIP, host, idGen, istance_ID, listener, MAX_CHARS, maxChars, nodesList, port, remote_name, s, showRoundTripCheck, showRoundTripInitial, tableMFNode, tableSFBool, tableSFColor, tableSFFloat, tableSFInt32, tableSFNode, tableSFRotation, tableSFTime, tableSFVec2f, tableSFVec3f, typePrompt, typist, winAll, winLocal
 
Fields inherited from class java.applet.Applet
serialVersionUID, stub
 
Fields inherited from class java.awt.Panel
base, nameCounter, serialVersionUID
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, maxSize, ncomponents, serialVersionUID
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, assert, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, serialVersionUID, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y
 
Constructor Summary
BarClient()
           
 
Method Summary
 void graphAppletInit()
          Create the applet graphics component We determine if the browser we use is an AWT 1.0 or 1.1 and so use the appropriate methods.
 void graphAppletInitAWT1_0()
           
 void init()
          Initialize the client
 void paint(java.awt.Graphics g)
          Redefine paint method to change text field area according with actual value
 void runCommand(java.lang.String s)
          Extends basic commands: a "%% n val" string means that we have to change the value of Fisical simulation costant.
 void stop()
           
 
Methods inherited from class simulator.Client
, buildFieldTable, cleanUp, destroy, finalize, getAppletInfo, getParameterInfo, insertText, keyUp, start
 
Methods inherited from class java.applet.Applet
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, constructComponentName
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyOrientation, countComponents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, initIDs, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPrint, list, list, locate, minimumSize, nextFocus, paintComponents, paramString, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, print, printComponents, printOneComponent, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, readObject, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusOwner, setFont, setLayout, transferFocus, update, validate, validateTree, writeObject
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, 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, 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, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

boxMassLabel

java.awt.Label boxMassLabel
Label for box mass text

boxDimLabel

java.awt.Label boxDimLabel
Label for box dimension text

barLengthLabel

java.awt.Label barLengthLabel
Label for bar length text

boxMassText

java.awt.TextField boxMassText
Area for input box mass

boxDimText

java.awt.TextField boxDimText
Area for input box dimension

barLengthText

java.awt.TextField barLengthText
Area for input bar length
Constructor Detail

BarClient

public BarClient()
Method Detail

init

public void init()
Initialize the client
Overrides:
init in class simulator.Client

stop

public void stop()
Overrides:
stop in class simulator.Client

graphAppletInitAWT1_0

public void graphAppletInitAWT1_0()

graphAppletInit

public void graphAppletInit()
Create the applet graphics component We determine if the browser we use is an AWT 1.0 or 1.1 and so use the appropriate methods.
Overrides:
graphAppletInit in class simulator.Client

paint

public void paint(java.awt.Graphics g)
Redefine paint method to change text field area according with actual value
Parameters:
g - not used
Overrides:
paint in class simulator.Client

runCommand

public void runCommand(java.lang.String s)
Extends basic commands: a "%% n val" string means that we have to change the value of Fisical simulation costant.
Parameters:
s - the string containing the command
Overrides:
runCommand in class simulator.Client