edu.harvard.mgh.purcell.gCLINE.pane
Class OpView

java.lang.Object
  extended by edu.harvard.mgh.purcell.gCLINE.pane.OpView
Direct Known Subclasses:
TestFrame.myOpView

public abstract class OpView
extends java.lang.Object

Look at the operation tree.

Author:
Kathe Todd-Brown

Field Summary
private  Record data
          Record that we are looking at
private  FileView fileViewer
           
private  StartFrame frame
           
private static org.apache.log4j.Logger logger
           
protected  javax.swing.JTree myTree
          JTree to show the Record
private  javax.swing.Action swapOpDown
          Move the selected node up the tree.
private  javax.swing.Action swapOpUp
          Move the selected node down the tree.
private  java.awt.event.MouseListener treeEvents
          Listen for a tree selection that will activate the popup menu to manipulate the project annotation and open in/out files.
 
Constructor Summary
OpView(Record d, FileView f)
          Create an operation view
 
Method Summary
protected abstract  PopUpMenu createPopUp(StartFrame mf, Record d, java.lang.String[] givenFiles, java.lang.String[] givenOp)
           
 javax.swing.JScrollPane toJScrollPane()
          Wrap this view up in a JScrollPane so that we can add it to a frame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.apache.log4j.Logger logger

myTree

protected javax.swing.JTree myTree
JTree to show the Record


data

private Record data
Record that we are looking at


frame

private StartFrame frame

fileViewer

private FileView fileViewer

treeEvents

private java.awt.event.MouseListener treeEvents
Listen for a tree selection that will activate the popup menu to manipulate the project annotation and open in/out files.


swapOpDown

private javax.swing.Action swapOpDown
Move the selected node up the tree.


swapOpUp

private javax.swing.Action swapOpUp
Move the selected node down the tree.

Constructor Detail

OpView

public OpView(Record d,
              FileView f)
Create an operation view

Parameters:
d - The Record that we want to look at
Method Detail

createPopUp

protected abstract PopUpMenu createPopUp(StartFrame mf,
                                         Record d,
                                         java.lang.String[] givenFiles,
                                         java.lang.String[] givenOp)

toJScrollPane

public javax.swing.JScrollPane toJScrollPane()
Wrap this view up in a JScrollPane so that we can add it to a frame.

Returns:
A JScrollPane that contains the operation tree.