iicm.vrml.vrwave
Class NavigationBar

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--iicm.vrml.vrwave.NavigationBar

public class NavigationBar
extends java.awt.Panel

NavigationBar - The navigation bar for VRwave. Copyright (c) 1996-1998 IICM

See Also:
Serialized Form

Field Summary
static int MOVE
           
static int OBJECT
           
static int ROTATE
           
static int TRANSLATE
           
static int ZOOM
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
NavigationBar(java.util.Vector icons_vect, SceneCanvas canvas, Scene scene)
          Constructs the navigation bar.
 
Method Summary
 java.awt.Image getCursor(int mode)
          Returns a cursor-image (or a sensor-image) for each navigation mode
 java.awt.Insets getInsets()
          new insets for this panel
 void loadCursor(java.util.Vector h_icons)
           
 void mousePressed(java.awt.event.MouseEvent evt)
          handler for the ´mouse pressed´ events.
 void paint(java.awt.Graphics gc)
          paint. add outset frame
 void setCurrentButtonsVisible(int mode, boolean flag)
          Sets the visibility of the buttons, which are dependant from a selected ocject. (used by cursor and menu interaction)
 void setHelpText()
          Sets the help text for the buttons
 void setNextViewText(java.lang.String text)
           
 void setPrevViewText(java.lang.String text)
           
 void setStatusText(java.lang.String text)
           
 void toggleNextViewState(boolean activ)
           
 void togglePrevViewState(boolean activ)
           
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setCursor, setFont, setLayout, update, 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, getLocale, 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, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, 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

OBJECT

public static final int OBJECT

MOVE

public static final int MOVE

ZOOM

public static final int ZOOM

ROTATE

public static final int ROTATE

TRANSLATE

public static final int TRANSLATE
Constructor Detail

NavigationBar

public NavigationBar(java.util.Vector icons_vect,
                     SceneCanvas canvas,
                     Scene scene)
Constructs the navigation bar.
Parameters:
icons_vect - A vector of images for the icons of the toolbar.
canvas - The 3D canvas of VRwave.
scene - The ´scene´ of VRwave.
Method Detail

loadCursor

public void loadCursor(java.util.Vector h_icons)

getCursor

public java.awt.Image getCursor(int mode)
Returns a cursor-image (or a sensor-image) for each navigation mode

setHelpText

public void setHelpText()
Sets the help text for the buttons

setCurrentButtonsVisible

public void setCurrentButtonsVisible(int mode,
                                     boolean flag)
Sets the visibility of the buttons, which are dependant from a selected ocject. (used by cursor and menu interaction)
Parameters:
flag - true - if the buttons should be visible (i.e. a object is selected), false otherwise.

setStatusText

public void setStatusText(java.lang.String text)

toggleNextViewState

public void toggleNextViewState(boolean activ)

togglePrevViewState

public void togglePrevViewState(boolean activ)

setPrevViewText

public void setPrevViewText(java.lang.String text)

setNextViewText

public void setNextViewText(java.lang.String text)

getInsets

public java.awt.Insets getInsets()
new insets for this panel
Overrides:
getInsets in class java.awt.Container

paint

public void paint(java.awt.Graphics gc)
paint. add outset frame
Overrides:
paint in class java.awt.Container

mousePressed

public void mousePressed(java.awt.event.MouseEvent evt)
handler for the ´mouse pressed´ events.
Parameters:
evt - The mouse event.