ilog.views.maps.beans
Class IlvJMapsManagerViewControlBar

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

public class IlvJMapsManagerViewControlBar
extends IlvJManagerViewControlBar

IlvJMapsManagerViewControlBar overrides IlvJManagerViewControlBar to provide rotate, magnify and continuous zoom interactors in addition to the standard tools.

Since:
JViews 8.1
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JToolBar
JToolBar.AccessibleJToolBar, JToolBar.Separator
 
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 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 javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
IlvJMapsManagerViewControlBar()
          Creates a new IlvJMapsManagerViewControlBar instance.
 
Method Summary
 Icon getContinuousZoomIcon()
          Returns the continuous zoom button icon.
 URL getContinuousZoomIconURL()
          Returns the URL of the continuous zoom button icon.
 IlvManagerViewInteractor getContinuousZoomInteractor()
          Returns the continuous zoom interactor currently in use.
 String getContinuousZoomToolTipText()
          Returns the text that will be displayed in the ToolTip when the mouse rests on the continuous zoom button.
 Icon getMagnifyIcon()
          Returns the magnify button icon.
 URL getMagnifyIconURL()
          Returns the URL of the magnify button icon.
 IlvManagerViewInteractor getMagnifyInteractor()
          Returns the magnify interactor currently in use.
 String getMagnifyToolTipText()
          Returns the text displayed in the ToolTip when the mouse rests on the magnify button.
 Icon getRotatorIcon()
          Returns the rotate button icon.
 URL getRotatorIconURL()
          Returns the URL to the rotate button icon.
 IlvManagerViewInteractor getRotatorInteractor()
          Returns the rotate interactor currently in use.
 String getRotatorToolTipText()
          Returns the text that will be displayed in the ToolTip when the mouse rests on the rotate button.
 boolean isContinuousZoomButtonAvailable()
          Returns true if the continuous zoom tool is available.
 boolean isMagnifyButtonAvailable()
          Returns true if the magnify tool is available.
 boolean isRotatorButtonAvailable()
          Returns true if the rotate tool is available.
 void setContinuousZoomButtonAvailable(boolean available)
          Specifies whether the continuous zoom tool is available.
 void setContinuousZoomIcon(Icon icon)
          Sets the continuous zoom button icon.
 void setContinuousZoomIconURL(URL iconURL)
          Sets the continuous zoom button icon.
 void setContinuousZoomInteractor(IlvManagerViewInteractor interactor)
          Changes the continuous zoom interactor.
 void setContinuousZoomToolTipText(String text)
          Sets the text to display in the continuous zoom button ToolTip.
 void setMagnifyButtonAvailable(boolean available)
          Specifies whether the magnify tool is available.
 void setMagnifyIcon(Icon icon)
          Sets a new icon for the magnify button.
 void setMagnifyIconURL(URL iconURL)
          Sets the magnify button icon.
 void setMagnifyInteractor(IlvManagerViewInteractor interactor)
          Changes the magnify interactor.
 void setMagnifyToolTipText(String text)
          Sets the text that will be displayed in the ToolTip when the mouse rests on the magnify button.
 void setRotatorButtonAvailable(boolean available)
          Specifies whether the rotate tool is available.
 void setRotatorIcon(Icon icon)
          Sets the rotate button icon.
 void setRotatorIconURL(URL iconURL)
          Sets the rotate button icon.
 void setRotatorInteractor(IlvManagerViewInteractor interactor)
          Changes the rotate interactor.
 void setRotatorToolTipText(String text)
          Sets the text that will be displayed in the ToolTip when the mouse rests on the rotate button.
 
Methods inherited from class ilog.views.swing.IlvJManagerViewControlBar
addActionButton, addInteractorButton, getFitToContentsIcon, getFitToContentsIconURL, getFitToContentsToolTipText, getPanIcon, getPanIconURL, getPanInteractor, getPanToolTipText, getSelectIcon, getSelectIconURL, getSelectInteractor, getSelectToolTipText, getView, getZoomInFactor, getZoomInIcon, getZoomInIconURL, getZoomInToolTipText, getZoomOutFactor, getZoomOutIcon, getZoomOutIconURL, getZoomOutToolTipText, getZoomViewIcon, getZoomViewIconURL, getZoomViewInteractor, getZoomViewToolTipText, isFitToContentsButtonAvailable, isPanButtonAvailable, isSelectButtonAvailable, isZoomInButtonAvailable, isZoomOutButtonAvailable, isZoomViewButtonAvailable, setFitToContentsButtonAvailable, setFitToContentsIcon, setFitToContentsIconURL, setFitToContentsToolTipText, setPanButtonAvailable, setPanIcon, setPanIconURL, setPanInteractor, setPanToolTipText, setSelectButtonAvailable, setSelectIcon, setSelectIconURL, setSelectInteractor, setSelectToolTipText, setView, setZoomInButtonAvailable, setZoomInFactor, setZoomInIcon, setZoomInIconURL, setZoomInToolTipText, setZoomOutButtonAvailable, setZoomOutFactor, setZoomOutIcon, setZoomOutIconURL, setZoomOutToolTipText, setZoomViewButtonAvailable, setZoomViewIcon, setZoomViewIconURL, setZoomViewInteractor, setZoomViewToolTipText
 
Methods inherited from class javax.swing.JToolBar
add, addImpl, addSeparator, addSeparator, createActionChangeListener, createActionComponent, getAccessibleContext, getComponentAtIndex, getComponentIndex, getMargin, getOrientation, getUI, getUIClassID, isBorderPainted, isFloatable, isRollover, paintBorder, paramString, setBorderPainted, setFloatable, setLayout, setMargin, setOrientation, setRollover, 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, 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, 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, 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
 

Constructor Detail

IlvJMapsManagerViewControlBar

public IlvJMapsManagerViewControlBar()
Creates a new IlvJMapsManagerViewControlBar instance.

Method Detail

setRotatorButtonAvailable

public void setRotatorButtonAvailable(boolean available)
Specifies whether the rotate tool is available. The rotate tool allows the user to rotate the view.

Parameters:
available - Set to true so the rotate tool is available.

isRotatorButtonAvailable

public boolean isRotatorButtonAvailable()
Returns true if the rotate tool is available.

Returns:
If the rotate tool is available, true is returned.

setRotatorToolTipText

public void setRotatorToolTipText(String text)
Sets the text that will be displayed in the ToolTip when the mouse rests on the rotate button.

Parameters:
text - The text to display in the rotate button ToolTip.

getRotatorToolTipText

public String getRotatorToolTipText()
Returns the text that will be displayed in the ToolTip when the mouse rests on the rotate button.

Returns:
The text to display in the rotate button ToolTip.

setRotatorIconURL

public void setRotatorIconURL(URL iconURL)
Sets the rotate button icon. By default, buttons are 26x26 in size. ILOG recommends that you use icons of size 16x16.

Parameters:
iconURL - The URL to the rotate button icon.

getRotatorIconURL

public URL getRotatorIconURL()
Returns the URL to the rotate button icon.

Returns:
The URL to the rotate button icon. If the icon was set using setRotatorIcon(javax.swing.Icon) and not setRotatorIconURL(java.net.URL), null is returned.

setRotatorIcon

public void setRotatorIcon(Icon icon)
Sets the rotate button icon. By default, buttons are 26x26 in size. ILOG recommends that you use icons of size 16x16.

Parameters:
icon - The rotate button icon.

getRotatorIcon

public Icon getRotatorIcon()
Returns the rotate button icon.

Returns:
The rotate button icon.

setRotatorInteractor

public void setRotatorInteractor(IlvManagerViewInteractor interactor)
Changes the rotate interactor.

Parameters:
interactor - The new rotate interactor.
See Also:
IlvManagerViewRotateInteractor

getRotatorInteractor

public IlvManagerViewInteractor getRotatorInteractor()
Returns the rotate interactor currently in use.

Returns:
The rotate interactor in use

setContinuousZoomButtonAvailable

public void setContinuousZoomButtonAvailable(boolean available)
Specifies whether the continuous zoom tool is available. Continuous zoom allows the user to pan, zoom in or zoom out of a view constantly while the mouse is pressed.

Parameters:
available - Set to true to enable the continuous zoom.

isContinuousZoomButtonAvailable

public boolean isContinuousZoomButtonAvailable()
Returns true if the continuous zoom tool is available.

Returns:
If the continuous zoom tool is available, true is returned.

setContinuousZoomToolTipText

public void setContinuousZoomToolTipText(String text)
Sets the text to display in the continuous zoom button ToolTip.

Parameters:
text - The text to display in the continuous zoom button ToolTip.

getContinuousZoomToolTipText

public String getContinuousZoomToolTipText()
Returns the text that will be displayed in the ToolTip when the mouse rests on the continuous zoom button.

Returns:
The text to display in the continuous zoom button ToolTip.

setContinuousZoomIconURL

public void setContinuousZoomIconURL(URL iconURL)
Sets the continuous zoom button icon. By default, buttons are 26x26 in size. ILOG recommends that you use icons of size 16x16.

Parameters:
iconURL - The URL to the continuous zoom button icon.

getContinuousZoomIconURL

public URL getContinuousZoomIconURL()
Returns the URL of the continuous zoom button icon.

Returns:
The URL to the continuous zoom button icon. This method returns null if the icon was set using setContinuousZoomIcon(javax.swing.Icon) and not setContinuousZoomIconURL(java.net.URL).

setContinuousZoomIcon

public void setContinuousZoomIcon(Icon icon)
Sets the continuous zoom button icon. By default, buttons are 26x26 in size. ILOG recommends that you use icons of size 16x16.

Parameters:
icon - The icon of the continuous zoom button.

getContinuousZoomIcon

public Icon getContinuousZoomIcon()
Returns the continuous zoom button icon.

Returns:
The continuous zoom button icon.

setContinuousZoomInteractor

public void setContinuousZoomInteractor(IlvManagerViewInteractor interactor)
Changes the continuous zoom interactor.

Parameters:
interactor - The new continuous zoom interactor.
See Also:
IlvContinuousZoomInteractor

getContinuousZoomInteractor

public IlvManagerViewInteractor getContinuousZoomInteractor()
Returns the continuous zoom interactor currently in use.

Returns:
The continuous zoom interactor in use.

setMagnifyButtonAvailable

public void setMagnifyButtonAvailable(boolean available)
Specifies whether the magnify tool is available. The magnify tool acts like magnifying glass moved over the view.

Parameters:
available - Set to true to enable the magnify tool.

isMagnifyButtonAvailable

public boolean isMagnifyButtonAvailable()
Returns true if the magnify tool is available.

Returns:
If the magnify tool is available, true is returned.

setMagnifyToolTipText

public void setMagnifyToolTipText(String text)
Sets the text that will be displayed in the ToolTip when the mouse rests on the magnify button.

Parameters:
text - The text to display in the magnify button ToolTip.

getMagnifyToolTipText

public String getMagnifyToolTipText()
Returns the text displayed in the ToolTip when the mouse rests on the magnify button.

Returns:
The text displayed in the magnify button ToolTip.

setMagnifyIconURL

public void setMagnifyIconURL(URL iconURL)
Sets the magnify button icon. By default, buttons are 26x26 in size. ILOG recommends that you use icons of size 16x16.

Parameters:
iconURL - The URL to the new magnify button icon.

getMagnifyIconURL

public URL getMagnifyIconURL()
Returns the URL of the magnify button icon.

Returns:
The URL of the magnify button icon. This method returns null if the icon was set using setMagnifyIcon(javax.swing.Icon) instead of setMagnifyIconURL(java.net.URL).

setMagnifyIcon

public void setMagnifyIcon(Icon icon)
Sets a new icon for the magnify button. By default, buttons are 26x26 in size. ILOG recommends that you use icons of size 16x16.

Parameters:
icon - The new magnify button icon.

getMagnifyIcon

public Icon getMagnifyIcon()
Returns the magnify button icon.

Returns:
The magnify button icon.

setMagnifyInteractor

public void setMagnifyInteractor(IlvManagerViewInteractor interactor)
Changes the magnify interactor.

Parameters:
interactor - The new interactor.
See Also:
IlvMagnifyInteractor

getMagnifyInteractor

public IlvManagerViewInteractor getMagnifyInteractor()
Returns the magnify interactor currently in use.

Returns:
The magnify interactor in use.


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