public class ObserverCenter extends Object
Constructor and Description |
---|
ObserverCenter(String title,
IEnvironmentSpace space,
ClassLoader classloader,
List plugins,
boolean killonexit)
Creates an observer center.
|
Modifier and Type | Method and Description |
---|---|
void |
addDataView(String name,
IDataView dataview)
Adds an additional dataview.
|
IFuture<Void> |
addPerspective(String name,
IPerspective perspective)
Adds a perspective.
|
void |
addSelectedObjectListener(ChangeListener listener)
Adds a listener for change of the selected object
|
void |
dispose()
Dispose the observer center.
|
void |
fireSelectedObjectChange()
Fires a selected object change event.
|
ClassLoader |
getClassLoader()
Get the class loader.
|
Map |
getDataViews()
Returns the available dataviews.
|
Map |
getPerspectives()
Returns the available perspectives.
|
IDataView |
getSelectedDataView()
Returns the selected dataview.
|
String |
getSelectedDataViewName()
Returns the selected dataview name.
|
IPerspective |
getSelectedPerspective()
Returns the selected perspective.
|
AbstractEnvironmentSpace |
getSpace()
Returns the space.
|
void |
removeSelectedObjectListener(ChangeListener listener)
Removes a listener for change of the selected object
|
void |
setOpenGLMode(String name,
boolean opengl)
Sets the OpenGL mode for a perspective
|
void |
setSelectedDataView(String name)
Sets the selected dataview.
|
void |
setSelectedPerspective(String name)
Sets the selected perspective.
|
public ObserverCenter(String title, IEnvironmentSpace space, ClassLoader classloader, List plugins, boolean killonexit)
title
- title of the observer windowspace
- the space being observedclassloader
- the application class loader for loading resources (images etc.)plugins
- custom plugins used in the observerpublic void addDataView(String name, IDataView dataview)
name
- name of the dataviewdataview
- an additional dataviewpublic Map getDataViews()
public IDataView getSelectedDataView()
public String getSelectedDataViewName()
public void setSelectedDataView(String name)
name
- name of the dataview to be selectedpublic IFuture<Void> addPerspective(String name, IPerspective perspective)
name
- name of the perspectiveperspective
- the perspectivepublic Map getPerspectives()
public IPerspective getSelectedPerspective()
public void setSelectedPerspective(String name)
name
- name of the perspectivepublic void setOpenGLMode(String name, boolean opengl)
name
- name of the perspectiveopengl
- true to activate OpenGL modepublic AbstractEnvironmentSpace getSpace()
public void addSelectedObjectListener(ChangeListener listener)
object
- listenerpublic void removeSelectedObjectListener(ChangeListener listener)
object
- listenerpublic void fireSelectedObjectChange()
public void dispose()
public ClassLoader getClassLoader()
Copyright © 2012. All Rights Reserved.