public class IlpManagerView extends IlvManagerView
IlvManagerView
that adds support for IlpViewsViewInteractor
.Modifier and Type | Class and Description |
---|---|
static class |
IlpManagerView.DeafManagerViewInteractor
A manager view interactor that doesn't react to any event.
|
IlvManagerView.FitAreaCalculator
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static Color |
DEFAULT_BACKGROUND_COLOR
Default background color.
|
BLINKING_AUTOMATIC, BLINKING_DISABLED, BLINKING_ENABLED, DIRECT_REDRAW, KEY_VIEW, THREADED_REDRAW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
IlpManagerView(IlpGraphicView cplView)
Deprecated.
|
IlpManagerView(IlpGraphicView cplView,
IlvManager manager)
Deprecated.
|
IlpManagerView(IlpGraphicView cplView,
IlvManager manager,
IlvTransformer t)
Deprecated.
|
IlpManagerView(IlpGraphicView cplView,
IlvManager manager,
IlvTransformer t,
boolean isInteracted)
Deprecated.
|
IlpManagerView(IlpGraphicView cplView,
IlvManager manager,
IlvTransformer transf,
IlSynchronizationContext syncCtx,
boolean isInteracted)
Creates a new manager view.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected void |
interactorChanged(IlvManagerViewInteractor current,
IlvManagerViewInteractor previous)
Called when the interactor of the view is changed,
that is, each time an interactor is added or removed from the
interactor stack.
|
boolean |
isInteractedByToolBar()
Checks whether this manager view is interacted by the toolbar or not.
|
protected void |
managerChanged(IlvManager oldManager,
IlvManager newManager)
This method is called by
setManager as
notification that the manager displayed by this view has changed. |
void |
paint(Graphics g)
Paint the manager view.
|
protected void |
processEvent(AWTEvent event)
Processes the events in the view.
|
void |
removePaintListener(ActionListener listener)
Removes a listener added through
addPaintListener . |
protected void |
transformerChanged(IlvTransformer newTransformer,
IlvTransformer oldTransformer)
This method is called when the transformer changes.
|
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.
|
acceptCollapseExpandIconsEvent, addInteractorListener, addManagerChangedListener, addNotify, addTransformer, addTransformerListener, addViewDecoration, computeBBox, computeBBox, computeTransformerFitToArea, createDoubleBufferImage, createImage, doubleBufferedImageUpToDate, ensureVisible, ensureVisible, fitTransformerToArea, fitTransformerToArea, fitTransformerToAreaImpl, fitTransformerToContent, fitTransformerToContent, fitTransformerToContent, fitTransformerToContent, fitTransformerToContent, getBackgroundPattern, getBackgroundPatternLocation, getBlinkingMode, getCurrentView, getDefaultGhostColor, getDefaultXORColor, getGrid, getInteractor, getManager, getMaximumSize, getMaxZoomXFactor, getMaxZoomYFactor, getMinimumSize, getMinZoomXFactor, getMinZoomYFactor, getPopupMenu, getPopupMenu, getPreferredSize, getRedrawMode, getRegion, getRepaintSkipThreshold, getStoredULocale, getTransformer, getTripleBufferedLayerCount, getULocale, getViewDecoration, getViewDecorationCount, getViewMargins, imageUpdate, initDisplayInfo, invalidateRect, invalidateTripleBuffer, invalidateTripleBuffer, invalidateView, isAntialiasing, isAtZoomXFactorLimit, isAtZoomYFactorLimit, isAutoFitToContents, isCollapseExpandIconsEnabled, isContributingToViewBBox, isDoubleBufferFrozen, isDoubleBuffering, isEventDispatching, isInSwingParent, isKeepingAspectRatio, isLayerCached, isOpaque, isOptimizedTranslation, isRegisteredAtToolTipManager, isSelectedWhenPopupPreferred, isTransparent, isVisible, isWheelZoomingEnabled, isWheelZoomingInverted, popInteractor, print, processKeyEvent, pushInteractor, pushInteractor, reDrawViews, reDrawViewsForBlinking, removeAllInteractors, removeInteractorListener, removeManagerChangedListener, removeNotify, removeTransformerListener, removeViewDecoration, repaint, repaint, setAntialiasing, setAutoFitToContents, setAutoFitToContents, setBackground, setBackgroundPattern, setBackgroundPatternLocation, setBlinkingMode, setBounds, setCollapseExpandIconsEnabled, setComponentOrientation, setContributingToViewBBox, setCursor, setDefaultGhostColor, setDefaultXORColor, setDoubleBufferFrozen, setDoubleBuffering, setEventDispatching, setGrid, setInteractor, setKeepingAspectRatio, setLayerCached, setLocale, setManager, setMaximumSize, setMaxZoomXFactor, setMaxZoomYFactor, setMinimumSize, setMinZoomXFactor, setMinZoomYFactor, setOptimizedTranslation, setPreferredSize, setRedrawMode, setRegisteredAtToolTipManager, setRepaintSkipThreshold, setSelectedWhenPopupPreferred, setTransformer, setTransparent, setTripleBufferedLayerCount, setULocale, setViewMargins, setVisible, setWheelZoomingEnabled, setWheelZoomingInverted, setZoomFactorRange, snapToGrid, translate, update, visibleRect, zoom
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, isValidateRoot, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBaseline, getBaselineResizeBehavior, 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, 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, revalidate, setBounds, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCursor, getGraphics, isCursorSet
getComponentOrientation
public static final Color DEFAULT_BACKGROUND_COLOR
@Deprecated public IlpManagerView(IlpGraphicView cplView)
IlpManagerView(IlpGraphicView, IlvManager, IlvTransformer, IlSynchronizationContext, boolean)
cplView
- The graphic view to which the manager view shall belong.@Deprecated public IlpManagerView(IlpGraphicView cplView, IlvManager manager)
IlpManagerView(IlpGraphicView, IlvManager, IlvTransformer, IlSynchronizationContext, boolean)
cplView
- The graphic view to which the manager view shall belong.manager
- The manager to which the manager view shall be connected.@Deprecated public IlpManagerView(IlpGraphicView cplView, IlvManager manager, IlvTransformer t)
IlpManagerView(IlpGraphicView, IlvManager, IlvTransformer, IlSynchronizationContext, boolean)
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.@Deprecated public IlpManagerView(IlpGraphicView cplView, IlvManager manager, IlvTransformer t, boolean isInteracted)
IlpManagerView(IlpGraphicView, IlvManager, IlvTransformer, IlSynchronizationContext, boolean)
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.public IlpManagerView(IlpGraphicView cplView, IlvManager manager, IlvTransformer transf, IlSynchronizationContext syncCtx, boolean isInteracted)
cplView
- The graphic view to which the manager view shall belong.manager
- The manager to which the manager view shall be connected.transf
- The initial value for the transformation used to draw the
content of the manager.syncCtx
- The synchronization context used to synchronize access to
rendering routinesisInteracted
- Defines if this manager view will be interacted
through view's toolbar.public void addPaintListener(ActionListener listener)
paint(Graphics)
is
invoked.public void removePaintListener(ActionListener listener)
addPaintListener
.public void paint(Graphics g)
paint
in class IlvManagerView
g
- The specified Graphics.protected void processEvent(AWTEvent event)
IlvManagerView
IlvManagerViewInteractor.processEvent(AWTEvent)
).
If the view does not have an interactor, the event is processed by the
manager (see IlvManager.processEvent(AWTEvent, IlvManagerView)
).processEvent
in class IlvManagerView
event
- The event that will be processed.IlvManagerViewInteractor
public void verifyTransformer()
IlvManagerView
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.public void zoomBack(boolean redraw)
redraw
- If true
, the view is redrawn..protected void transformerChanged(IlvTransformer newTransformer, IlvTransformer oldTransformer)
IlvManagerView
transformerChanged
in class IlvManagerView
newTransformer
- The new transformer.oldTransformer
- The previous transformer.IlvManagerView.addTransformerListener(ilog.views.event.TransformerListener)
,
IlvManagerView.removeTransformerListener(ilog.views.event.TransformerListener)
protected void managerChanged(IlvManager oldManager, IlvManager newManager)
IlvManagerView
setManager
as
notification that the manager displayed by this view has changed.
This method sends a ManagerChangedEvent
to all the
listeners.protected void interactorChanged(IlvManagerViewInteractor current, IlvManagerViewInteractor previous)
IlvManagerView
interactorChanged
in class IlvManagerView
current
- The new interactor (may be null
).previous
- The previous interactor (may be null
).InteractorListener
,
IlvManagerView.addInteractorListener(ilog.views.event.InteractorListener)
,
IlvManagerView.removeInteractorListener(ilog.views.event.InteractorListener)
,
IlvManagerView.popInteractor()
,
IlvManagerView.pushInteractor(ilog.views.IlvManagerViewInteractor)
,
IlvManagerView.setInteractor(ilog.views.IlvManagerViewInteractor)
,
IlvManagerView.getInteractor()
,
IlvManagerView.removeAllInteractors()
public IlpGraphicView getGraphicView()
public boolean isInteractedByToolBar()
true
if it's interacted by the toolbar.
false
otherwise.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.