Ightaria
Class Vessel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Panel
              extended by java.applet.Applet
                  extended by Ightaria.Vessel
All Implemented Interfaces:
java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.lang.Runnable, java.util.EventListener, javax.accessibility.Accessible

public class Vessel
extends java.applet.Applet
implements java.lang.Runnable, java.awt.event.KeyListener, java.awt.event.MouseListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.applet.Applet
java.applet.Applet.AccessibleApplet
 
Nested classes/interfaces inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  Bridge br
           
(package private) static java.net.URL codebase
           
(package private)  int delay
          Intended delay between animaiton frames
(package private)  java.awt.Font dflFont
           
(package private)  java.awt.Font dflNavigationFont
           
(package private) static int FC_ImageIsConstructed
           
(package private) static int FC_ImageIsConstructing
           
(package private) static int FC_ImageIsDrawing
           
(package private) static int FC_ImageIsDrawn
           
(package private) static int FC_ImageIsPainted
           
(package private) static int FC_ImageIsPainting
           
(package private)  java.lang.String focus_Grant
           
(package private)  int FrameCycle
           
static int frameNumber
          Frames counter
(package private) static int frameNumberStart
          Initial value.
static int frNuFromLoad
          From load
static int initializedClearly
           
(package private) static int initializedInt
           
 char keyChar
           
 int keyCode
           
 int keyID
           
 int keyModifiers
           
 int nonActivityIntervalInFrames
          Super initialization variable:
(package private) static int nonInitializedInt
          Program state detection variables.
(package private) static SPad nonInitializedSPad
           
(package private)  java.lang.Thread paintThread
           
(package private)  long reconstructionTime
           
(package private)  long repaintStartTime
           
(package private)  long repaintTime
           
(package private)  long startTime
           
(package private) static java.applet.Applet thisApplet
           
(package private)  long timeLeftAfterCalculations
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Vessel()
           
 
Method Summary
 java.lang.String getAppletInfo()
           
static java.lang.String getServerResource(java.lang.String relativePath)
           
 void init()
           
 void keyPressed(java.awt.event.KeyEvent e)
           This is main keyboard handler in Vessel.class It makes preliminary check, discards redundant/orphan keystrokes, stores keys to be passed to upper keyhandler in Bridge, and immediately digests typing keys.
 void keyReleased(java.awt.event.KeyEvent e)
          Main handler of stop-after-move event
 void keyTyped(java.awt.event.KeyEvent e)
          I would not able to make this proc.
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void run()
           
 void start()
           
 void stop()
           
 void update(java.awt.Graphics g)
           
(package private)  void vesselComputerMessages()
           
 
Methods inherited from class java.applet.Applet
destroy, getAccessibleContext, 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, 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, paint, 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 java.awt.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, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, 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, 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nonInitializedInt

static int nonInitializedInt
Program state detection variables. Used to detect stops/initializations/reloads/cleanups.


nonInitializedSPad

static SPad nonInitializedSPad

initializedInt

static int initializedInt

initializedClearly

public static int initializedClearly

delay

int delay
Intended delay between animaiton frames


frameNumberStart

static final int frameNumberStart
Initial value. With speed 20 frames/second program can run for do1 put in internalInit or drop: 4 years.

See Also:
Constant Field Values

frameNumber

public static int frameNumber
Frames counter


frNuFromLoad

public static int frNuFromLoad
From load


thisApplet

static java.applet.Applet thisApplet

codebase

static java.net.URL codebase

paintThread

java.lang.Thread paintThread

dflFont

java.awt.Font dflFont

dflNavigationFont

java.awt.Font dflNavigationFont

br

Bridge br

FC_ImageIsPainted

static final int FC_ImageIsPainted
See Also:
Constant Field Values

FC_ImageIsConstructing

static final int FC_ImageIsConstructing
See Also:
Constant Field Values

FC_ImageIsConstructed

static final int FC_ImageIsConstructed
See Also:
Constant Field Values

FC_ImageIsDrawing

static final int FC_ImageIsDrawing
See Also:
Constant Field Values

FC_ImageIsDrawn

static final int FC_ImageIsDrawn
See Also:
Constant Field Values

FC_ImageIsPainting

static final int FC_ImageIsPainting
See Also:
Constant Field Values

FrameCycle

int FrameCycle

timeLeftAfterCalculations

long timeLeftAfterCalculations

reconstructionTime

long reconstructionTime

startTime

long startTime

repaintStartTime

long repaintStartTime

repaintTime

long repaintTime

focus_Grant

java.lang.String focus_Grant

keyID

public int keyID

keyCode

public int keyCode

keyChar

public char keyChar

keyModifiers

public int keyModifiers

nonActivityIntervalInFrames

public int nonActivityIntervalInFrames
Super initialization variable:

Constructor Detail

Vessel

public Vessel()
Method Detail

init

public void init()
Overrides:
init in class java.applet.Applet

run

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

start

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

stop

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

update

public void update(java.awt.Graphics g)
Overrides:
update in class java.awt.Container

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Main handler of stop-after-move event

Specified by:
keyReleased in interface java.awt.event.KeyListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
    This is main keyboard handler in Vessel.class 
    It makes preliminary check, 
       discards redundant/orphan keystrokes, 
       stores keys to be passed to upper keyhandler in Bridge, and
       immediately digests typing keys.

Specified by:
keyPressed in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
I would not able to make this proc. useful

Specified by:
keyTyped in interface java.awt.event.KeyListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

vesselComputerMessages

void vesselComputerMessages()

getServerResource

public static java.lang.String getServerResource(java.lang.String relativePath)

getAppletInfo

public java.lang.String getAppletInfo()
Overrides:
getAppletInfo in class java.applet.Applet