Interface IPerspective
-
- All Superinterfaces:
IPropertyObject
,ITypedPropertyObject
- All Known Implementing Classes:
Perspective2D
,Perspective3D
public interface IPerspective extends ITypedPropertyObject
A perspective responsible for displaying information gathered using a view.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addVisual(java.lang.Object id, java.lang.Object visual)
Adds a new visual object.java.lang.String
getName()
Returns the name of the perspectiveIObserverCenter
getObserverCenter()
Get the ObserverCenter.boolean
getOpenGl()
Gets whether to try to use OpenGL.java.lang.Object
getSelectedObject()
Returns the currently selected object.java.awt.Component
getView()
Gets the view component of the perspective.void
refresh()
Refreshes the perspective.void
removeVisual(java.lang.Object id)
Removes a new visual object.void
reset()
Resets position and flushes render infovoid
resetZoomAndPosition()
Resets position of the perspective.void
setName(java.lang.String name)
Sets the name of the perspectivevoid
setObserverCenter(IObserverCenter obscenter)
Sets the ObserverCenter.boolean
setOpenGl(boolean opengl)
Sets whether to try to use OpenGL.void
setSelectedObject(java.lang.Object obj)
Sets the selected object.-
Methods inherited from interface jadex.commons.IPropertyObject
getProperty, getPropertyNames, hasProperty, setProperty
-
Methods inherited from interface jadex.commons.meta.ITypedPropertyObject
getMetaData, getMetaDatas
-
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the name of the perspective- Returns:
- name of the perspective
-
setName
void setName(java.lang.String name)
Sets the name of the perspective- Parameters:
name
- name of the perspective
-
getSelectedObject
java.lang.Object getSelectedObject()
Returns the currently selected object.- Returns:
- currently selected object
-
setSelectedObject
void setSelectedObject(java.lang.Object obj)
Sets the selected object.- Parameters:
obj
- selected object
-
setObserverCenter
void setObserverCenter(IObserverCenter obscenter)
Sets the ObserverCenter.- Parameters:
obscenter
- the ObserverCenter
-
getObserverCenter
IObserverCenter getObserverCenter()
Get the ObserverCenter.- Returns:
- The observer center.
-
addVisual
void addVisual(java.lang.Object id, java.lang.Object visual)
Adds a new visual object.- Parameters:
id
- identifier of the objectvisual
- the visual object
-
removeVisual
void removeVisual(java.lang.Object id)
Removes a new visual object.- Parameters:
id
- identifier of the object
-
getView
java.awt.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
-
-