Interface PerspectiveController


  • public interface PerspectiveController
    Controller to manage the perspective system. A perspective is a set of panels in the user interface. 'Overview', 'Data Laboratory' and 'Preview' are the default perspectives.

    The default perspective implementations can be found in the 'Desktop Perspective' module.

    The property org.gephi.perspective.default can be added at startup to change the default starting perspective:

    • org.gephi.perspective.default=OverviewGroup
    • org.gephi.perspective.default=LaboratoryGroup
    • org.gephi.perspective.default=PreviewGroup
    Author:
    Mathieu Bastian
    See Also:
    Perspective
    • Method Detail

      • getSelectedPerspective

        Perspective getSelectedPerspective()
        Returns the selected perspective or null if no perspective is selected. By default the 'Overview' perspective is selected.
        Returns:
        the currently selected perspective or null
      • getPerspectives

        Perspective[] getPerspectives()
        Returns all perspectives installed. This is equivalent to Lookup.getDefault().lookupAll(Perspective.class).
        Returns:
        all installed perspectives
      • selectPerspective

        void selectPerspective​(Perspective perspective)
        Switch the current perspective to the given perspective. Only one perspective can be selected at a time.
        Parameters:
        perspective - the perspective to select