forked from gephi/gephi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also write Preview export settings to preferences gephi#1790
- Loading branch information
Showing
6 changed files
with
116 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...PreviewExportUI/src/main/java/org/gephi/ui/exporter/preview/AbstractExporterSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package org.gephi.ui.exporter.preview; | ||
|
||
import org.openide.util.NbPreferences; | ||
|
||
public abstract class AbstractExporterSettings { | ||
|
||
protected boolean get(String name, boolean defaultValue) { | ||
return NbPreferences.forModule(AbstractExporterSettings.class).getBoolean(name, defaultValue); | ||
} | ||
|
||
protected void put(String name, boolean value) { | ||
NbPreferences.forModule(AbstractExporterSettings.class).putBoolean(name, value); | ||
} | ||
|
||
protected int get(String name, int defaultValue) { | ||
return NbPreferences.forModule(AbstractExporterSettings.class).getInt(name, defaultValue); | ||
} | ||
|
||
protected void put(String name, int value) { | ||
NbPreferences.forModule(AbstractExporterSettings.class).putInt(name, value); | ||
} | ||
|
||
protected float get(String name, float defaultValue) { | ||
return NbPreferences.forModule(AbstractExporterSettings.class).getFloat(name, defaultValue); | ||
} | ||
|
||
protected void put(String name, float value) { | ||
NbPreferences.forModule(AbstractExporterSettings.class).putFloat(name, value); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters