jadex.application.space.envsupport.observer.perspective
Interface IPerspective

All Superinterfaces:
IPropertyObject, ITypedPropertyObject
All Known Implementing Classes:
Perspective2D

public interface IPerspective
extends ITypedPropertyObject

A perspective responsible for displaying information gathered using a view.


Method Summary
 void addVisual(Object id, Object visual)
          Adds a new visual object.
 String getName()
          Returns the name of the perspective
 ObserverCenter getObserverCenter()
          Get the ObserverCenter.
 boolean getOpenGl()
          Gets whether to try to use OpenGL.
 Object getSelectedObject()
          Returns the currently selected object.
 Component getView()
          Gets the view component of the perspective.
 void refresh()
          Refreshes the perspective.
 void removeVisual(Object id)
          Removes a new visual object.
 void reset()
          Resets position and flushes render info
 void resetZoomAndPosition()
          Resets position of the perspective.
 void setName(String name)
          Sets the name of the perspective
 void setObserverCenter(ObserverCenter obscenter)
          Sets the ObserverCenter.
 boolean setOpenGl(boolean opengl)
          Sets whether to try to use OpenGL.
 void setSelectedObject(Object obj)
          Sets the selected object.
 
Methods inherited from interface jadex.commons.meta.ITypedPropertyObject
getMetaData, getMetaDatas
 
Methods inherited from interface jadex.commons.IPropertyObject
getProperty, getPropertyNames, hasProperty, setProperty
 

Method Detail

getName

String getName()
Returns the name of the perspective

Returns:
name of the perspective

setName

void setName(String name)
Sets the name of the perspective

Parameters:
name - name of the perspective

getSelectedObject

Object getSelectedObject()
Returns the currently selected object.

Returns:
currently selected object

setSelectedObject

void setSelectedObject(Object obj)
Sets the selected object.

Parameters:
obj - selected object

setObserverCenter

void setObserverCenter(ObserverCenter obscenter)
Sets the ObserverCenter.

Parameters:
obscenter - the ObserverCenter

getObserverCenter

ObserverCenter getObserverCenter()
Get the ObserverCenter.

Returns:
The observer center.

addVisual

void addVisual(Object id,
               Object visual)
Adds a new visual object.

Parameters:
id - identifier of the object
visual - the visual object

removeVisual

void removeVisual(Object id)
Removes a new visual object.

Parameters:
id - identifier of the object

getView

Component getView()
Gets the view component of the perspective.

Returns:
the view component

refresh

void refresh()
Refreshes the perspective.


getOpenGl

boolean getOpenGl()
Gets whether to try to use OpenGL.

Returns:
true, if attempt should be made to use OpenGL

resetZoomAndPosition

void resetZoomAndPosition()
Resets position of the perspective.


reset

void reset()
Resets position and flushes render info


setOpenGl

boolean setOpenGl(boolean opengl)
Sets whether to try to use OpenGL.

Parameters:
opengl - true, if attempt should be made to use OpenGL


Copyright © 2010. All Rights Reserved.