wt.tools.profiler
Class ProfilerMenu

java.lang.Object
  extended bywt.tools.profiler.ProfilerMenu
All Implemented Interfaces:
ActionListener, EventListener, ItemListener

public class ProfilerMenu
extends Object
implements ActionListener, ItemListener

Constructs the menu bar of the application


Field Summary
(package private)  HashSet adaptSet
           
(package private)  LinkedList frames
           
(package private)  URL helpURL
           
(package private)  ProfilingKey[] keys
           
(package private)  JMenu menu
           
(package private)  JMenuBar menuBar
           
(package private)  JMenuItem menuItem
           
(package private)  String newline
           
(package private)  JMenu opmenu
           
(package private)  ProfilerMainPanel profMainPanel
           
 ProfilerWrapper wrapper
           
 
Constructor Summary
ProfilerMenu(ProfilerMainPanel profMain)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void crOperationsMenu(JMenu parent)
           
 ProfilerFrame fillStack(HashMap threadFrameMap, String lineStr, ProfilerFrame threadFrame, StringTokenizer tok, int lineno)
           
 ProfilerFrame fillThread(HashMap threadFrameMap, String lineStr, StringTokenizer tok)
           
 ProfilingKey[] getKeysArr()
           
 void itemStateChanged(ItemEvent e)
           
 void openFile()
           
 void openFileProf(String saveFile)
           
 void saveFile()
           
 void saveFileNode(PrintWriter out, ProfilerFrame parent, ProfilerFrame child, String path)
           
 void saveFileProf(String saveFile)
           
 void saveViewHtml(String saveFile)
           
 void setKeysArr(ProfilingKey[] keysArr)
           
 void showDocumentation()
           
 void snapShotView()
           
 ProfilerFrame srchBranchRoot(HashMap threadFrameMap, String lineStr, StringTokenizer tok)
           
 ProfilerFrame srchParentFrame(ProfilerFrame threadFrame, String srchName, int srchCount)
           
 void traverseTree(DefaultMutableTreeNode node, DefaultTreeModel treeModel, JTree tree, int factor, PrintWriter out, String spacer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

profMainPanel

ProfilerMainPanel profMainPanel

menuBar

JMenuBar menuBar

menu

JMenu menu

opmenu

JMenu opmenu

menuItem

JMenuItem menuItem

newline

String newline

keys

ProfilingKey[] keys

helpURL

URL helpURL

wrapper

public ProfilerWrapper wrapper

frames

LinkedList frames

adaptSet

HashSet adaptSet
Constructor Detail

ProfilerMenu

public ProfilerMenu(ProfilerMainPanel profMain)
Method Detail

crOperationsMenu

public void crOperationsMenu(JMenu parent)

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

showDocumentation

public void showDocumentation()

traverseTree

public void traverseTree(DefaultMutableTreeNode node,
                         DefaultTreeModel treeModel,
                         JTree tree,
                         int factor,
                         PrintWriter out,
                         String spacer)

openFile

public void openFile()

openFileProf

public void openFileProf(String saveFile)

fillThread

public ProfilerFrame fillThread(HashMap threadFrameMap,
                                String lineStr,
                                StringTokenizer tok)

fillStack

public ProfilerFrame fillStack(HashMap threadFrameMap,
                               String lineStr,
                               ProfilerFrame threadFrame,
                               StringTokenizer tok,
                               int lineno)

srchParentFrame

public ProfilerFrame srchParentFrame(ProfilerFrame threadFrame,
                                     String srchName,
                                     int srchCount)

srchBranchRoot

public ProfilerFrame srchBranchRoot(HashMap threadFrameMap,
                                    String lineStr,
                                    StringTokenizer tok)

saveFile

public void saveFile()

saveFileProf

public void saveFileProf(String saveFile)

saveFileNode

public void saveFileNode(PrintWriter out,
                         ProfilerFrame parent,
                         ProfilerFrame child,
                         String path)

snapShotView

public void snapShotView()

saveViewHtml

public void saveViewHtml(String saveFile)

itemStateChanged

public void itemStateChanged(ItemEvent e)
Specified by:
itemStateChanged in interface ItemListener

getKeysArr

public ProfilingKey[] getKeysArr()

setKeysArr

public void setKeysArr(ProfilingKey[] keysArr)