ilog.cpl.graphic.views
Class IlpManagerView

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by ilog.views.IlvManagerView
              extended by ilog.cpl.graphic.views.IlpManagerView
All Implemented Interfaces:
IlvObjectInteractorContext, ImageObserver, MenuContainer, Serializable

public class IlpManagerView
extends IlvManagerView

This is a subclass of ILOG JViews IlvManagerView that adds support for IlpViewsViewInteractor.

Since:
JTGO 3.0
See Also:
Serialized Form

Nested Class Summary
static class IlpManagerView.DeafManagerViewInteractor
          A manager view interactor that doesn't react to any event.
 
Nested classes/interfaces inherited from class ilog.views.IlvManagerView
IlvManagerView.FitAreaCalculator
 
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 Color DEFAULT_BACKGROUND_COLOR
          Default background color.
 
Fields inherited from class ilog.views.IlvManagerView
DIRECT_REDRAW, THREADED_REDRAW
 
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
IlpManagerView(IlpGraphicView cplView)
          Creates a new manager view.
IlpManagerView(IlpGraphicView cplView, IlvManager manager)
          Creates a new manager view to display the contents of the specified manager.
IlpManagerView(IlpGraphicView cplView, IlvManager manager, IlvTransformer t)
          Creates a new manager view.
IlpManagerView(IlpGraphicView cplView, IlvManager manager, IlvTransformer t, boolean isInteracted)
          Creates a new manager view.
 
Method Summary
 void addPaintListener(ActionListener listener)
          Adds a listener that is called when paint(Graphics) is invoked.
 IlpGraphicView getGraphicView()
          Returns the graphic view to which this manager view belongs.
 boolean isInteractedByToolBar()
          Checks whether this manager view is interacted by the toolbar or not.
 void paint(Graphics g)
          Paint the manager view.
protected  void processEvent(AWTEvent event)
          Process events that occur in this manager view.
 void removePaintListener(ActionListener listener)
          Removes a listener added through addPaintListener.
 void verifyTransformer()
          Checks a transformer before setting it to a view.
 void zoomBack(boolean redraw)
          Go back to the previous zoom applied on the manager view.
 
Methods inherited from class ilog.views.IlvManagerView
addInteractorListener, addManagerChangedListener, addNotify, addTransformer, addTransformerListener, addViewDecoration, computeBBox, computeBBox, ensureVisible, ensureVisible, fitTransformerToArea, fitTransformerToContent, fitTransformerToContent, fitTransformerToContent, getBackgroundPattern, getBackgroundPatternLocation, getDefaultGhostColor, getDefaultXORColor, getGrid, getInteractor, getManager, getMaximumSize, getMaxZoomXFactor, getMaxZoomYFactor, getMinimumSize, getMinZoomXFactor, getMinZoomYFactor, getPopupMenu, getPopupMenu, getPreferredSize, getRedrawMode, getRegion, getRepaintSkipThreshold, getTransformer, getTripleBufferedLayerCount, getViewDecoration, getViewDecorationCount, imageUpdate, initDisplayInfo, interactorChanged, invalidateRect, invalidateTripleBuffer, invalidateTripleBuffer, invalidateView, isAntialiasing, isAtZoomXFactorLimit, isAtZoomYFactorLimit, isAutoFitToContents, isContributingToViewBBox, isDoubleBufferFrozen, isDoubleBuffering, isEventDispatching, isInSwingParent, isKeepingAspectRatio, isLayerCached, isOptimizedTranslation, isTransparent, isVisible, isWheelZoomingEnabled, isWheelZoomingInverted, managerChanged, popInteractor, processKeyEvent, pushInteractor, pushInteractor, reDrawViews, removeAllInteractors, removeInteractorListener, removeManagerChangedListener, removeNotify, removeTransformerListener, removeViewDecoration, repaint, repaint, setAntialiasing, setAutoFitToContents, setBackground, setBackgroundPattern, setBackgroundPatternLocation, setBounds, setContributingToViewBBox, setCursor, setDefaultGhostColor, setDefaultXORColor, setDoubleBufferFrozen, setDoubleBuffering, setEventDispatching, setGrid, setInteractor, setKeepingAspectRatio, setLayerCached, setManager, setMaximumSize, setMaxZoomXFactor, setMaxZoomYFactor, setMinimumSize, setMinZoomXFactor, setMinZoomYFactor, setOptimizedTranslation, setPreferredSize, setRedrawMode, setRepaintSkipThreshold, setTransformer, setTransparent, setTripleBufferedLayerCount, setVisible, setWheelZoomingEnabled, setWheelZoomingInverted, setZoomFactorRange, snapToGrid, transformerChanged, translate, update, visibleRect, zoom
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ilog.views.IlvObjectInteractorContext
getCursor, getGraphics, isCursorSet
 

Field Detail

DEFAULT_BACKGROUND_COLOR

public static final Color DEFAULT_BACKGROUND_COLOR
Default background color.

Constructor Detail

IlpManagerView

public IlpManagerView(IlpGraphicView cplView)
Creates a new manager view. This constructor also creates a manager for this view.

Parameters:
cplView - The graphic view to which the manager view shall belong.

IlpManagerView

public IlpManagerView(IlpGraphicView cplView,
                      IlvManager manager)
Creates a new manager view to display the contents of the specified manager.

Parameters:
cplView - The graphic view to which the manager view shall belong.
manager - The manager to which the manager view shall be connected.

IlpManagerView

public IlpManagerView(IlpGraphicView cplView,
                      IlvManager manager,
                      IlvTransformer t,
                      boolean isInteracted)
Creates a new manager view.

Parameters:
cplView - The graphic view to which the manager view shall belong.
manager - The manager to which the manager view shall be connected.
t - The initial value for the transformation used to draw the content of the manager.
isInteracted - Defines if this manager view will be interacted through view's toolbar.
Since:
JTGO 3.1

IlpManagerView

public IlpManagerView(IlpGraphicView cplView,
                      IlvManager manager,
                      IlvTransformer t)
Creates a new manager view.

Parameters:
cplView - The graphic view to which the manager view shall belong.
manager - The manager to which the manager view shall be connected.
t - The initial value for the transformation used to draw the content of the manager.
Method Detail

addPaintListener

public void addPaintListener(ActionListener listener)
Adds a listener that is called when paint(Graphics) is invoked.

Internal method or field: do not use!

removePaintListener

public void removePaintListener(ActionListener listener)
Removes a listener added through addPaintListener.

Internal method or field: do not use!

paint

public void paint(Graphics g)
Paint the manager view.

Overrides:
paint in class IlvManagerView
Parameters:
g - The specified Graphics.

processEvent

protected void processEvent(AWTEvent event)
Process events that occur in this manager view.

Overrides:
processEvent in class IlvManagerView
Parameters:
event - Event
See Also:
IlvManagerViewInteractor

verifyTransformer

public void verifyTransformer()
Description copied from class: IlvManagerView
Checks a transformer before setting it to a view. This method is called every time the transformer of the view is changed by calling setTransformer or addTransformer. It is used to verify that the zoom factor is the same along the x and y axis if the view must maintain the aspect ratio and is within the range of the minimal and maximal zoom factor. You do not need to call this method.

Overrides:
verifyTransformer in class IlvManagerView
See Also:
IlvManagerView.setTransformer(ilog.views.IlvTransformer), IlvManagerView.addTransformer(IlvTransformer), IlvManagerView.setZoomFactorRange(double, double), IlvManagerView.setKeepingAspectRatio(boolean)

zoomBack

public void zoomBack(boolean redraw)
Go back to the previous zoom applied on the manager view.

Parameters:
redraw - If true, the view is redrawn..

getGraphicView

public IlpGraphicView getGraphicView()
Returns the graphic view to which this manager view belongs.


isInteractedByToolBar

public boolean isInteractedByToolBar()
Checks whether this manager view is interacted by the toolbar or not.

Returns:
true if it's interacted by the toolbar. false otherwise.
Internal method or field: do not use!


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