public abstract class BasicViewer
extends org.eclipse.jface.viewers.Viewer
JFace Viewer base abstract implementation.
Constructor and Description |
---|
BasicViewer(org.eclipse.swt.widgets.Composite parent)
Creates a new GeometryViewer.
|
Modifier and Type | Method and Description |
---|---|
ICamera |
getCamera()
Return the active camera.
|
javafx.embed.swt.FXCanvas |
getCanvas()
Getter method for the canvas in which the viewer is drawing its data.
|
java.lang.Object |
getInput()
Returns the active input scene model object.
|
IRenderer |
getRenderer()
Returns the renderer for this viewer.
|
abstract javafx.scene.Group |
getRoot()
Gets the topmost node in the scene graph.
|
org.eclipse.jface.viewers.ISelection |
getSelection()
Returns the currently active selection in the scene.
|
void |
setCamera(ICamera camera)
Sets the active camera displayed by the viewer.
|
void |
setInput(java.lang.Object newInput)
Sets the active scene, supports either INode or IScene.
|
void |
setSelection(org.eclipse.jface.viewers.ISelection selection,
boolean makeVisible)
Sets the selection in the scene.
|
public BasicViewer(org.eclipse.swt.widgets.Composite parent)
Creates a new GeometryViewer.
parent
- the parent widget to create the viewer inpublic IRenderer getRenderer()
Returns the renderer for this viewer.
public java.lang.Object getInput()
Returns the active input scene model object.
getInput
in interface org.eclipse.jface.viewers.IInputProvider
getInput
in class org.eclipse.jface.viewers.Viewer
Viewer.getInput()
public void setInput(java.lang.Object newInput)
Sets the active scene, supports either INode or IScene.
setInput
in class org.eclipse.jface.viewers.Viewer
public org.eclipse.jface.viewers.ISelection getSelection()
Returns the currently active selection in the scene.
getSelection
in interface org.eclipse.jface.viewers.ISelectionProvider
getSelection
in class org.eclipse.jface.viewers.Viewer
public void setSelection(org.eclipse.jface.viewers.ISelection selection, boolean makeVisible)
Sets the selection in the scene.
setSelection
in class org.eclipse.jface.viewers.Viewer
public void setCamera(ICamera camera)
Sets the active camera displayed by the viewer.
camera
- the camera to use to display the viewerpublic ICamera getCamera()
Return the active camera.
public javafx.embed.swt.FXCanvas getCanvas()
public abstract javafx.scene.Group getRoot()