|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--Carto
The main class of the Carto program.
Contains everything that is found in a .cto file.
As a general rule, variables and methods should not be in this file
unless there is no other place they can go.
| Field Summary | |
static java.lang.Thread |
background
The thread in which the background job runs. |
java.io.File |
base
The directory containing the .cto file Used for finding images if things have moved. |
java.util.Vector |
complist
Composites in this file. |
static int |
COOKKILL
Indicates that a cook job should die. |
java.lang.String |
created_version
The version of Carto that created this file. |
static Selection |
cutbuffer
|
java.util.HashMap |
defaults
Default overrides for this file. |
static Unit |
defmapunit
The default map unit. |
static Unit |
defscreenunit
The default screen unit. |
(package private) static java.io.File |
filebase
The base from which carto files are relative. |
(package private) static java.awt.GraphicsConfiguration |
gconf
|
(package private) static java.awt.GraphicsEnvironment |
genv
|
static java.lang.String[] |
installfiles
|
static int |
kill
A flag that tells the background job that it should die. |
Unit |
mapunit
The map unit. |
EditState[] |
place
The states of the editors that were open when last saved. |
PrefEditor[] |
prefs
PrefEditors for this file. |
static int |
PRINTKILL
Indicates that a print job should die. |
static Version |
runversion
Represents the version running now. |
java.lang.String |
saved_version
The version of Carto that last saved this file. |
Unit |
screenunit
The screen unit. |
java.util.Vector |
sectionlist
Cross sections in this file. |
java.util.Vector |
segmentlist
Segments in this file. |
private static long |
serialVersionUID
|
java.util.TreeSet |
sizes
Deprecated. Replaced by defaults. |
Survey |
survey
Survey data for this file. |
java.util.zip.ZipEntry |
zipent
If the file was int a zip, the entry it was in. |
java.util.zip.ZipFile |
zipfile
If the file was in a zip the zip file it was in. |
| Constructor Summary | |
Carto()
Create a new, empty carto file. |
|
| Method Summary | |
static void |
checkInstall()
Make sure the instalation is complete. |
static java.io.File |
choose(java.awt.Component parent)
Prompt the user for a .cto file |
void |
clean()
Cleans up trash. |
static void |
cleanBackground()
Indicate that background has died. |
static void |
copyFile(java.lang.String name)
Copy a file from the jar file to the base directory. |
static void |
copyFiles(java.util.jar.JarFile source,
java.lang.String[] names)
Copies the named files from the Jar file. |
java.util.TreeSet |
getDefs(java.lang.Class type)
Get the defaults of a given type. |
java.util.Vector |
getList(java.lang.String name)
Gets list of eliments by type |
static java.lang.String[] |
getSubdirList(java.util.jar.JarFile source,
java.lang.String dirname)
Gets the names of all the contents of a directory in a Jar file |
void |
hardReCookAll(ThreadMessage message,
CartoFrame owner)
Hard recook of all segments. Currently this just calls reCookAll, because there is no soft recook anymore. |
static void |
main(java.lang.String[] args)
Start the Carto program. |
void |
printStats(java.io.PrintStream out)
Print some basic statistics for the file. |
static Carto |
read(java.io.File filename)
Read a Carto from a file. |
private void |
readObject(java.io.ObjectInputStream stream)
Reads a Carto from a stream. |
void |
reCookAll(ThreadMessage message,
CartoFrame owner)
Recook all segments. Throws out the morphed version of all segments and forces them to be remorphed from scratch. |
void |
remove(Vertex station)
Remove any use of station. Used to make it safe to delete station from survey. |
static boolean |
startBackground(java.lang.Thread action)
Start a background job. |
static void |
stopBackground(int killval)
Kill the background job. |
java.lang.String |
used(Vertex station)
Tells if station is used anywhere, other than in survey. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final long serialVersionUID
static java.io.File filebase
static java.awt.GraphicsEnvironment genv
static java.awt.GraphicsConfiguration gconf
public static Selection cutbuffer
public java.util.TreeSet sizes
public java.util.HashMap defaults
public Survey survey
public java.util.Vector complist
public java.util.Vector segmentlist
public java.util.Vector sectionlist
public EditState[] place
public PrefEditor[] prefs
public static Unit defscreenunit
public static Unit defmapunit
public Unit screenunit
public Unit mapunit
public static Version runversion
public java.lang.String created_version
public java.lang.String saved_version
public transient java.io.File base
public transient java.util.zip.ZipEntry zipent
public transient java.util.zip.ZipFile zipfile
public static java.lang.Thread background
public static int kill
public static int COOKKILL
public static int PRINTKILL
public static java.lang.String[] installfiles
| Constructor Detail |
public Carto()
| Method Detail |
public static java.io.File choose(java.awt.Component parent)
public static Carto read(java.io.File filename)
public java.util.Vector getList(java.lang.String name)
public void clean()
public java.lang.String used(Vertex station)
public void remove(Vertex station)
public static boolean startBackground(java.lang.Thread action)
public static void cleanBackground()
public static void stopBackground(int killval)
public void reCookAll(ThreadMessage message,
CartoFrame owner)
public void hardReCookAll(ThreadMessage message,
CartoFrame owner)
public java.util.TreeSet getDefs(java.lang.Class type)
private void readObject(java.io.ObjectInputStream stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public static java.lang.String[] getSubdirList(java.util.jar.JarFile source,
java.lang.String dirname)
throws java.io.IOException
java.io.IOException
public static void copyFiles(java.util.jar.JarFile source,
java.lang.String[] names)
throws java.io.IOException
java.io.IOExceptionpublic static void copyFile(java.lang.String name)
public static void checkInstall()
public void printStats(java.io.PrintStream out)
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||