|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
org.eclipse.ohf.stem.ui.views.map.InternalMapView
public class InternalMapView
This code is no longer used and is kept for reference purposes only. Delete as needed. DAF This is the view of the internal graphics of STEM. The code creates an independent view inside STEM's perspective. The user has the ability to change the colors that are set when drawing the polygons, and the color of the view's background. The scale of the map can be chosen too, as well as the option to draw the polygons' borders and nearest neighbors.
Nested Class Summary | |
---|---|
class |
InternalMapView.TrackHandler
This class... |
class |
InternalMapView.TranslateHandler
A helper class that defines a mouse-listener that will provide the user the ability to move the map inside the view. |
Field Summary | |
---|---|
static int |
DEFAULT_INITIAL_SCALE_SELECTION
This is the default initial value selected for the scale (ruler) |
static java.lang.String |
ID_MAP_VIEW
The ID of the Map View. |
int |
mouseX
|
int |
mouseY
|
static int |
SCALE_MAXIMUM
The maximum value for the scale |
static int |
SCALE_MINIMUM
The minimum value for the scale |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
PROP_TITLE |
Constructor Summary | |
---|---|
InternalMapView()
Constructor |
Method Summary | |
---|---|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
|
void |
dispose()
|
void |
selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
This method is called whenever ANYTHING is selected in the Eclipse workbench. |
void |
setFocus()
This is required by the interface, but we're not using it. |
void |
simulationChanged(SimulationEvent event)
In case a specific simulation is changed during the cycle, the map is being updated respectively. |
void |
simulationsChanged(SimulationManagerEvent event)
The main view implements the ISimulationManagerListener interface, and therefore listens to the simulation manager that handles the simulations running in the system. |
Methods inherited from class org.eclipse.ui.part.ViewPart |
---|
getViewSite, init, init, saveState, setInitializationData |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
---|
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Field Detail |
---|
public static final java.lang.String ID_MAP_VIEW
public static final int DEFAULT_INITIAL_SCALE_SELECTION
SCALE_MINIMUM
,
SCALE_MAXIMUM
,
Constant Field Valuespublic static final int SCALE_MINIMUM
DEFAULT_INITIAL_SCALE_SELECTION
,
Constant Field Valuespublic static final int SCALE_MAXIMUM
DEFAULT_INITIAL_SCALE_SELECTION
,
Constant Field Valuespublic int mouseX
public int mouseY
Constructor Detail |
---|
public InternalMapView()
Method Detail |
---|
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
WorkbenchPart.createPartControl(org.eclipse.swt.widgets.Composite)
public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.ui.part.WorkbenchPart
WorkbenchPart.dispose()
public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
WorkbenchPart.setFocus()
public void selectionChanged(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
selectionChanged
in interface org.eclipse.ui.ISelectionListener
ISelectionListener.selectionChanged(org.eclipse.ui.IWorkbenchPart,
org.eclipse.jface.viewers.ISelection)
public void simulationsChanged(SimulationManagerEvent event)
simulationsChanged
in interface ISimulationManagerListener
event
- the eventpublic void simulationChanged(SimulationEvent event)
simulationChanged
in interface ISimulationListener
event
- the simulation event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |