|
||||||||||
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 com.isti.util.gui.IstiRegionPanel
Class IstiRegionPanel defines a region panel.
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
javax.swing.AbstractAction |
addCircleButtonActionObj
Action object for the "Add Circle" button. |
javax.swing.AbstractAction |
addPolyButtonActionObj
Action object for the "Add Poly" button. |
protected boolean |
centerEditDialogFlag
Flag set true if the edit dialog should be centered. |
static java.lang.String |
CLOSE_OPTION_TEXT
Close option text. |
javax.swing.AbstractAction |
copyButtonActionObj
Action object for the "Copy" button. |
protected static java.lang.String |
DEF_NEWREGION_NAME
Default region name text. |
protected boolean |
dialogModalFlag
Flag set true if the dialogs are modal. |
protected IstiDialogPopup |
dialogObj
Dialog object for this panel. |
protected IstiDialogUtil |
dialogUtilObj
Dialog utility object for popup messages. |
javax.swing.AbstractAction |
editButtonActionObj
Action object for the "Edit" button. |
static java.lang.String |
HELP_OPTION_TEXT
Help option text. |
protected boolean |
mouseClickEditFlag
Flag set true if region-edit via double-click on list is enabled. |
protected java.lang.String |
newRegionNameStr
Name to be pre-filled in new regions. |
javax.swing.AbstractAction |
removeButtonActionObj
Action object for the "Remove" button. |
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.Container |
|
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 | |
IstiRegionPanel()
Creates a region panel with all 'IstiRegion' option groups. |
|
IstiRegionPanel(java.util.List optionGroups)
Creates a region panel. |
Method Summary | |
void |
addActionListener(java.awt.event.ActionListener l)
Adds an ActionListener to the panel. |
protected void |
addNewRegion(boolean circleFlag)
Creates, edits and adds a new region object. |
protected void |
closeRegionEditPanel()
Closes the region edit panel. |
protected void |
copyToNewRegion()
Shows a list of regions; then shows an add-region dialog with entries copied from the selected source region. |
IstiDialogPopup |
createDialog(java.lang.String titleStr,
java.awt.Component regionParentComp)
Creates a dialog for the specified region panel. |
IstiDialogPopup |
createDialog(java.lang.String titleStr,
java.awt.Component regionParentComp,
boolean modalFlag)
Creates a dialog for the specified region panel. |
IstiDialogPopup |
createDialog(java.lang.String titleStr,
java.awt.Component regionParentComp,
java.awt.Component regionEditParentComp)
Creates a dialog for the specified region panel. |
IstiDialogPopup |
createDialog(java.lang.String titleStr,
java.awt.Component regionParentComp,
java.awt.Component regionEditParentComp,
boolean modalFlag)
Creates a dialog for the specified region panel. |
protected void |
editSelectedRegion()
Edits the region that is currently selected on the GUI list. |
protected void |
editSpecifiedRegion(java.lang.String specStr,
int specIdx)
Edits the region that is currently selected on the GUI list. |
protected void |
fireActionPerformed(java.awt.event.ActionEvent event)
Notifies all listeners that have registered interest for notification on this event type. |
IstiDialogPopup |
getDialog()
Gets the dialog for this panel. |
java.lang.String |
getRegionString()
Gets the region string. |
boolean |
isDialogVisible()
Determines if the dialog for this panel is visible. |
boolean |
isHelpActionListenerInstalled()
Returns true if the "Help"-button action listener is installed. |
protected void |
jbInit()
Performs component initialization. |
void |
notifyHelpActionListener(java.lang.Object source)
Notify the help action listener. |
protected void |
notifyRegionsUpdated()
Notify regions updated. |
protected void |
openRegionEditPanel(java.lang.String regionStr,
int regionIndex)
Opens the region edit panel for the specified region. |
void |
removeActionListener(java.awt.event.ActionListener l)
Removes an ActionListener from the panel. |
protected void |
removeSelectedRegions()
Removes the one or more regions that are currently selected on the GUI list. |
void |
requestFocus()
Overridden version that also calls 'requestFocus()' on the dialog hosting this panel. |
protected void |
selectAndShowListRegion(int idx)
Selects the given entry on the GUI list of regions and ensures that the entry is visible. |
protected void |
setButtonsEnabled(boolean b)
Enables or disables the buttons. |
void |
setHelpActionListener(java.awt.event.ActionListener l)
Sets the "Help" button action listener. |
void |
setIstiRegionMgrObj(com.isti.util.gis.IstiRegionMgrIntf istiRegionMgrObj)
Sets the region-manager object to be used by this panel. |
void |
setNewRegionNameStr(java.lang.String nameStr)
Sets the name to be pre-filled when adding a new region. |
void |
setRegionString(java.lang.String str)
Sets the region string. |
void |
showDialog(java.awt.Component regionParentComp,
java.lang.String titleStr)
Shows a dialog for the specified region panel. |
void |
showDialog(java.awt.Component regionParentComp,
java.lang.String titleStr,
boolean modalFlag)
Shows a dialog for the specified region panel. |
void |
windowActivated(java.awt.event.WindowEvent e)
Invoked when the window is set to be the user's active window, which means the window (or one of its subcomponents) will receive keyboard events. |
void |
windowClosed(java.awt.event.WindowEvent e)
Invoked when a window has been closed as the result of calling dispose on the window. |
void |
windowClosing(java.awt.event.WindowEvent e)
Invoked when the user attempts to close the window from the window's system menu. |
void |
windowDeactivated(java.awt.event.WindowEvent e)
Invoked when a window is no longer the user's active window, which means that keyboard events will no longer be delivered to the window or its subcomponents. |
void |
windowDeiconified(java.awt.event.WindowEvent e)
Invoked when a window is changed from a minimized to a normal state. |
void |
windowIconified(java.awt.event.WindowEvent e)
Invoked when a window is changed from a normal to a minimized state. |
void |
windowOpened(java.awt.event.WindowEvent e)
Invoked the first time a window is made visible. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, 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, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String HELP_OPTION_TEXT
public static final java.lang.String CLOSE_OPTION_TEXT
protected static final java.lang.String DEF_NEWREGION_NAME
protected final IstiDialogUtil dialogUtilObj
protected boolean dialogModalFlag
protected boolean centerEditDialogFlag
protected boolean mouseClickEditFlag
protected java.lang.String newRegionNameStr
protected IstiDialogPopup dialogObj
public final javax.swing.AbstractAction addCircleButtonActionObj
public final javax.swing.AbstractAction addPolyButtonActionObj
public final javax.swing.AbstractAction editButtonActionObj
public final javax.swing.AbstractAction removeButtonActionObj
public final javax.swing.AbstractAction copyButtonActionObj
Constructor Detail |
public IstiRegionPanel()
public IstiRegionPanel(java.util.List optionGroups)
optionGroups
- the 'IstiRegion' option groups or null for all.Method Detail |
public void setIstiRegionMgrObj(com.isti.util.gis.IstiRegionMgrIntf istiRegionMgrObj)
istiRegionMgrObj
- region-manger object to use.public void setNewRegionNameStr(java.lang.String nameStr)
nameStr
- region name to use.protected final void jbInit() throws java.lang.Exception
java.lang.Exception
- if an error occurs.public void addActionListener(java.awt.event.ActionListener l)
ActionListener
to the panel.
l
- the ActionListener
to be addedpublic IstiDialogPopup createDialog(java.lang.String titleStr, java.awt.Component regionParentComp, java.awt.Component regionEditParentComp, boolean modalFlag)
titleStr
- the title for the region panel.regionParentComp
- the parent for the region panel.regionEditParentComp
- the parent for region edit panel or null
to use the region panel.modalFlag
- true for a modal dialog, false for modeless (allows
other windows to run).
public IstiDialogPopup createDialog(java.lang.String titleStr, java.awt.Component regionParentComp, java.awt.Component regionEditParentComp)
titleStr
- the title for the region panel.regionParentComp
- the parent for the region panel.regionEditParentComp
- the parent for region edit panel or null
to use the region panel.
public IstiDialogPopup createDialog(java.lang.String titleStr, java.awt.Component regionParentComp, boolean modalFlag)
titleStr
- the title for the region panel.regionParentComp
- the parent for the region panel.modalFlag
- true for a modal dialog, false for modeless (allows
other windows to run).
public IstiDialogPopup createDialog(java.lang.String titleStr, java.awt.Component regionParentComp)
titleStr
- the title for the region panel.regionParentComp
- the parent for the region panel.
public void showDialog(java.awt.Component regionParentComp, java.lang.String titleStr, boolean modalFlag)
regionParentComp
- the parent for the region panel.titleStr
- the title for the region panel.modalFlag
- true for a modal dialog, false for modeless (allows
other windows to run).public void showDialog(java.awt.Component regionParentComp, java.lang.String titleStr)
regionParentComp
- the parent for the region panel.titleStr
- the title for the region panel.public IstiDialogPopup getDialog()
public boolean isDialogVisible()
public void requestFocus()
public java.lang.String getRegionString()
public void removeActionListener(java.awt.event.ActionListener l)
ActionListener
from the panel.
If the listener is the currently set Action
for the button, then the Action
is set to null
.
l
- the listener to be removedpublic void setHelpActionListener(java.awt.event.ActionListener l)
l
- the action listener.public void setRegionString(java.lang.String str)
str
- the region string.protected void addNewRegion(boolean circleFlag)
circleFlag
- true for circle, false for polygon.protected void editSelectedRegion()
protected void editSpecifiedRegion(java.lang.String specStr, int specIdx)
specStr
- region string to edit.specIdx
- index of given region string, or -1 if adding new
region.protected void copyToNewRegion()
protected void closeRegionEditPanel()
protected void fireActionPerformed(java.awt.event.ActionEvent event)
event
- the ChangeEvent
objectEventListenerList
public void notifyHelpActionListener(java.lang.Object source)
source
- the object that originated the eventpublic boolean isHelpActionListenerInstalled()
protected void notifyRegionsUpdated()
protected void openRegionEditPanel(java.lang.String regionStr, int regionIndex)
regionStr
- the region-text string, or an empty string for none.regionIndex
- the region index.protected void removeSelectedRegions()
protected void selectAndShowListRegion(int idx)
idx
- the index of the region entry.protected void setButtonsEnabled(boolean b)
b
- true to enable, false to disable.public void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
e
- window eventpublic void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
e
- window eventpublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
e
- window eventpublic void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
e
- window eventFrame.setIconImage(java.awt.Image)
public void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
e
- window eventpublic void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
e
- window eventpublic void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener
e
- window event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |