public class PerspectiveControllerImpl extends Object implements PerspectiveController
| Modifier and Type | Field and Description |
|---|---|
private Perspective[] |
perspectives |
private static String |
SELECTED_PERSPECTIVE_PREFERENCE |
private String |
selectedPerspective |
| Constructor and Description |
|---|
PerspectiveControllerImpl() |
| Modifier and Type | Method and Description |
|---|---|
Perspective[] |
getPerspectives()
Returns all perspectives installed.
|
Perspective |
getSelectedPerspective()
Returns the selected perspective or
null if no perspective
is selected. |
private void |
openAndCloseMembers(Perspective perspective) |
void |
selectPerspective(Perspective perspective)
Switch the current perspective to the given perspective.
|
private static final String SELECTED_PERSPECTIVE_PREFERENCE
private String selectedPerspective
private final Perspective[] perspectives
public Perspective[] getPerspectives()
PerspectiveControllerLookup.getDefault().lookupAll(Perspective.class).getPerspectives in interface PerspectiveControllerpublic Perspective getSelectedPerspective()
PerspectiveControllernull if no perspective
is selected. By default the 'Overview' perspective is selected.getSelectedPerspective in interface PerspectiveControllernullpublic void selectPerspective(Perspective perspective)
PerspectiveControllerselectPerspective in interface PerspectiveControllerperspective - the perspective to selectprivate void openAndCloseMembers(Perspective perspective)
Copyright © 2007–2017 Gephi Consortium. All rights reserved.