public interface Manipulator
General and abstract manipulation action to use for Data Laboratory table UI and other actions like Graph context menu items in Overview.
Different subtypes of manipulators are defined for every type of action in the UI.
All manipulator types are able to:
Used for different manipulators such as NodesManipulator, EdgesManipulator and GeneralActionsManipulator.
The only methods that are called before setting up a manipulator (subtypes have special setup methods) with the data are getType and getPosition. This way, the other methods behaviour can depend on the data that has been setup before
NodesManipulator
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute()
Indicates if this Manipulator has to be executable.
|
void |
execute()
Execute this Manipulator.
|
String |
getDescription()
Description of the Manipulator.
|
Icon |
getIcon()
Returns an icon for this manipulator if necessary.
|
String |
getName()
Return name to show for this Manipulator on the ui.
|
int |
getPosition()
Returns a position value that indicates the position
of this Manipulator in its type group.
|
int |
getType()
Type of manipulator.
|
ManipulatorUI |
getUI()
Returns a ManipulatorUI for this Manipulator if it needs one.
|
void execute()
String getName()
Return name to show for this Manipulator on the ui.
Implementations can provide different names depending on the data this Manipulator has (for example depending on the number of nodes in a NodesManipulator).
String getDescription()
boolean canExecute()
ManipulatorUI getUI()
int getType()
int getPosition()
Icon getIcon()
Copyright © 2007–2015 Gephi Consortium. All rights reserved.