ilog.views.maps.beans
Class IlvJAreaOfInterestPanel

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

public class IlvJAreaOfInterestPanel
extends JPanel
implements ListSelectionListener

Panel to manage stored areas.

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
 
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
IlvJAreaOfInterestPanel()
          Creates a new IlvJAreaOfInterestPanel.
IlvJAreaOfInterestPanel(IlvManagerView pview, boolean allowAdd, boolean allowRemove, boolean allowRename)
          Creates a panel to manage stored areas.
 
Method Summary
static IlvAreaOfInterest createLocationFromView(IlvManagerView view, int previewMaxSize, boolean askName)
          Creates an area of interest from the view current parameters.
 JButton getGoButton()
          Returns the go Button.
 JList getList()
          Returns the list of areas.
 JButton getLowerButton()
          Returns the lower Button.
 JButton getRaiseButton()
          Returns the raise Button.
 JButton getRefreshButton()
          Returns the refresh Button.
 JButton getRemoveButton()
          Returns the remove Button.
 JButton getRenameButton()
          Returns the rename Button.
 JToolBar getToolbar()
          Returns the toolbar.
 IlvManagerView getView()
          Returns the view.
 boolean isShowLabels()
          Indicates whether or not the area of interest labels will be displayed.
static Image makePreview(IlvManagerView view, int previewMaxSize)
          Creates a preview image of the view.
static void refreshPreview(IlvManagerView view, IlvAreaOfInterest area, int previewMaxSize)
          Refreshes the preview image for a particular area by taking a snapshot on the specified view.
 void setShowLabels(boolean showLabels)
          Determines whether or not the area of interest labels will be displayed.
 void setView(IlvManagerView pview)
          Sets the view.
 void valueChanged(ListSelectionEvent e)
          Called whenever the selected area changes.
 
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
 

Constructor Detail

IlvJAreaOfInterestPanel

public IlvJAreaOfInterestPanel()
Creates a new IlvJAreaOfInterestPanel.

Since:
JViews 8.1

IlvJAreaOfInterestPanel

public IlvJAreaOfInterestPanel(IlvManagerView pview,
                               boolean allowAdd,
                               boolean allowRemove,
                               boolean allowRename)
Creates a panel to manage stored areas.

Parameters:
pview - View the areas must be picked from/applied to.
allowAdd - If true, will enable adding areas.
allowRemove - If true, will enable removing areas
allowRename - If true, will enable renaming areas.
Method Detail

getList

public JList getList()
Returns the list of areas.

Returns:
Returns the list of areas.
Since:
JViews 7.5

getToolbar

public JToolBar getToolbar()
Returns the toolbar.

Returns:
Returns the toolbar.
Since:
JViews 7.5

getRemoveButton

public JButton getRemoveButton()
Returns the remove Button.

Returns:
Returns the remove Button.
Since:
JViews 7.5

getRefreshButton

public JButton getRefreshButton()
Returns the refresh Button.

Returns:
Returns the refresh Button.
Since:
JViews 7.5

getGoButton

public JButton getGoButton()
Returns the go Button.

Returns:
Returns the go Button.
Since:
JViews 7.5

getRaiseButton

public JButton getRaiseButton()
Returns the raise Button.

Returns:
Returns the raise Button.
Since:
JViews 7.5

getLowerButton

public JButton getLowerButton()
Returns the lower Button.

Returns:
Returns the lower Button.
Since:
JViews 7.5

getRenameButton

public JButton getRenameButton()
Returns the rename Button.

Returns:
Returns the rename Button.
Since:
JViews 7.5

getView

public IlvManagerView getView()
Returns the view.

Returns:
Returns the view.
Since:
JViews 8.1

setView

public void setView(IlvManagerView pview)
Sets the view.

Parameters:
pview -
Since:
JViews 8.1

refreshPreview

public static void refreshPreview(IlvManagerView view,
                                  IlvAreaOfInterest area,
                                  int previewMaxSize)
Refreshes the preview image for a particular area by taking a snapshot on the specified view.

Parameters:
view - View from which to take snapshot.
area - Area of interest to update.
previewMaxSize - Dimension of either width or height of image created.

valueChanged

public void valueChanged(ListSelectionEvent e)
Called whenever the selected area changes.

Specified by:
valueChanged in interface ListSelectionListener
See Also:
ListSelectionListener.valueChanged(javax.swing.event.ListSelectionEvent)

makePreview

public static Image makePreview(IlvManagerView view,
                                int previewMaxSize)
Creates a preview image of the view.

Parameters:
view - View to draw.
previewMaxSize - Maximum dimension of the image.
Returns:
The image if previewMaxSize is positive.

createLocationFromView

public static IlvAreaOfInterest createLocationFromView(IlvManagerView view,
                                                       int previewMaxSize,
                                                       boolean askName)
Creates an area of interest from the view current parameters.

Parameters:
view - The manager view.
previewMaxSize - Size of the preview image or 0 if no images are needed.
askName - true to display a modal dialog asking the user for the area name.
Returns:
The newly created area of interest.

setShowLabels

public void setShowLabels(boolean showLabels)
Determines whether or not the area of interest labels will be displayed.
Default value is true.

Parameters:
showLabels - true to display labels.
Since:
JViews 7.5

isShowLabels

public boolean isShowLabels()
Indicates whether or not the area of interest labels will be displayed.

Returns:
Returns the showLabels.
Since:
JViews 7.5


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