|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.swt.widgets.Canvas
com.cmpware.ide.views.Node
public class Node
This class implements the graphical view of the processor array. It mirrors the data in the Multiprocessor model.
Copyright (c) 2004, 2005 Cmpware, Inc. All Rights Reserved.
| Field Summary | |
|---|---|
static java.lang.String |
copyright
Copyright string |
| Fields inherited from class org.eclipse.swt.widgets.Control |
|---|
handle |
| Constructor Summary | |
|---|---|
Node(org.eclipse.swt.widgets.Composite parent,
int row,
int col)
Create the Node. |
|
| Method Summary | |
|---|---|
void |
dispose()
|
int |
getCol()
This method returns the column of the processor represented by this node. |
int |
getRow()
This method returns the row of the processor represented by this node. |
int |
getScaleFactor()
This method returns the current zoom-in scale factor. |
static Node |
getSelectedNode()
This static method returns the currently selected node. |
void |
initialize(int row,
int col)
This method (re-)initializes the data which drives the display. |
void |
mouseDoubleClick(org.eclipse.swt.events.MouseEvent e)
|
void |
mouseDown(org.eclipse.swt.events.MouseEvent e)
|
void |
mouseUp(org.eclipse.swt.events.MouseEvent e)
|
void |
paintControl(org.eclipse.swt.events.PaintEvent event)
|
void |
selectNode()
Select this node. |
void |
setIdle()
Deprecated. Use setState() |
void |
setRunning()
Deprecated. Use setState() |
void |
setScaleFactor(int scaleFactor)
This method sets the zoom-in scale factor. |
void |
setState()
This method replaces the setIdle() and setRunning() methods. |
| Methods inherited from class org.eclipse.swt.widgets.Canvas |
|---|
drawBackground, getCaret, scroll, setCaret, setFont |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
|---|
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
|---|
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Control |
|---|
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
|---|
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String copyright
| Constructor Detail |
|---|
public Node(org.eclipse.swt.widgets.Composite parent,
int row,
int col)
parent - The parent SWT object| Method Detail |
|---|
public void initialize(int row,
int col)
row - The row of the processor represented by this Node.col - The column of the processor represented by this Node.public void dispose()
dispose in class org.eclipse.swt.widgets.Widgetpublic void setState()
public void setIdle()
public void setRunning()
public void paintControl(org.eclipse.swt.events.PaintEvent event)
paintControl in interface org.eclipse.swt.events.PaintListenerpublic void setScaleFactor(int scaleFactor)
scaleFactor - The scale factor.public int getScaleFactor()
public void mouseDoubleClick(org.eclipse.swt.events.MouseEvent e)
mouseDoubleClick in interface org.eclipse.swt.events.MouseListenerpublic void mouseDown(org.eclipse.swt.events.MouseEvent e)
mouseDown in interface org.eclipse.swt.events.MouseListenerpublic void mouseUp(org.eclipse.swt.events.MouseEvent e)
mouseUp in interface org.eclipse.swt.events.MouseListenerpublic void selectNode()
public int getRow()
public int getCol()
public static Node getSelectedNode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||