SimJava 2.0.1

eduni.simanim
Class Sim_anim

Object
  extended by Component
      extended by Container
          extended by Panel
              extended by Sim_anim
All Implemented Interfaces:
Traceable, Sim_output, ImageObserver, MenuContainer, Serializable, Accessible

public class Sim_anim
extends Panel
implements Sim_output, Traceable

The class that manages the simulation in animated mode. Do not use this class directly.

Version:
1.2, 12 July 2002
Author:
Costas Simatos
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class Panel
Panel.AccessibleAWTPanel
 
Nested classes/interfaces inherited from class Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
(package private) static Anim_applet applet
           
 
Fields inherited from class Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface Traceable
DISPLAY, LAYOUT, PAUSE, RUN, STOP, TRACE
 
Fields inherited from interface ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Sim_anim(Anim_applet applet)
          Do not use this method directly.
 
Method Summary
 void add_entity(Anim_entity ent)
          Do not use this method directly.
(package private)  void add_param_type(Param_type pt)
           
 void addTraceListener(TraceListener l)
          Do not use this method directly.
 void animate(Thread simThread)
          Do not use this method directly.
 void close()
          Do not use this method directly.
 void dispTrace()
          Do not use this method directly.
 void draw_all_static()
          Do not use this method directly.
(package private)  void draw_messages(Graphics g)
           
(package private)  Anim_entity find_entity(String ent_name)
           
 void forwardTrace(TraceEventObject e)
          Do not use this method directly.
 void genTraceHeader()
          Do not use this method directly.
 void genTraceTail()
          Do not use this method directly.
 Anim_applet get_applet()
          Do not use this method directly.
(package private) static Image get_image(String name)
           
 Sim_reporter get_reporter()
          Do not use this method directly.
 void initialise()
          Do not use this method directly.
 void link_ports(String e1, String p1, String e2, String p2)
          Do not use this method directly.
 void paint(Graphics g)
          Do not use this method directly.
 void println(String msg)
          Do not use this method directly.
 void removeTraceListener(TraceListener l)
          Do not use this method directly.
 void set_message(String new_msg)
          Do not use this method directly.
 void setup_static_initial()
          Do not use this method directly.
(package private)  void show_update(Thread simThread)
           
 void update(Graphics g)
          Do not use this method directly.
 
Methods inherited from class Panel
addNotify, getAccessibleContext
 
Methods inherited from class Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, 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, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, 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, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

applet

static Anim_applet applet
Constructor Detail

Sim_anim

public Sim_anim(Anim_applet applet)
Do not use this method directly.

Method Detail

addTraceListener

public void addTraceListener(TraceListener l)
Do not use this method directly.


removeTraceListener

public void removeTraceListener(TraceListener l)
Do not use this method directly.


forwardTrace

public void forwardTrace(TraceEventObject e)
Do not use this method directly.


link_ports

public void link_ports(String e1,
                       String p1,
                       String e2,
                       String p2)
Do not use this method directly.


add_entity

public void add_entity(Anim_entity ent)
Do not use this method directly.


get_image

static Image get_image(String name)

initialise

public void initialise()
Do not use this method directly.

Specified by:
initialise in interface Sim_output

setup_static_initial

public void setup_static_initial()
Do not use this method directly.


add_param_type

void add_param_type(Param_type pt)

genTraceHeader

public void genTraceHeader()
Do not use this method directly.


genTraceTail

public void genTraceTail()
Do not use this method directly.


dispTrace

public void dispTrace()
Do not use this method directly.


println

public void println(String msg)
Do not use this method directly.

Specified by:
println in interface Sim_output
Parameters:
msg - The trace message

close

public void close()
Do not use this method directly.

Specified by:
close in interface Sim_output

find_entity

Anim_entity find_entity(String ent_name)

paint

public void paint(Graphics g)
Do not use this method directly.

Overrides:
paint in class Container

draw_messages

void draw_messages(Graphics g)

update

public void update(Graphics g)
Do not use this method directly.

Overrides:
update in class Container

show_update

void show_update(Thread simThread)

draw_all_static

public void draw_all_static()
Do not use this method directly.


set_message

public void set_message(String new_msg)
Do not use this method directly.


animate

public void animate(Thread simThread)
Do not use this method directly.


get_reporter

public Sim_reporter get_reporter()
Do not use this method directly.


get_applet

public Anim_applet get_applet()
Do not use this method directly.


SimJava 2.0.1

The University of Edinburgh, 2009