Class WorldWindView
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
com.eco.bio7.worldwind.WorldWindView
- All Implemented Interfaces:
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.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation
public class WorldWindView
extends org.eclipse.ui.part.ViewPart
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.eclipse.swt.widgets.Textprotected booleanorg.eclipse.swt.widgets.Buttonstatic final Stringorg.eclipse.swt.widgets.ToolBarprotected intprotected intFields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcreateFullscreen(int i) The fullscreen mode of the globe in monitor i (0: the primary monitor, 1: the secondary monitor, etc.).voidcreatePartControl(org.eclipse.swt.widgets.Composite parent) Create contents of the view partvoiddispose()voidfullscreenKey(int key) The fullscreen keys of all Bio7 views (see NewtFullscreen): 2 (F2) the primary monitor (exits in fullscreen mode), 3 (F3) the secondary, 4 (F4) the tertiary monitor and 5 (F5) a selected monitor.static com.eco.bio7.rbridge.REvaluatorThe evaluation in R (embedded R) or null if R is not connected.com.eco.bio7.worldwind.FullscreengetFull()static WorldWindViewgetPanel()org.eclipse.swt.widgets.Compositestatic com.eco.bio7.worldwind.swt.WorldWindowNewtCanvasSWTgetWwd()static voidinsertBeforeCompass(gov.nasa.worldwind.WorldWindow wwd, gov.nasa.worldwind.layers.Layer layer) static booleanbooleanReturns true if the globe is displayed in fullscreen mode.voidvoidremoveImage(String imagePath) static voidsetEvaluatorSupplier(Supplier<com.eco.bio7.rbridge.REvaluator> supplier) Sets the evaluator of Bio7 (embedded R).voidsetFlatProjection(boolean flat) voidsetFocus()Passing the focus request to the viewer's control.voidsetFull(com.eco.bio7.worldwind.Fullscreen full) static voidstatic voidsetFullscreen(int i) Toggles the fullscreen mode of the globe in monitor i (0: the primary, 1: the secondary monitor, etc., like the fullscreen of the 3D view, see SpatialUtil.setFullscreen).static voidsetProjectionMode(int proj) voidsetStatusline(String message) Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartNameMethods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusyMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Field Details
-
ID
- See Also:
-
combo
public org.eclipse.swt.widgets.Text combo -
flyToButton
public org.eclipse.swt.widgets.Button flyToButton -
infoButton
public org.eclipse.swt.widgets.ToolBar infoButton -
tempSizeY
protected int tempSizeY -
tempSizeX
protected int tempSizeX -
detached
protected boolean detached
-
-
Constructor Details
-
WorldWindView
public WorldWindView()
-
-
Method Details
-
getWwd
public static com.eco.bio7.worldwind.swt.WorldWindowNewtCanvasSWT getWwd() -
getFull
public com.eco.bio7.worldwind.Fullscreen getFull() -
setFull
public void setFull(com.eco.bio7.worldwind.Fullscreen full) -
setFullscreen
public static void setFullscreen() -
setFullscreen
public static void setFullscreen(int i) Toggles the fullscreen mode of the globe in monitor i (0: the primary, 1: the secondary monitor, etc., like the fullscreen of the 3D view, see SpatialUtil.setFullscreen). -
getInstance
-
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent) Create contents of the view part- Specified by:
createPartControlin interfaceorg.eclipse.ui.IWorkbenchPart- Specified by:
createPartControlin classorg.eclipse.ui.part.WorkbenchPart- Parameters:
parent-
-
setStatusline
-
isFlatProjection
public static boolean isFlatProjection() -
setFlatProjection
public void setFlatProjection(boolean flat) -
setProjectionMode
public static void setProjectionMode(int proj) -
createFullscreen
public void createFullscreen(int i) The fullscreen mode of the globe in monitor i (0: the primary monitor, 1: the secondary monitor, etc.). -
isFullscreen
public boolean isFullscreen()Returns true if the globe is displayed in fullscreen mode. -
fullscreenKey
public void fullscreenKey(int key) The fullscreen keys of all Bio7 views (see NewtFullscreen): 2 (F2) the primary monitor (exits in fullscreen mode), 3 (F3) the secondary, 4 (F4) the tertiary monitor and 5 (F5) a selected monitor. -
recreateGLCanvas
public void recreateGLCanvas() -
addImage
- Throws:
IOException
-
removeImage
-
insertBeforeCompass
public static void insertBeforeCompass(gov.nasa.worldwind.WorldWindow wwd, gov.nasa.worldwind.layers.Layer layer) -
setFocus
public void setFocus()Passing the focus request to the viewer's control.- Specified by:
setFocusin interfaceorg.eclipse.ui.IWorkbenchPart- Specified by:
setFocusin classorg.eclipse.ui.part.WorkbenchPart
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.eclipse.ui.IWorkbenchPart- Overrides:
disposein classorg.eclipse.ui.part.WorkbenchPart
-
setEvaluatorSupplier
Sets the evaluator of Bio7 (embedded R). -
getEvaluator
public static com.eco.bio7.rbridge.REvaluator getEvaluator()The evaluation in R (embedded R) or null if R is not connected. -
getPanel
-
getTopComposite
public org.eclipse.swt.widgets.Composite getTopComposite()
-