ilog.views.maps.beans
Class IlvJDisplayPreferencesEditorPanel

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.IlvJDisplayPreferencesEditorPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class IlvJDisplayPreferencesEditorPanel
extends JPanel

This class defines a panel to view and edit display preferences for beans such as a scale bar or coordinate viewer.
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:
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 ALTITUDE_UNIT_CHANGED
          Event reason to indicate that altitude preferences have changed.
static String COORD_FORMATTER_CHANGED
          Event reason to indicate that coordinate formatter preferences have changed.
static String DISTANCE_UNIT_CHANGED
          Event reason to indicate that distance preferences have changed.
static String GEODETIC_STATE_CHANGED
          Event reason to indicate that altitude preferences have changed.
static String PREFERENCES_CHANGED
          Event reason to indicate that all preferences have 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
IlvJDisplayPreferencesEditorPanel()
          Creates an instance of Projection Editor Panel.
 
Method Summary
 void addDisplayPreferencesChangeListener(PropertyChangeListener listener)
          Add a PropertyChangeListener to the listener list.
 void firePreferencesChanged(String reason)
          Fires a PropertyChangeEvent event when preferences change.
 IlvLinearUnit getAltitudeUnit()
          Returns the altitude unit selected on the panel.
 JComboBox getAltitudeUnitList()
          Returns A combo box lazily created using all units returned by IlvUnit.GetRegisteredUnits().
 IlvCoordinateFormatter getCoordinateFormatter()
          Returns the coordinate formatter selected on the panel.
 JComboBox getCoordinateFormatterList()
          Returns A combo box lazily created using IlvCoordinateFormatterDictionary.getFormatterNames().
 IlvDisplayPreferences getDisplayPreferences()
          Returns the display preferences set in the panel.
 IlvLinearUnit getDistanceUnit()
          Returns the distance unit selected on the panel.
 JComboBox getDistanceUnitList()
          Returns A combo box lazily created using all units returned by IlvUnit.GetRegisteredUnits().
 JCheckBox getUsingGeodeticComputationCheckBox()
          Returns A check box lazily created to edit the Geodetic Computation boolean.
 boolean isUsingGeodeticComputation()
          Returns an indication that the map should use geodetic computation/date line wrapping.
 void removeDisplayPreferencesChangeListener(PropertyChangeListener listener)
          Remove a PropertyChangeListener from the listener list.
 void setAltitudeUnit(IlvLinearUnit el)
          Selects an Altitude unit.
 void setCoordinateFormatter(IlvCoordinateFormatter el)
          Selects the coordinate formatter.
 void setDisplayPreferences(IlvDisplayPreferences cs)
          Sets the display preferences displayed in the panel.
 void setDistanceUnit(IlvLinearUnit el)
          Selects a Distance unit.
 void setUsingGeodeticComputation(boolean usingGeodeticComputation)
          Changes the indication that the map should use geodetic computation/date line wrapping.
 
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, 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, 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

DISTANCE_UNIT_CHANGED

public static final String DISTANCE_UNIT_CHANGED
Event reason to indicate that distance preferences have changed.

See Also:
Constant Field Values

ALTITUDE_UNIT_CHANGED

public static final String ALTITUDE_UNIT_CHANGED
Event reason to indicate that altitude preferences have changed.

See Also:
Constant Field Values

GEODETIC_STATE_CHANGED

public static final String GEODETIC_STATE_CHANGED
Event reason to indicate that altitude preferences have changed.

See Also:
Constant Field Values

COORD_FORMATTER_CHANGED

public static final String COORD_FORMATTER_CHANGED
Event reason to indicate that coordinate formatter preferences have changed.

See Also:
Constant Field Values

PREFERENCES_CHANGED

public static final String PREFERENCES_CHANGED
Event reason to indicate that all preferences have changed.

See Also:
Constant Field Values
Constructor Detail

IlvJDisplayPreferencesEditorPanel

public IlvJDisplayPreferencesEditorPanel()
Creates an instance of Projection Editor Panel.

Method Detail

getDisplayPreferences

public IlvDisplayPreferences getDisplayPreferences()
Returns the display preferences set in the panel.

Returns:
Returns the display preferences set in the panel.

setDisplayPreferences

public void setDisplayPreferences(IlvDisplayPreferences cs)
Sets the display preferences displayed in the panel.

Parameters:
cs - Display preferences to select in the panel.

getDistanceUnit

public IlvLinearUnit getDistanceUnit()
Returns the distance unit selected on the panel.

Returns:
Returns the distance unit selected on the panel.

getDistanceUnitList

public JComboBox getDistanceUnitList()
Returns A combo box lazily created using all units returned by IlvUnit.GetRegisteredUnits().

Returns:
A combo box lazily created using all units returned by IlvUnit.GetRegisteredUnits().

setDistanceUnit

public void setDistanceUnit(IlvLinearUnit el)
Selects a Distance unit.

Parameters:
el - Distance unit to select in the panel.

getAltitudeUnit

public IlvLinearUnit getAltitudeUnit()
Returns the altitude unit selected on the panel.

Returns:
Returns the altitude unit selected on the panel.

getAltitudeUnitList

public JComboBox getAltitudeUnitList()
Returns A combo box lazily created using all units returned by IlvUnit.GetRegisteredUnits().

Returns:
A combo box lazily created using all units returned by IlvUnit.GetRegisteredUnits().

setAltitudeUnit

public void setAltitudeUnit(IlvLinearUnit el)
Selects an Altitude unit.

Parameters:
el - Altitude unit to select on the panel.

isUsingGeodeticComputation

public boolean isUsingGeodeticComputation()
Returns an indication that the map should use geodetic computation/date line wrapping.

Returns:
Returns an indication that the map should use geodetic computation/date line wrapping.

getUsingGeodeticComputationCheckBox

public JCheckBox getUsingGeodeticComputationCheckBox()
Returns A check box lazily created to edit the Geodetic Computation boolean.

Returns:
A check box lazily created to edit the Geodetic Computation boolean.

setUsingGeodeticComputation

public void setUsingGeodeticComputation(boolean usingGeodeticComputation)
Changes the indication that the map should use geodetic computation/date line wrapping.

Parameters:
usingGeodeticComputation - true to set date line wrapping on.

getCoordinateFormatter

public IlvCoordinateFormatter getCoordinateFormatter()
Returns the coordinate formatter selected on the panel.

Returns:
Returns the coordinate formatter selected on the panel.

getCoordinateFormatterList

public JComboBox getCoordinateFormatterList()
Returns A combo box lazily created using IlvCoordinateFormatterDictionary.getFormatterNames().

Returns:
A combo box lazily created using IlvCoordinateFormatterDictionary.getFormatterNames().

setCoordinateFormatter

public void setCoordinateFormatter(IlvCoordinateFormatter el)
Selects the coordinate formatter.

Parameters:
el - Coordinate formatter to select on the panel.

firePreferencesChanged

public void firePreferencesChanged(String reason)
Fires a PropertyChangeEvent event when preferences change.

Parameters:
reason - Reason for the event.

addDisplayPreferencesChangeListener

public void addDisplayPreferencesChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list.
The event fired will include the old and new preferences and a reason.

Parameters:
listener - The PropertyChangeListener to be added.

removeDisplayPreferencesChangeListener

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

Parameters:
listener - The PropertyChangeListener to be removed.


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