Package org.gephi.perspective.spi
Interface Perspective
-
public interface Perspective
Define a group of components which are showed in the banner. Overview, Data Laboratory and Preview are perspectives.Create a new Perspective
- Create a new module and set
Perspective API
, andLookup API
as dependencies. - Create a new implementation of perspective and fill methods.
- Add
@ServiceProvider
annotation to your class to be found by the system, like @ServiceProvider(service = Perspective.class, position = 500). - Set the position to define the order of appearance, Overview is 100, Preview is 300.
- Author:
- Mathieu Bastian
- Create a new module and set
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDisplayName()
Return the name to display in the user interface.Icon
getIcon()
Return the icon of the perspective.String
getName()
Return a unique identifier for this perspective.
-
-
-
Method Detail
-
getDisplayName
String getDisplayName()
Return the name to display in the user interface.- Returns:
- the perspective display name
-
getName
String getName()
Return a unique identifier for this perspective.- Returns:
- the name of the perspective
-
getIcon
Icon getIcon()
Return the icon of the perspective.- Returns:
- the perspective's icon, or
null
-
-