2
Copyright 2008-2010 Gephi
3
Authors : Mathieu Bastian <mathieu.bastian@gephi.org>
4
Website : http://www.gephi.org
6
This file is part of Gephi.
8
Gephi is free software: you can redistribute it and/or modify
9
it under the terms of the GNU Affero General Public License as
10
published by the Free Software Foundation, either version 3 of the
11
License, or (at your option) any later version.
13
Gephi is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU Affero General Public License for more details.
18
You should have received a copy of the GNU Affero General Public License
19
along with Gephi. If not, see <http://www.gnu.org/licenses/>.
21
package org.gephi.io.exporter.spi;
23
import javax.swing.JPanel;
26
* Define exporter settings user interface.
28
* @author Mathieu Bastian
30
public interface ExporterUI {
33
* Returns the exporter settings panel.
35
* @return a settings panel, or <code>null</code>
37
public JPanel getPanel();
40
* Link the UI to the exporter and therefore to settings values. This method
41
* is called after <code>getPanel()</code> to push settings.
43
* @param exporter the exporter that settings is to be set
45
public void setup(Exporter exporter);
48
* Notify UI the settings panel has been closed and that new values can be
51
* @param update <code>true</code> if user clicked OK or <code>false</code>
54
public void unsetup(boolean update);
57
* Returns <code>true</code> if this UI belongs to the given exporter.
59
* @param exporter the exporter that has to be tested
60
* @return <code>true</code> if the UI is matching with <code>exporter</code>,
61
* <code>false</code> otherwise.
63
public boolean isUIForExporter(Exporter exporter);
66
* Returns the exporter display name
67
* @return the exporter display name
69
public String getDisplayName();