TPTP 4.1.0 Tracing and Profiling Tools Project
Internal API Specification

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

java.lang.Object
  extended byorg.eclipse.hyades.trace.views.internal.StdDrawStrategy
      extended byorg.eclipse.hyades.trace.views.internal.GraphDrawStrategy
          extended byorg.eclipse.hyades.trace.views.internal.PatternDrawStrategy
All Implemented Interfaces:
org.eclipse.swt.events.DisposeListener, DrawStrategy, java.util.EventListener, org.eclipse.swt.events.KeyListener, org.eclipse.swt.events.MouseListener, org.eclipse.swt.events.MouseMoveListener, org.eclipse.swt.internal.SWTEventListener

public class PatternDrawStrategy
extends GraphDrawStrategy


Field Summary
protected  float _canvasVisibleBottom
           
protected  float _canvasVisibleLeft
           
protected  float _canvasVisibleRight
           
protected  float _canvasVisibleTop
           
protected  boolean _collectedempty
           
protected  org.eclipse.hyades.models.trace.TRCMethodInvocation[] _drawArray
           
protected  float[] _h
           
protected  int _maxdepth
           
protected  long _maxtime
           
protected  java.util.ArrayList _popupThreads
           
protected  java.lang.Object[] _tmpArray
           
protected  java.util.ArrayList _visibleThreads
           
protected  float[] _w
           
protected  float[] _x
           
protected  float[] _y
           
protected static int MAXINV
           
 
Fields inherited from class org.eclipse.hyades.trace.views.internal.GraphDrawStrategy
_restoreAction, fSeparator
 
Fields inherited from class org.eclipse.hyades.trace.views.internal.StdDrawStrategy
_canvas, _controlDown, _dragScrolling, _lastx, _lasty, _mousePressed, _nonpropzoom, _origx, _origy, _shiftDown, fHeight, fWidth
 
Constructor Summary
PatternDrawStrategy(Pattern parent)
           
 
Method Summary
 void bgRedraw(org.eclipse.swt.graphics.GC gc)
           
protected  int cellHeight()
           
protected  int cellWidth()
           
protected  void detectLinearPatterns()
           
protected  void detectLinearPatterns(org.eclipse.hyades.models.trace.TRCMethodInvocation root)
           
protected  void drawGC(org.eclipse.swt.graphics.GC gc, int offx, int offy)
           
protected  void drawThread(org.eclipse.swt.graphics.GC gc, org.eclipse.hyades.models.trace.TRCThread thread, float offx, float offy)
           
protected  void drawTimeMarks(org.eclipse.swt.graphics.GC gc, int offx, int offy)
           
protected  void drawTree(org.eclipse.swt.graphics.GC gc, org.eclipse.hyades.models.trace.TRCMethodInvocation invocation, int depth, float offx, float offy)
           
 void fillContextMenu(org.eclipse.jface.action.IMenuManager menu)
          This method should fill (or update) the given menu.
protected  void flushDrawArray(org.eclipse.swt.graphics.GC gc)
           
protected  int gcWidth()
           
protected  boolean hasThread(org.eclipse.hyades.models.trace.TRCThread thread)
           
 float height()
           
protected  void initDrawArray()
           
 void keyPressed(org.eclipse.swt.events.KeyEvent e)
           
protected  LinearPattern linearPattern(org.eclipse.hyades.models.trace.TRCMethodInvocation inv)
           
 void mouseDown(org.eclipse.swt.events.MouseEvent e)
           
 void mouseUp(org.eclipse.swt.events.MouseEvent e)
           
 void moved(float x, float y)
           
protected  void push(org.eclipse.swt.graphics.GC gc, int i, org.eclipse.hyades.models.trace.TRCMethodInvocation inv, float x, float y, float w, float h)
           
 void redraw()
           
protected  void removeLinearPatterns()
           
protected  void removeLinearPatterns(org.eclipse.hyades.models.trace.TRCMethodInvocation root)
           
 void selected(float x, float y, boolean shiftdown, boolean controldown, boolean metadown)
           
 void setDrawMode(int drawMode)
           
 void shutdown()
           
protected  void status(java.lang.String s)
           
protected  org.eclipse.hyades.models.trace.TRCMethodInvocation subtreeContains(org.eclipse.hyades.models.trace.TRCMethodInvocation invocation, float xs, float ys, int d)
           
 java.lang.String title()
           
protected  int titleMargin()
           
protected  int treeWidth()
           
 float width()
           
 
Methods inherited from class org.eclipse.hyades.trace.views.internal.StdDrawStrategy
constrainAspect, dragZoomed, drawZoomRect, getHeight, getWidth, isDirty, isDirtyAndReset, isNonPropZoom, jcanvas, jcanvas, keyReleased, keyTyped, left, mouseDoubleClick, mouseMove, resetArea, setDirty, setHeight, setNonPropZoom, setWidth, top, widgetDisposed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_visibleThreads

protected java.util.ArrayList _visibleThreads

_popupThreads

protected java.util.ArrayList _popupThreads

_tmpArray

protected java.lang.Object[] _tmpArray

_maxdepth

protected int _maxdepth

_maxtime

protected long _maxtime

_collectedempty

protected boolean _collectedempty

_canvasVisibleBottom

protected float _canvasVisibleBottom

_canvasVisibleTop

protected float _canvasVisibleTop

_canvasVisibleLeft

protected float _canvasVisibleLeft

_canvasVisibleRight

protected float _canvasVisibleRight

MAXINV

protected static final int MAXINV
See Also:
Constant Field Values

_drawArray

protected org.eclipse.hyades.models.trace.TRCMethodInvocation[] _drawArray

_x

protected float[] _x

_y

protected float[] _y

_w

protected float[] _w

_h

protected float[] _h
Constructor Detail

PatternDrawStrategy

public PatternDrawStrategy(Pattern parent)
Method Detail

bgRedraw

public void bgRedraw(org.eclipse.swt.graphics.GC gc)

cellHeight

protected int cellHeight()

cellWidth

protected int cellWidth()

detectLinearPatterns

protected void detectLinearPatterns()

detectLinearPatterns

protected void detectLinearPatterns(org.eclipse.hyades.models.trace.TRCMethodInvocation root)

drawGC

protected void drawGC(org.eclipse.swt.graphics.GC gc,
                      int offx,
                      int offy)

drawThread

protected void drawThread(org.eclipse.swt.graphics.GC gc,
                          org.eclipse.hyades.models.trace.TRCThread thread,
                          float offx,
                          float offy)

drawTimeMarks

protected void drawTimeMarks(org.eclipse.swt.graphics.GC gc,
                             int offx,
                             int offy)

drawTree

protected void drawTree(org.eclipse.swt.graphics.GC gc,
                        org.eclipse.hyades.models.trace.TRCMethodInvocation invocation,
                        int depth,
                        float offx,
                        float offy)

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.

Overrides:
fillContextMenu in class GraphDrawStrategy

flushDrawArray

protected void flushDrawArray(org.eclipse.swt.graphics.GC gc)

gcWidth

protected int gcWidth()

hasThread

protected boolean hasThread(org.eclipse.hyades.models.trace.TRCThread thread)

height

public float height()

initDrawArray

protected void initDrawArray()

keyPressed

public void keyPressed(org.eclipse.swt.events.KeyEvent e)
Specified by:
keyPressed in interface org.eclipse.swt.events.KeyListener
Overrides:
keyPressed in class StdDrawStrategy

linearPattern

protected LinearPattern linearPattern(org.eclipse.hyades.models.trace.TRCMethodInvocation inv)

mouseDown

public void mouseDown(org.eclipse.swt.events.MouseEvent e)
Specified by:
mouseDown in interface org.eclipse.swt.events.MouseListener
Overrides:
mouseDown in class StdDrawStrategy

mouseUp

public void mouseUp(org.eclipse.swt.events.MouseEvent e)
Specified by:
mouseUp in interface org.eclipse.swt.events.MouseListener
Overrides:
mouseUp in class StdDrawStrategy

moved

public void moved(float x,
                  float y)

push

protected void push(org.eclipse.swt.graphics.GC gc,
                    int i,
                    org.eclipse.hyades.models.trace.TRCMethodInvocation inv,
                    float x,
                    float y,
                    float w,
                    float h)

redraw

public void redraw()

removeLinearPatterns

protected void removeLinearPatterns()

removeLinearPatterns

protected void removeLinearPatterns(org.eclipse.hyades.models.trace.TRCMethodInvocation root)

selected

public void selected(float x,
                     float y,
                     boolean shiftdown,
                     boolean controldown,
                     boolean metadown)

shutdown

public void shutdown()

status

protected void status(java.lang.String s)

subtreeContains

protected org.eclipse.hyades.models.trace.TRCMethodInvocation subtreeContains(org.eclipse.hyades.models.trace.TRCMethodInvocation invocation,
                                                                              float xs,
                                                                              float ys,
                                                                              int d)

title

public java.lang.String title()

titleMargin

protected int titleMargin()

treeWidth

protected int treeWidth()

width

public float width()

setDrawMode

public void setDrawMode(int drawMode)

TPTP 4.1.0 Tracing and Profiling Tools Project
Internal API Specification