Package org.gephi.datalab.spi
Interface ManipulatorUI
-
public interface ManipulatorUIUI Manipulators can provide.
Must provide a JPanel, a window name/title and indicate if it is modal.
The panel will be shown in a dialog with Ok/Cancel options only.
The ok button can be enabled/disabled with the
DialogControlsinstance passed at setup- Author:
- Eduardo Ramos
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDisplayName()Returns name/title for the windowJPanelgetSettingsPanel()Returns a settings panel instance for this Manipulator.booleanisModal()Indicates if the created dialog has to be modalvoidsetup(Manipulator m, DialogControls dialogControls)Prepare this UI to be able to interact with its Manipulator.voidunSetup()Called when the dialog is closed, canceled or accepted.
-
-
-
Method Detail
-
setup
void setup(Manipulator m, DialogControls dialogControls)
Prepare this UI to be able to interact with its Manipulator.- Parameters:
m- Manipulator for the UIdialogControls- Used to enable/disable the dialog controls
-
unSetup
void unSetup()
Called when the dialog is closed, canceled or accepted.
-
getDisplayName
String getDisplayName()
Returns name/title for the window- Returns:
- Name/title for the window
-
getSettingsPanel
JPanel getSettingsPanel()
Returns a settings panel instance for this Manipulator.- Returns:
- Settings panel instance
-
isModal
boolean isModal()
Indicates if the created dialog has to be modal- Returns:
- True if modal, false otherwise
-
-