edu.rice.cs.hpc.viewer.scope.CallingContextActionsGUI Class Reference

Inheritance diagram for edu.rice.cs.hpc.viewer.scope.CallingContextActionsGUI:
Inheritance graph
[legend]
Collaboration diagram for edu.rice.cs.hpc.viewer.scope.CallingContextActionsGUI:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CallingContextActionsGUI (Shell objShell, IWorkbenchWindow window, Composite parent, CallingContextViewActions objActions)
Composite buildGUI (Composite parent, CoolBar coolbar)
 Method to start to build the GUI for the actions.
void enableActions ()
 Enable the some actions (resize and column properties) actions for this view.
void updateContent (Experiment exp, RootScope scope)
 IMPORTANT: need to call this method once the content of tree is changed ! Warning: call only this method when the tree has been populated !
void setTreeViewer (ScopeTreeViewer tree)
 Set the new tree viewer.
void insertParentNode (Scope nodeParent)
 Inserting a "node header" on the top of the table to display either aggregate metrics or "parent" node (due to zoom-in) TODO: we need to shift to the left a little bit.
void resizeTableColumns ()
 Resize the columns automatically ATT: Please call this method once the data has been populated.
void showInfoMessage (String sMsg)
 Show a message with information style (with green background).
void showWarningMessagge (String sMsg)
 Show a warning message (with yellow background).
void showErrorMessage (String sMsg)
 Show an error message on the message bar.
void restoreMessage ()
 Restore the message bar into the original state.
void resetActions ()
 Reset the button and actions into disabled state.
void hideMetricColumn (TreeColumn column)
 Hiding a metric column.
void setColumnsStatus (boolean[]status)
 Change the column status (hide/show) in this view only.
void addMetricColumns (TreeColumn colMetric)
 Add a new metric column.
void disableNodeButtons ()
 Disable actions that need a selected node.
void enableHotCallPath (boolean enabled)
void enableZoomIn (boolean enabled)
 Check zoom buttons (zoom out and zoom in).
void enableZoomOut (boolean enabled)

Protected Member Functions

Composite addTooBarAction (CoolBar parent)
 Create a toolbar region on the top of the view.
void displayRootExperiment ()
 Add the aggregate metrics item on the top of the tree.
void showColumnsProperties ()
 Show column properties (hidden, visible .
void createCoolItem (CoolBar coolBar, Control toolBar)
 Creating an item for the existing coolbar.
void finalizeToolBar (Composite parent, CoolBar coolBar)
void exportCSV ()
 Method to export the displayed items in the current view into a CSV format file.

Protected Attributes

ScopeTreeViewer treeViewer
ScopeViewActions objViewActions
Shell shell
IWorkbenchWindow objWindow
ToolItem tiZoomin
ToolItem tiZoomout
ToolItem tiColumns
ToolItem tiHotCallPath
ToolItem tiAddExtMetric
Label lblMessage
Scope nodeTopParent
Database database
RootScope myRootScope
final Color clrGREEN
final Color clrYELLOW
final Color clrRED
final Color clrNORMAL

Private Member Functions

Scope getSelectedScope ()

Private Attributes

GraphMenu graphMenuManager
ToolItem tiGraph

Detailed Description

Definition at line 29 of file CallingContextActionsGUI.java.


Constructor & Destructor Documentation

edu.rice.cs.hpc.viewer.scope.CallingContextActionsGUI.CallingContextActionsGUI ( Shell  objShell,
IWorkbenchWindow  window,
Composite  parent,
CallingContextViewActions  objActions 
)

Member Function Documentation

void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.addMetricColumns ( TreeColumn  colMetric  )  [inherited]

Add a new metric column.

Parameters:
colMetric 

Implements edu.rice.cs.hpc.viewer.scope.IScopeActionsGUI.

Definition at line 358 of file ScopeViewActionsGUI.java.

References edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.restoreParentNode().

Composite edu.rice.cs.hpc.viewer.scope.CallingContextActionsGUI.addTooBarAction ( CoolBar  coolbar  )  [protected]
Composite edu.rice.cs.hpc.viewer.scope.CallingContextActionsGUI.buildGUI ( Composite  parent,
CoolBar  coolbar 
)

Method to start to build the GUI for the actions.

Parameters:
parent 
Returns:
toolbar composite

Reimplemented from edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.

Definition at line 48 of file CallingContextActionsGUI.java.

References edu.rice.cs.hpc.viewer.scope.CallingContextActionsGUI.addTooBarAction(), and edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.finalizeToolBar().

void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.createCoolItem ( CoolBar  coolBar,
Control  toolBar 
) [protected, inherited]
void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.disableNodeButtons (  )  [inherited]
void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.displayRootExperiment (  )  [protected, inherited]
void edu.rice.cs.hpc.viewer.scope.CallingContextActionsGUI.enableActions (  ) 
void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.enableHotCallPath ( boolean  enabled  )  [inherited]
void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.enableZoomIn ( boolean  enabled  )  [inherited]

Check zoom buttons (zoom out and zoom in).

Parameters:
node,: the current selected node

Implements edu.rice.cs.hpc.viewer.scope.IScopeActionsGUI.

Definition at line 390 of file ScopeViewActionsGUI.java.

References edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.tiZoomin.

void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.enableZoomOut ( boolean  enabled  )  [inherited]
void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.exportCSV (  )  [protected, inherited]
void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.finalizeToolBar ( Composite  parent,
CoolBar  coolBar 
) [protected, inherited]
Scope edu.rice.cs.hpc.viewer.scope.CallingContextActionsGUI.getSelectedScope (  )  [private]
void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.hideMetricColumn ( TreeColumn  column  )  [inherited]

Hiding a metric column.

Parameters:
iColumnPosition,: the index of the metric

Definition at line 273 of file ScopeViewActionsGUI.java.

References edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.COLUMN_DATA_WIDTH.

Referenced by edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.setColumnsStatus().

void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.insertParentNode ( Scope  nodeParent  )  [inherited]
void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.resetActions (  )  [inherited]
void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.resizeTableColumns (  )  [inherited]

Resize the columns automatically ATT: Please call this method once the data has been populated.

Implements edu.rice.cs.hpc.viewer.scope.IScopeActionsGUI.

Definition at line 198 of file ScopeViewActionsGUI.java.

References edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.treeViewer.

Referenced by edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.updateContent().

void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.restoreMessage (  )  [inherited]
void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.setColumnsStatus ( boolean[]  status  )  [inherited]
void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.setTreeViewer ( ScopeTreeViewer  tree  )  [inherited]

Set the new tree viewer.

Parameters:
tree 

Implements edu.rice.cs.hpc.viewer.scope.IScopeActionsGUI.

Definition at line 142 of file ScopeViewActionsGUI.java.

References edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.treeViewer.

void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.showColumnsProperties (  )  [protected, inherited]
void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.showErrorMessage ( String  sMsg  )  [inherited]

Show an error message on the message bar.

It is the caller responsibility to remove the message

Parameters:
sMsg 

Implements edu.rice.cs.hpc.viewer.scope.IScopeActionsGUI.

Definition at line 237 of file ScopeViewActionsGUI.java.

References edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.clrRED, and edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.lblMessage.

void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.showInfoMessage ( String  sMsg  )  [inherited]
void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.showWarningMessagge ( String  sMsg  )  [inherited]

Show a warning message (with yellow background).

The caller has to remove the message and restore it to the original state by calling restoreMessage() method

Implements edu.rice.cs.hpc.viewer.scope.IScopeActionsGUI.

Definition at line 227 of file ScopeViewActionsGUI.java.

References edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.clrYELLOW, and edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.lblMessage.

void edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.updateContent ( Experiment  exp,
RootScope  scope 
) [inherited]

Member Data Documentation

final Color edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.clrRED [protected, inherited]
IWorkbenchWindow edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.objWindow [protected, inherited]

The documentation for this class was generated from the following file:

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1