Package | Description |
---|---|
charger |
The top level package for the editor.
|
charger.db |
Classes related to the database access part of CharGer.
|
charger.prefs |
Classes needed for setting preferences by the user.
|
Modifier and Type | Method and Description |
---|---|
static CGDatabase |
Global.activateDatabase(String filename)
Stores an entry for the "database" as indicated by its file name, and
sets up the file for reading, by getting the field headers from the first
line.
|
static File |
IOManager.chooseViaFileSaveDialog(Frame owner,
File initialChoiceFile,
String promptstring)
Runs the file dialog that lets the user choose the filename and location.
|
static File |
IOManager.FileToGraph(File absFile,
Graph targetGraph)
Loads a graph from a file to a graph.
|
static File |
IOManager.FileToGraph(File absFile,
Graph targetGraph,
Point2D.Double translateBy)
Loads from a cgx file to a graph.
|
static File |
IOManager.GraphToFile(Graph g,
chargerlib.FileFormat format,
String filename,
Frame owner)
Saves a CharGer Graph to a file.
|
static void |
Global.loadConfig(String fname)
Loads in the configuration from a text file.
|
protected static void |
IOManager.loadGraph2(BufferedReader f,
Graph targetGraph)
Loads (reads) a graph from a file and attaches it to an existing (i.e.,
non-null, but possibly empty) graph
|
protected static void |
IOManager.loadGraph2(BufferedReader f,
Graph targetGraph,
Point translateBy)
Loads (reads) a graph from a file in CharGer version 2 format and
attaches it to an existing (i.e., non-null, but possibly empty) graph
|
protected static void |
IOManager.loadGraph3(BufferedReader f,
Graph targetGraph)
Loads (reads) a graph from a file and attaches it to an existing (i.e.,
non-null, but possibly empty) graph
|
protected static void |
IOManager.loadGraph3(BufferedReader f,
Graph targetGraph,
Point translateBy)
Loads (reads) a graph from a file and attaches it to an existing (i.e.,
non-null, but possibly empty) graph, using the "new" version 3 format
|
protected static void |
IOManager.loadGraphXML(File f,
Graph target)
Loads (reads) a graph from a file and attaches it to an existing (i.e.,
non-null, but possibly empty) graph
|
static void |
IOManager.saveGraphAsTextFormat(Graph g,
chargerlib.FileFormat format,
File chosenOne)
Save as one of the text or export formats.
|
Modifier and Type | Method and Description |
---|---|
String[] |
TextDatabase.getFields() |
boolean |
TextDatabase.open(String fname)
Initializes the file "in" for reading.
|
Constructor and Description |
---|
TextDatabase(String fname) |
Modifier and Type | Method and Description |
---|---|
void |
PreferencesWriter.savePreferences(String prefsFilename)
Saves the global preferences to the global preference file.
|