public interface IOperatorGUI
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Custom routine for disposing the GUI, may be overridden.
|
void |
disableInputs()
Disables inputs on the GUI elements.
|
void |
enableInputs()
Enables or re-enables inputs on the GUI elements.
|
String |
getOpName()
Gets the operator's name associated with this GUI.
|
IWorkPackage |
getWorkPackage()
Gets the work package of an operator GUI using the current parameters set
by the custom GUI elements.
|
void |
initialize()
Initialize the default settings for an
IOperatorGUI, e.g. |
boolean |
isVisible()
Determines whether or not the GUI is currently visible to the user.
|
void |
reset()
Resets the GUI to it's default values and default parameters in the work
package.
|
void |
setOpName(String opName)
Sets the name of the operator to this GUI.
|
void |
setParameterValuesToGUI()
This method implements the initialization of the GUI.
|
void |
setVisible(boolean b)
A custom routine for setting the GUI visible (this may override the
default implementation when using
JFrame as base container
class). |
void |
setWorkPackage(IWorkPackage wp)
Sets the work package to the operator's GUI, so that the custom GUI
elements can be constructed using the parameter values.
|
void |
showPreview()
Performs a preview of the operator using the current work package.
|
void |
update()
Instruct the GUI to validate and repaint for updated parameters, e.g.
|
void |
updateParameterBlock()
Updates the parameter block in the work package using the current states
of the custom GUI elements.
|
void |
updateParameterBlock(ParameterBlockIQM pb)
Sets the parameter block in the work package.
|
void initialize()
IOperatorGUI, e.g. the
location of the window or the default close operation.void setVisible(boolean b)
JFrame as base container
class).boolean isVisible()
true if the GUI is displayed, false
otherwisevoid update()
throws Exception
This method alters the GUI elements in a container, if the input type is
non-standard for this operator GUI. Furthermore, this method is
responsible for setting the parameters to the elements and calls
updateParameterBlock() before setParameterValuesToGUI()
as last statements.
Exceptionvoid setWorkPackage(IWorkPackage wp)
wp - IWorkPackage getWorkPackage()
void setParameterValuesToGUI()
throws Exception
IOperatorGUI may be constructed empty or directly using a valid
IWorkPackage.
If the GUI is constructed empty, the work package must be set manually
using setWorkPackage(IWorkPackage) and setParameterValuesToGUI() must be called in order to set the parameter
values to the GUI.
Exceptionvoid updateParameterBlock()
throws Exception
Exceptionvoid updateParameterBlock(ParameterBlockIQM pb) throws Exception
ParameterBlockIQM instance in the work package.
Hint: This method call should be followed by
setParameterValuesToGUI() in order to update the GUI elements,
too.
pb - the parameter block containing the new dataExceptionvoid showPreview()
executeTask(AbstractProcessingTask).void reset()
void destroy()
void disableInputs()
void enableInputs()
void setOpName(String opName)
opName - String getOpName()
Copyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.