|
|||||||||
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 javax.swing.JComponent javax.swing.JPanel endrov.gui.window.EvBasicWindow
public abstract class EvBasicWindow
Any window in the application inherits this class.
Nested Class Summary | |
---|---|
static class |
EvBasicWindow.DialogReturnStatus
|
static interface |
EvBasicWindow.EvWindowManagerMaker
|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
java.util.WeakHashMap<JinputListener,java.lang.Object> |
jinputListeners
|
static int |
KEY_GETCONSOLE
|
static java.io.File |
lastDataPath
Remember last path used to load an imageset |
javax.swing.JMenu |
menuFile
|
int |
windowInstance
Instance number unique to this window. |
static EvBasicWindow.EvWindowManagerMaker |
windowManager
Manager for creating windows |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
EvBasicWindow()
Just copy in needed data |
Method Summary | |
---|---|
static void |
addBasicWindowExtension(EvBasicWindowExtension e)
Add an extension of Basic Window |
void |
addHook(java.lang.Class<?> cl,
EvBasicWindowHook hook)
|
void |
addMainMenubarCommon(javax.swing.JMenu ni)
Add to the menubar |
void |
addMainMenubarWindowSpecific(javax.swing.JMenu ni)
Add to the menubar |
static void |
addMenuItemSorted(javax.swing.JMenu menu,
javax.swing.JMenuItem ni)
Add sorted entry, take label as name |
static void |
addMenuItemSorted(javax.swing.JMenu menu,
javax.swing.JMenuItem ni,
java.lang.String itemName)
Add menu item to a menu, put it in alphabetical order |
void |
addMenuOperation(javax.swing.JMenuItem ni,
java.lang.String sortText)
Add to the menu Operation |
static void |
addMenuSorted(javax.swing.JMenuBar menu,
javax.swing.JMenu ni)
Add menu to a menubar, put in alphabetical order |
void |
addMenuWindow(javax.swing.JMenuItem ni)
Add to the menu Window |
static void |
attachDragAndDrop(javax.swing.JComponent c)
|
void |
attachJinputListener(JinputListener listener)
|
static java.lang.String |
convertStreamToString(java.io.InputStream is)
|
static java.lang.String |
convertStreamToString(java.io.InputStreamReader r)
Static: DnD utils * |
void |
createMenus()
Set up basic menus |
abstract void |
dataChangedEvent()
Called whenever EV has changed |
static void |
dialogAbout()
Show about dialog |
void |
dialogPreferences()
Handle "preferences" from the Mac menu |
static void |
dialogQuit()
Show the quit dialog |
static void |
dialogSysInfo()
Show system info dialog |
void |
disposeEvWindow()
|
protected void |
finalize()
|
void |
freeResourcesBasic()
|
java.awt.Rectangle |
getBounds()
|
java.awt.Rectangle |
getBoundsEvWindow()
|
javax.swing.JMenu |
getCreateMenuWindowCategory(java.lang.String category)
|
EvWindowManager |
getEvw()
|
static java.io.File |
getLastDataPath()
Get last path used to open or save data |
static java.util.List<EvBasicWindow> |
getWindowList()
Get the set of all windows, not to be modified |
static java.awt.Rectangle |
getXMLbounds(org.jdom.Element e)
Get bounds of window from XML element |
static java.awt.Point |
getXMLposition(org.jdom.Element e)
Get position of window from XML element. |
static boolean |
holdModifier1(java.awt.event.KeyEvent e)
|
static void |
initPlugin()
Plugin declaration |
static java.io.File |
openDialogChooseDir()
Open dialog to choose a directory. |
static java.io.File |
openDialogOpenFile()
Open dialog to open a file. |
static java.io.File |
openDialogSaveFile(java.lang.String ext)
Open dialog to open a file. |
void |
packEvWindow()
|
static void |
setAcceleratorCopy(javax.swing.JMenuItem mi)
|
static void |
setAcceleratorCut(javax.swing.JMenuItem mi)
|
static void |
setAcceleratorDelete(javax.swing.JMenuItem mi)
|
static void |
setAcceleratorPaste(javax.swing.JMenuItem mi)
|
void |
setBoundsEvWindow(java.lang.Integer w,
java.lang.Integer h)
|
void |
setBoundsEvWindow(int x,
int y,
int width,
int height)
|
void |
setBoundsEvWindow(java.awt.Rectangle r)
|
static void |
setLastDataPath(java.io.File s)
Set last path used to open or save data |
void |
setLocationEvWindow(int x,
int y)
|
void |
setLocationEvWindow(java.awt.Point p)
|
void |
setResizable(boolean b)
|
void |
setTitleEvWindow(java.lang.String title)
Set title of this window |
void |
setVisibleEvWindow(boolean b)
Set visibility of this window |
void |
setXMLbounds(org.jdom.Element e)
Store bounds of this window into XML element |
static EvBasicWindow.DialogReturnStatus |
showConfirmYesNoCancelDialog(java.lang.String question)
Show dialog asking Yes/No/Cancel to a question |
static boolean |
showConfirmYesNoDialog(java.lang.String question)
Show dialog asking Yes/No to a question |
static void |
showErrorDialog(java.lang.String error)
Show error dialog |
static void |
showInformativeDialog(java.lang.String message)
Show informative dialog |
static java.lang.String |
showInputDialog(java.lang.String message,
java.lang.String value)
Ask for input |
static void |
showWarningDialog(java.lang.String warning)
Show warning dialog |
void |
toFront()
|
static java.util.List<java.io.File> |
transferableToFileList(java.awt.datatransfer.Transferable t)
|
static void |
updateLoadedFile(EvData d)
Broadcast that a file has been loaded |
static void |
updateWindows()
Tell all windows to update. |
static void |
updateWindows(EvBasicWindow from)
Tell all windows to update except where the signal came from. |
abstract void |
windowEventUserLoadedFile(EvData data)
Called when a file has just been loaded and should be displayed in all windows |
abstract void |
windowFreeResources()
Called when the window is closed. |
abstract java.lang.String |
windowHelpTopic()
Help on how to use this window. |
abstract void |
windowLoadPersonalSettings(org.jdom.Element e)
|
abstract void |
windowSavePersonalSettings(org.jdom.Element root)
Called to obtain personal settings for that window. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static EvBasicWindow.EvWindowManagerMaker windowManager
public static final int KEY_GETCONSOLE
public int windowInstance
public javax.swing.JMenu menuFile
public java.util.WeakHashMap<JinputListener,java.lang.Object> jinputListeners
public static java.io.File lastDataPath
Constructor Detail |
---|
public EvBasicWindow()
Method Detail |
---|
public static java.util.List<EvBasicWindow> getWindowList()
public static void addBasicWindowExtension(EvBasicWindowExtension e)
public static void updateWindows(EvBasicWindow from)
public static void updateWindows()
public static boolean holdModifier1(java.awt.event.KeyEvent e)
public static java.awt.Rectangle getXMLbounds(org.jdom.Element e) throws java.lang.Exception
java.lang.Exception
public void setXMLbounds(org.jdom.Element e)
public static java.awt.Point getXMLposition(org.jdom.Element e)
public static void addMenuItemSorted(javax.swing.JMenu menu, javax.swing.JMenuItem ni, java.lang.String itemName)
public static void addMenuItemSorted(javax.swing.JMenu menu, javax.swing.JMenuItem ni)
public static void addMenuSorted(javax.swing.JMenuBar menu, javax.swing.JMenu ni)
public static void updateLoadedFile(EvData d)
public static java.lang.String convertStreamToString(java.io.InputStreamReader r)
public static java.lang.String convertStreamToString(java.io.InputStream is)
public static void attachDragAndDrop(javax.swing.JComponent c)
public static java.util.List<java.io.File> transferableToFileList(java.awt.datatransfer.Transferable t)
public EvWindowManager getEvw()
public void packEvWindow()
public java.awt.Rectangle getBoundsEvWindow()
public void setBoundsEvWindow(java.awt.Rectangle r)
public void setBoundsEvWindow(java.lang.Integer w, java.lang.Integer h)
public void setBoundsEvWindow(int x, int y, int width, int height)
public void setLocationEvWindow(java.awt.Point p)
public void setLocationEvWindow(int x, int y)
public java.awt.Rectangle getBounds()
getBounds
in class java.awt.Component
public void setTitleEvWindow(java.lang.String title)
public void setVisibleEvWindow(boolean b)
public void setResizable(boolean b)
public void disposeEvWindow()
public void toFront()
public void addHook(java.lang.Class<?> cl, EvBasicWindowHook hook)
public void addMenuWindow(javax.swing.JMenuItem ni)
public javax.swing.JMenu getCreateMenuWindowCategory(java.lang.String category)
public void addMenuOperation(javax.swing.JMenuItem ni, java.lang.String sortText)
public void addMainMenubarCommon(javax.swing.JMenu ni)
public void addMainMenubarWindowSpecific(javax.swing.JMenu ni)
public void createMenus()
public static void dialogAbout()
public static void dialogSysInfo()
public void dialogPreferences()
public static void dialogQuit()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void freeResourcesBasic()
public static void showErrorDialog(java.lang.String error)
public static void showWarningDialog(java.lang.String warning)
public static java.lang.String showInputDialog(java.lang.String message, java.lang.String value)
public static void showInformativeDialog(java.lang.String message)
public static boolean showConfirmYesNoDialog(java.lang.String question)
public static EvBasicWindow.DialogReturnStatus showConfirmYesNoCancelDialog(java.lang.String question)
public void attachJinputListener(JinputListener listener)
public static void setAcceleratorCopy(javax.swing.JMenuItem mi)
public static void setAcceleratorPaste(javax.swing.JMenuItem mi)
public static void setAcceleratorCut(javax.swing.JMenuItem mi)
public static void setAcceleratorDelete(javax.swing.JMenuItem mi)
public abstract void dataChangedEvent()
public abstract void windowSavePersonalSettings(org.jdom.Element root)
public abstract void windowLoadPersonalSettings(org.jdom.Element e)
public abstract void windowEventUserLoadedFile(EvData data)
public abstract void windowFreeResources()
public abstract java.lang.String windowHelpTopic()
public static java.io.File getLastDataPath()
public static void setLastDataPath(java.io.File s)
public static java.io.File openDialogChooseDir()
public static java.io.File openDialogOpenFile()
public static java.io.File openDialogSaveFile(java.lang.String ext)
ext
- Can be null. Otherwise file extension, with the . includedpublic static void initPlugin()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |