public class ObserverCenter extends Object implements IObserverCenter
Constructor and Description |
---|
ObserverCenter() |
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.
|
void |
startObserver(String title,
IEnvironmentSpace space,
ClassLoader classloader,
List plugins,
boolean killonexit)
Starts an observer center.
|
public void startObserver(String title, IEnvironmentSpace space, ClassLoader classloader, List plugins, boolean killonexit)
startObserver
in interface IObserverCenter
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()
getSelectedDataView
in interface IObserverCenter
public String getSelectedDataViewName()
public void setSelectedDataView(String name)
name
- name of the dataview to be selectedpublic IFuture<Void> addPerspective(String name, IPerspective perspective)
addPerspective
in interface IObserverCenter
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()
getSpace
in interface IObserverCenter
public void addSelectedObjectListener(ChangeListener listener)
object
- listenerpublic void removeSelectedObjectListener(ChangeListener listener)
object
- listenerpublic void fireSelectedObjectChange()
fireSelectedObjectChange
in interface IObserverCenter
public void dispose()
dispose
in interface IObserverCenter
public ClassLoader getClassLoader()
getClassLoader
in interface IObserverCenter
Copyright © 2013. All Rights Reserved.