Interface IPerspective

    • 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 object
        visual - 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