ElVis Java Interface

sv.graph
Class GraphFrame

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JInternalFrame
                  extended bysv.graph.GraphFrame
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, javax.swing.event.ChangeListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.KeyListener, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.lang.Runnable, java.io.Serializable, javax.swing.WindowConstants

public class GraphFrame
extends javax.swing.JInternalFrame
implements java.awt.event.ActionListener, javax.swing.event.ChangeListener, java.awt.event.KeyListener, java.lang.Runnable

GraphFrame.java Define a frame to hold multiple graphs

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JInternalFrame
javax.swing.JInternalFrame.JDesktopIcon
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Field Summary
 CollaboratorFrame collaboratorFrame
           
 java.lang.String frameTitle
           
 boolean globalFlag
           
 GraphWindow graphWindow
           
 int nColumns
           
 int nRows
           
 ScopePanel scopePanel
           
static javax.swing.JScrollPane scrollPane
           
 boolean stealthMode
           
 WhiteBoardFrame whiteboardFrame
           
 
Fields inherited from class javax.swing.JInternalFrame
CONTENT_PANE_PROPERTY, FRAME_ICON_PROPERTY, GLASS_PANE_PROPERTY, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, LAYERED_PANE_PROPERTY, MENU_BAR_PROPERTY, ROOT_PANE_PROPERTY, TITLE_PROPERTY
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
GraphFrame(GraphWindow gw, int w, int h)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addColumn()
           
 void addGraph(Fx graph)
           
 void addGraph(Fxi graph)
           
 void addGraph(Fxi graph, int row, int column)
           
 void addGraph(Fx graph, int row, int column)
           
 void addGraph(Fxt graph)
           
 void addGraph(Fxt graph, int row, int column)
           
 void addRow()
           
 void animate(boolean animateSwitch)
           
 void fillGraphs()
           
 void fitGraphs()
           
 int getBufferSize()
           
 int getFrameHeight()
           
 java.lang.String getFrameTitle()
           
 int getFrameWidth()
           
 long getID()
           
 int getIndex()
           
 int getRank()
           
 void incrementIndex()
           
 boolean isFocusable()
           
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 boolean printGraph(int row, int column, java.lang.String fileName, boolean checkSelect)
           
 void printGraphAll(java.lang.String fileName)
           
 void processInteraction(GraphWindow gw)
           
 void run()
           
 void setBufferSize(int sz)
           
 void setCollaboratorFrame(CollaboratorFrame c)
           
 void setFrameTitle(java.lang.String title)
           
 void setGraphEditor(GraphEditor ge)
           
 void setGraphWindow()
           
 void setID(long frameID)
           
 void setIndex(int index)
           
 void setIndexPercent(float percent)
           
 void setNetCDFFrame(NetCDFFrame f)
           
 void setPreferredScreenSize(int w, int h)
           
 void setSurfaceView(int drawingType, float zoom, float rotation, float elevation)
           
 void setWhiteBoardFrame(WhiteBoardFrame wbF)
           
 void stateChanged(javax.swing.event.ChangeEvent e)
           
 void unselectAll(GraphEditor ge)
           
 void updateVCR()
           
 void writeFile(java.io.DataOutputStream out)
           
 void writeNetCDF(java.lang.String fname)
           
 
Methods inherited from class javax.swing.JInternalFrame
addInternalFrameListener, dispose, doDefaultCloseAction, getAccessibleContext, getContentPane, getDefaultCloseOperation, getDesktopIcon, getDesktopPane, getFocusCycleRootAncestor, getFocusOwner, getFrameIcon, getGlassPane, getInternalFrameListeners, getJMenuBar, getLayer, getLayeredPane, getMenuBar, getMostRecentFocusOwner, getNormalBounds, getRootPane, getTitle, getUI, getUIClassID, getWarningString, hide, isClosable, isClosed, isFocusCycleRoot, isIcon, isIconifiable, isMaximizable, isMaximum, isResizable, isSelected, moveToBack, moveToFront, pack, remove, removeInternalFrameListener, reshape, restoreSubcomponentFocus, setClosable, setClosed, setContentPane, setDefaultCloseOperation, setDesktopIcon, setFocusCycleRoot, setFrameIcon, setGlassPane, setIcon, setIconifiable, setJMenuBar, setLayer, setLayer, setLayeredPane, setLayout, setMaximizable, setMaximum, setMenuBar, setNormalBounds, setResizable, setSelected, setTitle, setUI, show, toBack, toFront, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

frameTitle

public java.lang.String frameTitle

nRows

public int nRows

nColumns

public int nColumns

scopePanel

public ScopePanel scopePanel

scrollPane

public static javax.swing.JScrollPane scrollPane

globalFlag

public boolean globalFlag

stealthMode

public boolean stealthMode

graphWindow

public GraphWindow graphWindow

collaboratorFrame

public CollaboratorFrame collaboratorFrame

whiteboardFrame

public WhiteBoardFrame whiteboardFrame
Constructor Detail

GraphFrame

public GraphFrame(GraphWindow gw,
                  int w,
                  int h)
Method Detail

setCollaboratorFrame

public void setCollaboratorFrame(CollaboratorFrame c)

setWhiteBoardFrame

public void setWhiteBoardFrame(WhiteBoardFrame wbF)

setGraphWindow

public void setGraphWindow()

setGraphEditor

public void setGraphEditor(GraphEditor ge)

unselectAll

public void unselectAll(GraphEditor ge)

addGraph

public void addGraph(Fx graph)

addGraph

public void addGraph(Fxi graph)

addGraph

public void addGraph(Fxt graph)

addGraph

public void addGraph(Fx graph,
                     int row,
                     int column)

addGraph

public void addGraph(Fxi graph,
                     int row,
                     int column)

addGraph

public void addGraph(Fxt graph,
                     int row,
                     int column)

animate

public void animate(boolean animateSwitch)

fitGraphs

public void fitGraphs()

fillGraphs

public void fillGraphs()

addRow

public void addRow()

addColumn

public void addColumn()

getFrameWidth

public int getFrameWidth()

getFrameHeight

public int getFrameHeight()

setPreferredScreenSize

public void setPreferredScreenSize(int w,
                                   int h)

getID

public long getID()

setID

public void setID(long frameID)

getFrameTitle

public java.lang.String getFrameTitle()

setFrameTitle

public void setFrameTitle(java.lang.String title)

getRank

public int getRank()

getBufferSize

public int getBufferSize()

setBufferSize

public void setBufferSize(int sz)

setNetCDFFrame

public void setNetCDFFrame(NetCDFFrame f)

writeFile

public void writeFile(java.io.DataOutputStream out)

writeNetCDF

public void writeNetCDF(java.lang.String fname)

printGraph

public boolean printGraph(int row,
                          int column,
                          java.lang.String fileName,
                          boolean checkSelect)

printGraphAll

public void printGraphAll(java.lang.String fileName)

setSurfaceView

public void setSurfaceView(int drawingType,
                           float zoom,
                           float rotation,
                           float elevation)

processInteraction

public void processInteraction(GraphWindow gw)

getIndex

public int getIndex()

setIndex

public void setIndex(int index)

setIndexPercent

public void setIndexPercent(float percent)

updateVCR

public void updateVCR()

incrementIndex

public void incrementIndex()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Specified by:
keyTyped in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Specified by:
keyReleased in interface java.awt.event.KeyListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in interface java.awt.event.KeyListener

isFocusable

public boolean isFocusable()

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener

run

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

ElVis Java Interface