TPTP 4.1.0 Tracing and Profiling Tools Project
Internal API Specification

org.eclipse.hyades.trace.views.internal
Class Pattern

java.lang.Object
  extended byorg.eclipse.hyades.trace.views.internal.Pattern
All Implemented Interfaces:
org.eclipse.swt.events.ControlListener, java.util.EventListener, org.eclipse.jface.viewers.ISelectionProvider, ITimeChangedListener, org.eclipse.swt.internal.SWTEventListener

public class Pattern
extends java.lang.Object
implements org.eclipse.swt.events.ControlListener, ITimeChangedListener, org.eclipse.jface.viewers.ISelectionProvider


Field Summary
protected  JCanvas _canvas
           
protected  PatternDrawStrategy _curDS
           
protected  boolean _initialized
           
protected  org.eclipse.jface.action.Action _openColorDialog
           
protected  PatternPage _page
           
protected  PatternDrawStrategy _patDS
           
protected  org.eclipse.swt.widgets.Label _status
           
protected  org.eclipse.jface.action.Action _updateAction
           
protected  org.eclipse.swt.custom.ViewForm dataPane
           
protected  org.eclipse.jface.action.Separator fSeparator
           
protected  float MAG_STEP
           
protected  org.eclipse.swt.widgets.Composite viewComp
           
protected  org.eclipse.swt.widgets.Composite viewContainer
           
 
Constructor Summary
Pattern(org.eclipse.swt.widgets.Composite parent, PatternPage page)
           
 
Method Summary
 void addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
          Adds a listener for selection changes in this selection provider.
 void close()
          Insert the method's description here.
 void controlMoved(org.eclipse.swt.events.ControlEvent e)
           
 void controlResized(org.eclipse.swt.events.ControlEvent event)
           
 void createControl(org.eclipse.swt.widgets.Composite parent)
          Insert the method's description here.
 void dispose()
           
 void fillContextMenu(org.eclipse.jface.action.IMenuManager menu)
          This method should fill (or update) the given menu.
 JCanvas getCanvas()
           
 org.eclipse.swt.widgets.Control getControl()
          Insert the method's description here.
 PatternPage getPage()
           
 org.eclipse.jface.viewers.ISelection getSelection()
          Returns the current selection for this provider.
 void handleTimeChangedEvent()
           
 void initialize()
          Insert the method's description here.
 boolean isEmpty()
           
 void menuAboutToShow(org.eclipse.jface.action.IMenuManager menu)
          Called when the context menu is about to open.
 void openExecutionStatisticView()
           
 void openSource()
          Insert the method's description here.
 void refresh()
           
 void removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
          Removes the given selection change listener from this selection provider.
 void resizeContent()
          Insert the method's description here.
 void selectionChanged()
           
 void setSelection(org.eclipse.jface.viewers.ISelection selection)
          Sets the current selection for this selection provider.
 void update()
          Insert the method's description here.
 void updateButtons()
          Insert the method's description here.
protected  void updateStatus(java.lang.String status)
           
protected  void updateTitle()
           
 void updateUI()
          Insert the method's description here.
 void zoomIn(boolean zoom)
          Insert the method's description here.
 void zoomOut(boolean zoom)
          Insert the method's description here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAG_STEP

protected final float MAG_STEP
See Also:
Constant Field Values

_status

protected org.eclipse.swt.widgets.Label _status

_canvas

protected JCanvas _canvas

_curDS

protected PatternDrawStrategy _curDS

_patDS

protected PatternDrawStrategy _patDS

_initialized

protected boolean _initialized

_page

protected PatternPage _page

viewContainer

protected org.eclipse.swt.widgets.Composite viewContainer

dataPane

protected org.eclipse.swt.custom.ViewForm dataPane

viewComp

protected org.eclipse.swt.widgets.Composite viewComp

_updateAction

protected org.eclipse.jface.action.Action _updateAction

_openColorDialog

protected org.eclipse.jface.action.Action _openColorDialog

fSeparator

protected org.eclipse.jface.action.Separator fSeparator
Constructor Detail

Pattern

public Pattern(org.eclipse.swt.widgets.Composite parent,
               PatternPage page)
Method Detail

getPage

public PatternPage getPage()

close

public void close()
Insert the method's description here. Creation date: (1/11/2001 2:57:06 PM)


controlMoved

public void controlMoved(org.eclipse.swt.events.ControlEvent e)
Specified by:
controlMoved in interface org.eclipse.swt.events.ControlListener

controlResized

public void controlResized(org.eclipse.swt.events.ControlEvent event)
Specified by:
controlResized in interface org.eclipse.swt.events.ControlListener

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Insert the method's description here. Creation date: (06/14/2000 3:36:09 PM)

Parameters:
parent - org.eclipse.swt.widgets.Composite
Returns:
org.eclipse.swt.widgets.Control

dispose

public void dispose()

fillContextMenu

public void fillContextMenu(org.eclipse.jface.action.IMenuManager menu)
This method should fill (or update) the given menu. It is called just before the menu opens.


getControl

public org.eclipse.swt.widgets.Control getControl()
Insert the method's description here. Creation date: (1/10/2001 2:33:22 PM)

Returns:
org.eclipse.swt.widgets.Control

initialize

public void initialize()
Insert the method's description here. Creation date: (06/15/2000 3:55:00 PM)


menuAboutToShow

public void menuAboutToShow(org.eclipse.jface.action.IMenuManager menu)
Called when the context menu is about to open.

See Also:
IFillMenuTarget#fillContextMenu

openSource

public void openSource()
Insert the method's description here. Creation date: (8/21/2001 6:31:49 PM)


resizeContent

public void resizeContent()
Insert the method's description here. Creation date: (10/17/2000 2:08:36 PM)


update

public void update()
Insert the method's description here. Creation date: (1/11/2001 2:57:06 PM)


updateStatus

protected void updateStatus(java.lang.String status)

updateTitle

protected void updateTitle()

updateUI

public void updateUI()
Insert the method's description here. Creation date: (1/11/2001 2:57:06 PM)


zoomIn

public void zoomIn(boolean zoom)
Insert the method's description here. Creation date: (1/11/2001 2:57:06 PM)


zoomOut

public void zoomOut(boolean zoom)
Insert the method's description here. Creation date: (1/11/2001 2:57:06 PM)


updateButtons

public void updateButtons()
Insert the method's description here. Creation date: (9/21/2001 4:00:57 PM)


handleTimeChangedEvent

public void handleTimeChangedEvent()
Specified by:
handleTimeChangedEvent in interface ITimeChangedListener

refresh

public void refresh()

selectionChanged

public void selectionChanged()

addSelectionChangedListener

public void addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
Adds a listener for selection changes in this selection provider. Has no effect if an identical listener is already registered.

Specified by:
addSelectionChangedListener in interface org.eclipse.jface.viewers.ISelectionProvider
Parameters:
listener - a selection changed listener

getSelection

public org.eclipse.jface.viewers.ISelection getSelection()
Returns the current selection for this provider.

Specified by:
getSelection in interface org.eclipse.jface.viewers.ISelectionProvider
Returns:
the current selection

removeSelectionChangedListener

public void removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
Removes the given selection change listener from this selection provider. Has no affect if an identical listener is not registered.

Specified by:
removeSelectionChangedListener in interface org.eclipse.jface.viewers.ISelectionProvider
Parameters:
listener - a selection changed listener

setSelection

public void setSelection(org.eclipse.jface.viewers.ISelection selection)
Sets the current selection for this selection provider.

Specified by:
setSelection in interface org.eclipse.jface.viewers.ISelectionProvider
Parameters:
selection - the new selection

getCanvas

public JCanvas getCanvas()
Returns:

isEmpty

public boolean isEmpty()

openExecutionStatisticView

public void openExecutionStatisticView()

TPTP 4.1.0 Tracing and Profiling Tools Project
Internal API Specification