ilog.views.maps.beans
Class IlvJCoordinateSystemEditorPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by ilog.views.maps.beans.IlvJCoordinateSystemEditorPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class IlvJCoordinateSystemEditorPanel
extends JPanel

This class defines a panel to view and edit coordinate systems.
This component is packaged as a Bean and is designed to be used very easily in a JAVA development environment supporting visual programming with Beans.

Since:
JViews 7.5
See Also:
setCoordinateSystem(IlvCoordinateSystem), getCoordinateSystem(), Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
static String CANCEL_DIALOG_COMMAND
          Command used when the user cancels the selection dialog returned in createDialog(JComponent, String, ActionListener)
static String COORDINATE_SYSTEM_CHANGED
          Event type thrown when coordinate system is changed.
static String DATUM_CHANGED
          Event type thrown when datum class is changed.
static String ELLIPSOID_CHANGED
          Event type thrown when ellipsoid class is changed.
static String OK_DIALOG_COMMAND
          Command used when the user accepts the selection dialog returned in createDialog(JComponent, String, ActionListener)
static String PROJECTION_CHANGED
          Event type thrown when projection class is changed.
static String PROJECTION_PROPERTY_CHANGED
          Event type thrown when projection properties are changed.
 
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
IlvJCoordinateSystemEditorPanel()
          Creates an instance of the Projection Editor Panel.
 
Method Summary
 void addCoordinateSystemChangeListener(PropertyChangeListener listener)
          Add a PropertyChangeListener to the listener list.
 JDialog createDialog(JComponent parentComponent, String title, ActionListener listener)
          Creates a dialog containing an IlvCoordinateSystemEditorPanel that will invoke the specified action listener when "OK" or "CANCEL" actions are performed.
 IlvProjectionDictionary createProjectionDictionary()
          Creates the IlvProjectionDictionary used by this editor.
 void fireCoordSysChanged(String reason)
          Fires a PropertyChangeEvent event when the projection changes.
 IlvCoordinateSystem getCoordinateSystem()
          Returns the currently edited coordinate system.
 IlvHorizontalDatum getDatum()
          Returns The currently selected datum.
 JButton getDatumInformationButton()
          Returns the datum information button.
 JComboBox getDatumList()
          Returns The datum selection list.
 IlvEllipsoid getEllipsoid()
          Returns The currently selected ellipsoid.
 JButton getEllipsoidInformationButton()
          Returns the ellipsoid information button.
 JComboBox getEllipsoidList()
          Returns The ellipsoid selection list.
 IlvProjection getProjection()
          Returns The currently selected projection.
 JComboBox getProjectionList()
          Returns The projection selection list.
 boolean isAdvancedCheckBoxVisible()
          Returns true if the "advanced" check box of the editor is visible.
 boolean isAdvancedPanelsVisible()
          Returns the visibility of the advanced panels of the editor.
 boolean isDatumPanelVisible()
          Returns true if the datum panel of the editor is visible.
 boolean isEllipsoidPanelVisible()
          Returns true if the ellipsoid panel of the editor is visible.
 boolean isProjectionPropertySheetVisible()
          Returns true if the projection property sheet of the editor is visible.
 void removeCoordinateSystemChangeListener(PropertyChangeListener listener)
          Remove a PropertyChangeListener from the listener list.
 void setAdvancedCheckBoxVisible(boolean boxVisible)
          Sets the visibility of the "advanced" check box of the editor.
 void setAdvancedPanelsVisible(boolean advancedPanelVisible)
          Sets the visibility of the advanced panels of the editor.
 void setCoordinateSystem(IlvCoordinateSystem cs)
          Sets the coordinate system displayed in the panel.
 void setDatumPanelVisible(boolean datumPanelVisible)
          Sets the visibility of the datum panel of the editor.
 void setEllipsoidPanelVisible(boolean ellipsoidPanelVisible)
          Sets the visibility of the ellipsoid panel of the editor.
 void setEnabled(boolean enabled)
          Sets whether or not this component is enabled.
 void setProjectionPropertySheetVisible(boolean sheetVisible)
          Sets the visibility of the projection property sheet of the editor.
 
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, 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, 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, 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, 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, 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, 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, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CANCEL_DIALOG_COMMAND

public static final String CANCEL_DIALOG_COMMAND
Command used when the user cancels the selection dialog returned in createDialog(JComponent, String, ActionListener)

See Also:
Constant Field Values

OK_DIALOG_COMMAND

public static final String OK_DIALOG_COMMAND
Command used when the user accepts the selection dialog returned in createDialog(JComponent, String, ActionListener)

See Also:
Constant Field Values

PROJECTION_CHANGED

public static final String PROJECTION_CHANGED
Event type thrown when projection class is changed.

See Also:
Constant Field Values

ELLIPSOID_CHANGED

public static final String ELLIPSOID_CHANGED
Event type thrown when ellipsoid class is changed.

See Also:
Constant Field Values

DATUM_CHANGED

public static final String DATUM_CHANGED
Event type thrown when datum class is changed.

See Also:
Constant Field Values

COORDINATE_SYSTEM_CHANGED

public static final String COORDINATE_SYSTEM_CHANGED
Event type thrown when coordinate system is changed.

See Also:
Constant Field Values

PROJECTION_PROPERTY_CHANGED

public static final String PROJECTION_PROPERTY_CHANGED
Event type thrown when projection properties are changed.

See Also:
Constant Field Values
Constructor Detail

IlvJCoordinateSystemEditorPanel

public IlvJCoordinateSystemEditorPanel()
Creates an instance of the Projection Editor Panel.

Method Detail

getDatumInformationButton

public JButton getDatumInformationButton()
Returns the datum information button.

Returns:
Returns the datum information button.

getEllipsoidInformationButton

public JButton getEllipsoidInformationButton()
Returns the ellipsoid information button.

Returns:
Returns the ellipsoid information button.

getCoordinateSystem

public IlvCoordinateSystem getCoordinateSystem()
Returns the currently edited coordinate system.

Returns:
The coordinate system selected by user.

setCoordinateSystem

public void setCoordinateSystem(IlvCoordinateSystem cs)
Sets the coordinate system displayed in the panel.

Parameters:
cs - Initial coordinate system.

setEnabled

public void setEnabled(boolean enabled)
Sets whether or not this component is enabled.

Overrides:
setEnabled in class JComponent
See Also:
JComponent.setEnabled(boolean)

getDatum

public IlvHorizontalDatum getDatum()
Returns The currently selected datum.

Returns:
The currently selected datum.

getDatumList

public JComboBox getDatumList()
Returns The datum selection list.

Returns:
The datum selection list.

getEllipsoid

public IlvEllipsoid getEllipsoid()
Returns The currently selected ellipsoid.

Returns:
The currently selected ellipsoid.

getEllipsoidList

public JComboBox getEllipsoidList()
Returns The ellipsoid selection list.

Returns:
The ellipsoid selection list.

getProjection

public IlvProjection getProjection()
Returns The currently selected projection.

Returns:
The currently selected projection.

getProjectionList

public JComboBox getProjectionList()
Returns The projection selection list.

Returns:
The projection selection list.

fireCoordSysChanged

public void fireCoordSysChanged(String reason)
Fires a PropertyChangeEvent event when the projection changes.

Parameters:
reason - Reason for the event.

addCoordinateSystemChangeListener

public void addCoordinateSystemChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list.
The event fired will include the old and new coordinate systems and a reason:

removeCoordinateSystemChangeListener

public void removeCoordinateSystemChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list.

Parameters:
listener - The PropertyChangeListener to be removed.

isDatumPanelVisible

public boolean isDatumPanelVisible()
Returns true if the datum panel of the editor is visible.

Returns:
true if the datum panel is visible, else false.

setDatumPanelVisible

public void setDatumPanelVisible(boolean datumPanelVisible)
Sets the visibility of the datum panel of the editor.

Parameters:
datumPanelVisible - A boolean value -- true to make the panel visible, false to hide it.

isEllipsoidPanelVisible

public boolean isEllipsoidPanelVisible()
Returns true if the ellipsoid panel of the editor is visible.

Returns:
true if the ellipsoid panel is visible, else false.

setEllipsoidPanelVisible

public void setEllipsoidPanelVisible(boolean ellipsoidPanelVisible)
Sets the visibility of the ellipsoid panel of the editor.

Parameters:
ellipsoidPanelVisible - a boolean value -- true to make the panel visible, false to hide it.

isProjectionPropertySheetVisible

public boolean isProjectionPropertySheetVisible()
Returns true if the projection property sheet of the editor is visible.

Returns:
true if the projection property sheet is visible, else false.

setAdvancedCheckBoxVisible

public void setAdvancedCheckBoxVisible(boolean boxVisible)
Sets the visibility of the "advanced" check box of the editor.

Parameters:
boxVisible - a boolean value -- true to make the check box visible, false to hide it.

isAdvancedCheckBoxVisible

public boolean isAdvancedCheckBoxVisible()
Returns true if the "advanced" check box of the editor is visible.

Returns:
true if the check box is visible, else false.

setProjectionPropertySheetVisible

public void setProjectionPropertySheetVisible(boolean sheetVisible)
Sets the visibility of the projection property sheet of the editor.

Parameters:
sheetVisible - a boolean value -- true to make the sheet visible, false to hide it.

setAdvancedPanelsVisible

public void setAdvancedPanelsVisible(boolean advancedPanelVisible)
Sets the visibility of the advanced panels of the editor.

Parameters:
advancedPanelVisible - a boolean value -- true to make the panels visible, false to hide it.
See Also:
setProjectionPropertySheetVisible(boolean), setEllipsoidPanelVisible(boolean), setDatumPanelVisible(boolean)

isAdvancedPanelsVisible

public boolean isAdvancedPanelsVisible()
Returns the visibility of the advanced panels of the editor.

Returns:
If the advanced panels should be visible, true is returned.
Since:
JViews 8.1

createDialog

public JDialog createDialog(JComponent parentComponent,
                            String title,
                            ActionListener listener)
Creates a dialog containing an IlvCoordinateSystemEditorPanel that will invoke the specified action listener when "OK" or "CANCEL" actions are performed.

Parameters:
parentComponent - Determines the frame in which the dialog is displayed.
title - Title of the dialog.
listener - Listener to be invoked when the dialog closes.
Returns:
A newly created JDialog.
See Also:
CANCEL_DIALOG_COMMAND, OK_DIALOG_COMMAND

createProjectionDictionary

public IlvProjectionDictionary createProjectionDictionary()
Creates the IlvProjectionDictionary used by this editor. This default implementation returns a new IlvProjectionDictionary.

Returns:
The IlvProjectionDictionary used by this editor.
Since:
JViews 7.5


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.