|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Frame
|
+--javax.swing.JFrame
|
+--CartoFrame
The top level interface. This is the "Carto window" that the user sees when he opens Carto.
| Field Summary | |
static java.lang.String |
ABOUT
|
static java.lang.String |
ADDCOMPOSITES
|
static java.lang.String |
ADDPAGE
|
static java.lang.String |
ADDSECTION
|
static java.lang.String |
ADDSEGMENT
|
static java.lang.String |
ADDSURVEY
|
(package private) Carto |
carto
The contents of the file that is being edited. |
static java.lang.String |
CLEAN
|
static java.lang.String |
CLOSEDITS
|
static java.lang.String |
COMPWORD
|
static boolean |
cookonopen
Recook all segments when opening files? |
static java.lang.String |
DEBUG
|
static java.lang.String |
DELETE
|
static java.lang.String |
DELETECOMP
|
static java.lang.String |
DELETESECTION
|
static java.lang.String |
DELETESEG
|
static java.lang.String |
DELSHOT
|
static java.lang.String |
DELSTA
|
(package private) javax.swing.JDesktopPane |
desk
The desktop that contains all sub-windows. |
boolean |
dirty
Has this file been changed?. |
static java.lang.String |
DRAWING
|
static java.lang.String |
EDITCOMPOSITE
|
static java.lang.String |
EDITSECTION
|
static java.lang.String |
EDITSEGMENT
|
static java.lang.String |
ERROR
|
static java.lang.String |
ERRORFILE
|
(package private) java.io.File |
file
The name of the file being edited. |
static java.lang.String |
FPREFS
|
static java.lang.String |
GC
|
static java.lang.String |
HARDRECOOK
|
static java.lang.String |
HELP
|
static java.lang.String |
HISTORY
|
static java.lang.String |
IMAGELOAD
|
static java.lang.String |
IMPORTCOMP
|
static java.lang.String |
IMPORTSECTION
|
static java.lang.String |
IMPORTSEG
|
static int |
initialheight
Initial window height. |
static int |
initialwidth
Initial window width. |
static int |
initialx
Initial horizontal window position. |
static int |
initialy
Initial vertical window position. |
static java.lang.String |
IPRINT
|
static java.lang.String |
JAR
|
static boolean |
lastopen
Open last edited file when Carto opens? |
Editor |
lastselected
The last editor in which a selection took place. |
static java.lang.String |
LICENCE
|
static ThreadMessage |
message
The progress message. |
static java.lang.String |
NEW
|
static java.lang.String |
NEWER
|
static java.lang.String |
NEWPROJECT
|
static java.lang.String |
NEWTITLE
The title to use when file is "New". |
static java.lang.String |
OLDER
|
static java.lang.String |
OPEN
|
static boolean |
openeditormaximized
Open new editors maximized? |
static boolean |
openmaximized
Deprecated. Dosn't work because Java has no maximizing API. |
static java.lang.String |
PREFS
|
static java.lang.String |
PREVIEW
|
static java.lang.String |
PRINT
|
static java.lang.String |
PRINTSEL
|
static java.lang.String |
PRINTSETUP
|
static java.lang.String |
PURGESURVEY
|
static java.lang.String |
QUIT
|
static java.lang.String |
RECOOK
|
static boolean |
restoreplace
Restore editors on open? |
static java.lang.String |
SAVE
|
static java.lang.String |
SAVEAS
|
static boolean |
saveplace
Save state of editors on save? |
static java.lang.String |
SECTION
|
static java.lang.String |
SEGWORD
|
static java.lang.String |
STATS
|
(package private) javax.swing.JPanel |
statusbar
Status bar at bottom of window. |
static java.lang.String |
STOPCOOK
|
static java.lang.String |
STOPPRINT
|
(package private) javax.swing.JLabel |
surveylabel
Displays name of current survey. |
static CartoFrame |
topframe
The last CartoFrame created. |
| Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Window |
|
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
CartoFrame(java.io.File startfile)
Build a top level window with all its menus. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Called when a menu item is selected. Decode the menu item and execute the command. |
Editor |
addEditor(Editable elem)
Start a new Editor Edits the given item. |
void |
addMenuItem(javax.swing.JMenu menu,
java.lang.String comand)
Add a menu item without a shortcut key. |
void |
addMenuItem(javax.swing.JMenu menu,
java.lang.String comand,
char mne)
Add a menu item with a shortcut key. |
void |
addSurvey()
Read a survey file Creates or updates the survey. |
static Element |
chooseFromList(java.util.List list,
java.lang.String message,
java.lang.String title)
Pops up a dialog to choose an item from a list Used when it only make sense to select at most one. |
void |
closeEditors()
Close all editors. |
boolean |
closefile()
Close the current .cto file If it is dirty, give the user a chance to cancel or save. |
void |
deleteElement(java.lang.String typestring)
Delete one or more elements of the given type Pops up a dialog to choose which, then another to confirm. |
void |
editElement(java.lang.String typestring)
Edit one or more elements of named type |
(package private) void |
forceReCook()
Recook all segments. |
void |
importElement(java.lang.String word)
Import elements of type given by word Prompts for a file to read from, then pops up dialog to select which to import. |
boolean |
newFile()
Create a new, empty, .cto file |
void |
open()
Open a new .cto file Closes the old one if needed. |
void |
open(java.io.File filename)
|
void |
print()
Print all pages. |
void |
printSelected()
Print selected pages. |
boolean |
save(java.io.File savefile)
Save the current file If savefile is null, then do save-as, otherwise save to savefile if dirty. |
static java.lang.Object[] |
selectFromList(java.util.List list,
java.lang.String message,
java.lang.String title)
Pops up a dialog to choose items from a list User may select more than one. |
(package private) void |
showname(java.io.File file)
Update the displayed name of the current file |
void |
shutDown()
Close Carto |
void |
stopPrint()
Stop background printing, if any. |
void |
stopReCook()
Stop background Cooking, if any. |
| Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
| Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.awt.Window |
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
| Field Detail |
Carto carto
javax.swing.JDesktopPane desk
public static java.lang.String SEGWORD
public static java.lang.String COMPWORD
public static java.lang.String SECTION
public static java.lang.String DRAWING
public static java.lang.String NEWPROJECT
public static java.lang.String NEW
public static java.lang.String OPEN
public static java.lang.String SAVE
public static java.lang.String QUIT
public static java.lang.String PRINT
public static java.lang.String PRINTSEL
public static java.lang.String IPRINT
public static java.lang.String PREVIEW
public static java.lang.String PRINTSETUP
public static java.lang.String STATS
public static java.lang.String SAVEAS
public static java.lang.String PREFS
public static java.lang.String FPREFS
public static java.lang.String EDITSEGMENT
public static java.lang.String EDITCOMPOSITE
public static java.lang.String EDITSECTION
public static java.lang.String ADDSEGMENT
public static java.lang.String ADDCOMPOSITES
public static java.lang.String ADDSECTION
public static java.lang.String ADDPAGE
public static java.lang.String ADDSURVEY
public static java.lang.String PURGESURVEY
public static java.lang.String DELETE
public static java.lang.String RECOOK
public static java.lang.String HARDRECOOK
public static java.lang.String IMAGELOAD
public static java.lang.String STOPCOOK
public static java.lang.String STOPPRINT
public static java.lang.String DELETESEG
public static java.lang.String IMPORTSEG
public static java.lang.String IMPORTCOMP
public static java.lang.String IMPORTSECTION
public static java.lang.String DELETECOMP
public static java.lang.String DELETESECTION
public static java.lang.String OLDER
public static java.lang.String HISTORY
public static java.lang.String NEWER
public static java.lang.String DELSTA
public static java.lang.String DELSHOT
public static java.lang.String DEBUG
public static java.lang.String GC
public static java.lang.String ERROR
public static java.lang.String CLEAN
public static java.lang.String CLOSEDITS
public static java.lang.String JAR
public static java.lang.String ERRORFILE
public static java.lang.String HELP
public static java.lang.String ABOUT
public static java.lang.String LICENCE
public static boolean cookonopen
public static boolean lastopen
public static boolean openmaximized
public static boolean openeditormaximized
public static boolean restoreplace
public static boolean saveplace
public static int initialx
public static int initialy
public static int initialwidth
public static int initialheight
public static java.lang.String NEWTITLE
public static CartoFrame topframe
public Editor lastselected
java.io.File file
public static ThreadMessage message
javax.swing.JLabel surveylabel
javax.swing.JPanel statusbar
public boolean dirty
| Constructor Detail |
public CartoFrame(java.io.File startfile)
| Method Detail |
public void addMenuItem(javax.swing.JMenu menu,
java.lang.String comand,
char mne)
public void addMenuItem(javax.swing.JMenu menu,
java.lang.String comand)
public void importElement(java.lang.String word)
public static Element chooseFromList(java.util.List list,
java.lang.String message,
java.lang.String title)
public static java.lang.Object[] selectFromList(java.util.List list,
java.lang.String message,
java.lang.String title)
public void editElement(java.lang.String typestring)
public Editor addEditor(Editable elem)
public void printSelected()
public void print()
public void addSurvey()
public boolean newFile()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void deleteElement(java.lang.String typestring)
public void closeEditors()
public void shutDown()
public void open()
public void open(java.io.File filename)
void showname(java.io.File file)
public boolean closefile()
public boolean save(java.io.File savefile)
public void stopReCook()
public void stopPrint()
void forceReCook()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||