com.cmpware.ide.views
Class ArrayView

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.ViewPart
              extended by com.cmpware.ide.views.ArrayView
All Implemented Interfaces:
IListener, IZoomable, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.part.IWorkbenchPartOrientation

public class ArrayView
extends org.eclipse.ui.part.ViewPart
implements IListener, IZoomable

This class implements the graphical view of the processor array.

Copyright (c) 2004 Cmpware, Inc. All Rights Reserved.

Author:
SAG

Field Summary
static java.lang.String copyright
          Copyright string
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
ArrayView()
           
 
Method Summary
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
          Create the view
 void flipHoriz()
          This method 'flips' the array across a horizontal axis.
 void flipVert()
          This method 'flips' the array across a vertical axis.
 void handleEvent(int eventType)
          This method is called upon receipt of an event.
 void setFocus()
           
 void zoomIn()
          This method zooms the view in one level.
 void zoomOut()
          This method zooms the view out one level.
 
Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPropertyListener, dispose, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

copyright

public static final java.lang.String copyright
Copyright string

See Also:
Constant Field Values
Constructor Detail

ArrayView

public ArrayView()
Method Detail

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
Create the view

Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Specified by:
createPartControl in class org.eclipse.ui.part.WorkbenchPart
Parameters:
parent - The parent SWT object

setFocus

public void setFocus()
Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
Specified by:
setFocus in class org.eclipse.ui.part.WorkbenchPart

handleEvent

public void handleEvent(int eventType)
Description copied from interface: IListener
This method is called upon receipt of an event.

Specified by:
handleEvent in interface IListener
Parameters:
eventType - a code giving the event type.

zoomOut

public void zoomOut()
Description copied from interface: IZoomable
This method zooms the view out one level.

Specified by:
zoomOut in interface IZoomable

zoomIn

public void zoomIn()
Description copied from interface: IZoomable
This method zooms the view in one level.

Specified by:
zoomIn in interface IZoomable

flipHoriz

public void flipHoriz()
This method 'flips' the array across a horizontal axis. This alternatively puts the Processor(0,0) node in the upper left or lower left corner. This is useful for software which may prefer a certain direction be 'up'. It does not change the array topology; only the display is 'flipped'.


flipVert

public void flipVert()
This method 'flips' the array across a vertical axis. This alternatively puts the Processor(0,0) node in the upper left or upper right corner. This is useful for software which may prefer a certain direction be 'up'. It does not change the array topology; only the display is 'flipped'.