ilog.views.maps.beans
Class IlvJAutomaticScaleBar

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

public class IlvJAutomaticScaleBar
extends IlvJScaleBar

This class extends IlvJScaleBar in order to take advantage of the new IlvDisplayPreferencesProperty of the managers. The unit displayed in the scale bar is automatically set to the distance unit set in the property.
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.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
 
Fields inherited from class ilog.views.maps.beans.IlvJScaleBar
DASH_SCALE_EVEN, DASH_SCALE_ODD, DOUBLE_DASH_SCALE_EVEN, DOUBLE_DASH_SCALE_ODD, DOUBLE_SCALE_EMPTY, SCALE_EMPTY, SIMPLE_SCALE_BOTTOM, SIMPLE_SCALE_CENTER, THREE_LABELS, UNIQUE_LABEL
 
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
IlvJAutomaticScaleBar()
          Creates a new IlvJAutomaticScaleBar.
 
Method Summary
 void setFarUnit(IlvLinearUnit unit)
          Setting far Unit manually will remove the automatic listener of IlvDisplayPreferencesProperty.
 void setNearUnit(IlvLinearUnit unit)
          Setting near Unit manually will remove the automatic listener of IlvDisplayPreferencesProperty.
 void setView(IlvManagerView view)
          When setting the view, a listener will be added on IlvDisplayPreferencesProperty of the manager of the view.
 
Methods inherited from class ilog.views.maps.beans.IlvJScaleBar
getAlternateScaleColor, getFarLimit, getFarUnit, getGraphic, getMarginHeight, getMarginWidth, getMinimumSize, getNearUnit, getPreferredSize, getScaleHeight, getScaleStyle, getScaleTextMode, getTextSpacing, getView, paint, setAlternateScaleColor, setBounds, setFarLimit, setGraphic, setMarginHeight, setMarginWidth, setScaleHeight, setScaleStyle, setScaleTextMode, setSize, setTextSpacing
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, 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, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, 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, updateUI
 
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, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvJAutomaticScaleBar

public IlvJAutomaticScaleBar()
Creates a new IlvJAutomaticScaleBar.

Method Detail

setNearUnit

public void setNearUnit(IlvLinearUnit unit)
Setting near Unit manually will remove the automatic listener of IlvDisplayPreferencesProperty.

Overrides:
setNearUnit in class IlvJScaleBar
Parameters:
unit - The near unit converter.
See Also:
IlvJScaleBar.setNearUnit(ilog.views.maps.IlvLinearUnit)

setFarUnit

public void setFarUnit(IlvLinearUnit unit)
Setting far Unit manually will remove the automatic listener of IlvDisplayPreferencesProperty.

Overrides:
setFarUnit in class IlvJScaleBar
Parameters:
unit - The far unit.
See Also:
IlvJScaleBar.setFarUnit(ilog.views.maps.IlvLinearUnit)

setView

public void setView(IlvManagerView view)
When setting the view, a listener will be added on IlvDisplayPreferencesProperty of the manager of the view. This listener, when fired, will update the scale bar unit according to the new distance unit set in the property.

Overrides:
setView in class IlvJScaleBar
Parameters:
view - The view.
See Also:
IlvJScaleBar.setView(ilog.views.IlvManagerView)


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