Package org.gephi.perspective.api
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Perspective[]
getPerspectives()
Returns all perspectives installed.Perspective
getSelectedPerspective()
Returns the selected perspective ornull
if no perspective is selected.void
selectPerspective(Perspective perspective)
Switch the current perspective to the given perspective.
-
-
-
Method Detail
-
getSelectedPerspective
Perspective getSelectedPerspective()
Returns the selected perspective ornull
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 toLookup.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
-
-