graphoutput
Class GraphOutput

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--graphoutput.GraphOutput

public class GraphOutput
extends java.awt.Frame
implements java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.event.WindowListener

This class contains all output functionality and thus it appears as an interface-class for all other classes

See Also:
Serialized Form

Field Summary
 NDimViewer applet
           
 javax.vecmath.Vector3d coordBoxScale
           
 int dimcnt
           
static int EPC
           
static int LWW
           
 java.util.Vector mapping_v
           
 graphoutput.OptionsDlg optionsdlg
           
 java.util.Vector scaling_v
           
 java.util.Vector startvalue_v
           
 graphoutput.Style style
           
static int TDC
           
 int technique
           
 Range time
           
static java.lang.String TITLE_EPC
           
static java.lang.String TITLE_LWW
           
static java.lang.String TITLE_TDC
           
 java.util.Vector variablenames_v
           
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
GraphOutput(NDimViewer applet)
          Creates an empty output-window containing an empty scene within a Canvas3D and the status-line
GraphOutput(NDimViewer applet, java.lang.String title, int width, int height)
          Creates an empty output-window containing an empty scene within a Canvas3D and the status-line.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Reacts on the actions performed by the user
 boolean addPoint(java.util.Vector newpoint)
          Adds 1 point to the list of points.
 void display()
          Tells GraphOutput to start the rendering
 void getLWWOrientation(double pos, javax.vecmath.Point3d p, javax.vecmath.Vector3d v)
          Stores the position and orientation of the LWW-trajectory at the given pos [0;1] into p and v
 java.util.Vector getMapping()
          Get the current arrangement of the axes
 graphoutput.Style getStyle()
          Returns the current style
 java.util.Vector getTDCPosition(double pos)
          Returns the current point at the specified position
 void hideCoordinateBox()
          Removes the CoordinateBox from the Scene-graph
 void initOutput(int dimcnt, java.util.Vector variablenames_v, java.util.Vector mapping_v, Range time)
          Resets the view to be able to get receive a new dataset_v
 void itemStateChanged(java.awt.event.ItemEvent e)
          Is called if the state of the Checkbox is changed
 void setAnnotation(boolean visible)
          Shows or hides the annotation of the current style
 void setBoxSize(double x, double y, double z)
          Sets the size of the coordinate box default value is (0.5f, 0.3f, 0.6f)
 void setDynSysInfo(DynSysInfo dsi)
          Delivers an instance of DynSysInfo with the information about the viewed Dyn.Sys.
 void setHighlightInfo(int nr, double pos)
          Writes information about the epc-marker into the statusline
 void setMapping(java.util.Vector mapping_v)
          Set a specific arrangement of the axes
 void setScaling(java.util.Vector scaling_v)
          Set the scaling for each axis
 void setSelStartValue(double x, double y)
          Updates the Vector startvalue_v and displays the change in the statusline
 void setSelStartValue(int dim, double value)
          Updates the Vector startvalue_v and displays the change in the statusline
 void setSelStartValueTDC(int plane_no, double a, double b)
          Updates the Vector startvalue_v and displays the change in the statusline
 void setStatusLine(java.lang.String text)
          Sets the text in the statusline of GraphOutput
 void setStyle(graphoutput.Style style)
          Sets the current style
 void setTechnique(int technique)
          Sets the technique for nDim-Displaying
 void showCoordinateBox()
          Puts the CoordinateBox into the Scene-graph
 void showStartValue()
          Displays the current startvalue_v in the statusline
 void updateAnnotation()
          Updates the Annotation-Checkbox according to the current state of showscaling in style
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
           
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, isResizable, paramString, remove, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle
 
Methods inherited from class java.awt.Window
addWindowListener, applyResourceBundle, applyResourceBundle, dispose, getFocusOwner, getInputContext, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, isShowing, pack, postEvent, processEvent, processWindowEvent, removeWindowListener, show, toBack, toFront
 
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, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, 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, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EPC

public static final int EPC

LWW

public static final int LWW

TDC

public static final int TDC

TITLE_EPC

public static final java.lang.String TITLE_EPC

TITLE_LWW

public static final java.lang.String TITLE_LWW

TITLE_TDC

public static final java.lang.String TITLE_TDC

dimcnt

public int dimcnt

technique

public int technique

variablenames_v

public java.util.Vector variablenames_v

mapping_v

public java.util.Vector mapping_v

scaling_v

public java.util.Vector scaling_v

startvalue_v

public java.util.Vector startvalue_v

style

public graphoutput.Style style

coordBoxScale

public javax.vecmath.Vector3d coordBoxScale

time

public Range time

applet

public NDimViewer applet

optionsdlg

public graphoutput.OptionsDlg optionsdlg
Constructor Detail

GraphOutput

public GraphOutput(NDimViewer applet,
                   java.lang.String title,
                   int width,
                   int height)
Creates an empty output-window containing an empty scene within a Canvas3D and the status-line. The size of the window and the title are specified by parameters

GraphOutput

public GraphOutput(NDimViewer applet)
Creates an empty output-window containing an empty scene within a Canvas3D and the status-line
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Reacts on the actions performed by the user
Specified by:
actionPerformed in interface java.awt.event.ActionListener

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Is called if the state of the Checkbox is changed
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

initOutput

public void initOutput(int dimcnt,
                       java.util.Vector variablenames_v,
                       java.util.Vector mapping_v,
                       Range time)
Resets the view to be able to get receive a new dataset_v

addPoint

public boolean addPoint(java.util.Vector newpoint)
Adds 1 point to the list of points. Return false, if the dimension is not equal to the previously set

display

public void display()
Tells GraphOutput to start the rendering

setAnnotation

public void setAnnotation(boolean visible)
Shows or hides the annotation of the current style

updateAnnotation

public void updateAnnotation()
Updates the Annotation-Checkbox according to the current state of showscaling in style

setMapping

public void setMapping(java.util.Vector mapping_v)
Set a specific arrangement of the axes

getMapping

public java.util.Vector getMapping()
Get the current arrangement of the axes

setScaling

public void setScaling(java.util.Vector scaling_v)
Set the scaling for each axis

setBoxSize

public void setBoxSize(double x,
                       double y,
                       double z)
Sets the size of the coordinate box default value is (0.5f, 0.3f, 0.6f)

setTechnique

public void setTechnique(int technique)
Sets the technique for nDim-Displaying

setStyle

public void setStyle(graphoutput.Style style)
Sets the current style

getStyle

public graphoutput.Style getStyle()
Returns the current style

setHighlightInfo

public void setHighlightInfo(int nr,
                             double pos)
Writes information about the epc-marker into the statusline

setStatusLine

public void setStatusLine(java.lang.String text)
Sets the text in the statusline of GraphOutput

setDynSysInfo

public void setDynSysInfo(DynSysInfo dsi)
Delivers an instance of DynSysInfo with the information about the viewed Dyn.Sys.

setSelStartValue

public void setSelStartValue(int dim,
                             double value)
Updates the Vector startvalue_v and displays the change in the statusline

setSelStartValueTDC

public void setSelStartValueTDC(int plane_no,
                                double a,
                                double b)
Updates the Vector startvalue_v and displays the change in the statusline

setSelStartValue

public void setSelStartValue(double x,
                             double y)
Updates the Vector startvalue_v and displays the change in the statusline

showStartValue

public void showStartValue()
Displays the current startvalue_v in the statusline

hideCoordinateBox

public void hideCoordinateBox()
Removes the CoordinateBox from the Scene-graph

showCoordinateBox

public void showCoordinateBox()
Puts the CoordinateBox into the Scene-graph

getLWWOrientation

public void getLWWOrientation(double pos,
                              javax.vecmath.Point3d p,
                              javax.vecmath.Vector3d v)
Stores the position and orientation of the LWW-trajectory at the given pos [0;1] into p and v

getTDCPosition

public java.util.Vector getTDCPosition(double pos)
Returns the current point at the specified position

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener