|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProcessorUI
Define processor settings user interface.
Declared in the system as services (i.e. singleton), the role of UI classes is to provide user interface to configure processors and remember last used settings if needed. User interface for processors are shown when the import report is closed and can access the container before the process started.
To be recognized by the system, implementations must just add the following annotation:
@ServiceProvider(service=ProcessorUI.class)
Processor
Method Summary | |
---|---|
javax.swing.JPanel |
getPanel()
Returns the processor settings panel. |
boolean |
isUIFoProcessor(Processor processor)
Returns true if this UI belongs to the given processor. |
boolean |
isValid(Container container)
Returns true if the processor this UI represents is valid for
the container . |
void |
setup(Processor processor)
Link the UI to the processor and therefore to settings values. |
void |
unsetup()
Notify UI the settings panel has been closed and that new values can be written. |
Method Detail |
---|
void setup(Processor processor)
getPanel()
to push settings.
processor
- the processor that settings is to be setjavax.swing.JPanel getPanel()
null
void unsetup()
boolean isUIFoProcessor(Processor processor)
true
if this UI belongs to the given processor.
processor
- the processor that has to be tested
true
if the UI is matching with processor
,
false
otherwise.boolean isValid(Container container)
true
if the processor this UI represents is valid for
the container
. Processors could be specific to some type of data
and this method can provide this information.
container
- the container that is to be processed
true
if the processor this UI represents is
valid for container
.
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |