public class IstiRegionEditPanel
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
closeDialogCommandString
close dialog command
|
protected IstiDialogUtil |
dialogUtilObj
Dialog utility object for popup messages.
|
static java.lang.String |
HELP_OPTION_TEXT
Help option text.
|
static java.lang.String |
OK_OPTION_TEXT
OK option text
|
static java.lang.String |
showDialogCommandString
show dialog command
|
TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
IstiRegionEditPanel()
Creates an empty region edit panel with all 'IstiRegion' option groups.
|
IstiRegionEditPanel(java.util.List optionGroups)
Creates an empty region edit panel.
|
IstiRegionEditPanel(java.util.List optionGroups,
java.lang.String str)
Creates a region edit panel.
|
Modifier and Type | Method and Description |
---|---|
static void |
addActivePanelActionListener(java.awt.event.ActionListener l)
Adds an
ActionListener to the active panel. |
void |
addPoint(double lat,
double lon)
Add a lat/lon point to the region.
|
void |
addPoint(double lat,
double lon,
java.awt.event.MouseEvent e)
Add a lat/lon point to the region.
|
static void |
addPointToActivePanel(double lat,
double lon)
Add a lat/lon point to the active panel.
|
static void |
addPointToActivePanel(double lat,
double lon,
java.awt.event.MouseEvent e)
Add a lat/lon point to the active panel.
|
protected void |
clearRegion()
Clears the region information.
|
void |
closeDialog()
Closes the dialog for this panel.
|
void |
createDialog(IstiRegionPanel regionPanel,
boolean addFlag,
java.awt.Component parentComp,
boolean modalFlag,
boolean centerFlag)
Creates a dialog for this Client Configuration Panel.
|
protected static void |
fireActivePanelActionPerformed(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.
|
static boolean |
isActivePanel()
Determines if there is an active panel.
|
boolean |
isCircle()
Determines if the edit panel is for a circle or a polygon.
|
protected void |
notifyCloseEvent()
Notifies a close event.
|
protected void |
notifyOpenEvent()
Notifies an open event.
|
static void |
removeActivePanelActionListener(java.awt.event.ActionListener l)
Removes an
ActionListener from the active panel. |
static void |
removeAllActivePanelActionListeners()
Removes all ActionListeners from the active panel.
|
protected static java.lang.String |
replace(java.lang.String str,
char oldChar,
char newChar)
Replace the old char with the new char in the coordinate part of the
specified region string.
|
void |
requestFocus()
Overridden version that also calls 'requestFocus()' on the dialog hosting
this panel.
|
void |
setCircle(boolean b)
Set the edit panel for circle or polygon.
|
void |
setRegionString(java.lang.String str)
Sets the region string.
|
int |
showDialog()
Shows the dialog with the Client Configuration Panel after the
configuration settings are loaded.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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, 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
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
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, getBounds, 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, 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
public static final java.lang.String closeDialogCommandString
public static final java.lang.String HELP_OPTION_TEXT
public static final java.lang.String OK_OPTION_TEXT
public static final java.lang.String showDialogCommandString
protected final IstiDialogUtil dialogUtilObj
public IstiRegionEditPanel()
public IstiRegionEditPanel(java.util.List optionGroups)
optionGroups
- the 'IstiRegion' option groups or null for all.public IstiRegionEditPanel(java.util.List optionGroups, java.lang.String str)
optionGroups
- the 'IstiRegion' option groups or null for all.str
- the region string.public static void addActivePanelActionListener(java.awt.event.ActionListener l)
ActionListener
to the active panel.l
- the ActionListener
to be addedpublic static void addPointToActivePanel(double lat, double lon)
lat
- the latitude of the point.lon
- the longitude of the point.public static void addPointToActivePanel(double lat, double lon, java.awt.event.MouseEvent e)
lat
- the latitude of the point.lon
- the longitude of the point.e
- the mouse event or null if none.protected static void fireActivePanelActionPerformed(java.awt.event.ActionEvent event)
event
- the ChangeEvent
objectEventListenerList
public static boolean isActivePanel()
public static void removeActivePanelActionListener(java.awt.event.ActionListener l)
ActionListener
from the active 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 static void removeAllActivePanelActionListeners()
protected static java.lang.String replace(java.lang.String str, char oldChar, char newChar)
str
- the region string.oldChar
- the old character.newChar
- the new character.public void addPoint(double lat, double lon)
lat
- the latitude of the point.lon
- the longitude of the point.public void addPoint(double lat, double lon, java.awt.event.MouseEvent e)
lat
- the latitude of the point.lon
- the longitude of the point.e
- the mouse event or null if none.protected void clearRegion()
public void closeDialog()
public void createDialog(IstiRegionPanel regionPanel, boolean addFlag, java.awt.Component parentComp, boolean modalFlag, boolean centerFlag)
regionPanel
- the region panel.addFlag
- true for add, false for edit.parentComp
- the Component
to check for a
Frame
or Dialog
modalFlag
- true for a modal dialog, false for modeless (allows
other windows to run).centerFlag
- true to have the dialog centered over its parent; false
to have the dialog on the top-right part of the display
screen.public IstiDialogPopup getDialog()
public java.lang.String getRegionString()
public boolean isCircle()
protected void notifyCloseEvent()
protected void notifyOpenEvent()
public void requestFocus()
requestFocus
in class javax.swing.JComponent
public void setCircle(boolean b)
b
- true for circle, false for polygon.public final void setRegionString(java.lang.String str)
str
- the region string.public int showDialog()
#createDialog()