ilog.views.sdm.renderer
Class IlvSubGraphRenderer.ExpandCollapseInteractor

java.lang.Object
  extended by ilog.views.IlvObjectInteractor
      extended by ilog.views.sdm.renderer.IlvSubGraphRenderer.ExpandCollapseInteractor
All Implemented Interfaces:
Serializable
Enclosing class:
IlvSubGraphRenderer

public static class IlvSubGraphRenderer.ExpandCollapseInteractor
extends IlvObjectInteractor

ExpandCollapseInteractor is the object interactor that is set on subgrapher nodes by the IlvSubGraphRenderer. This interactor toggles the expanded/collapsed state of the node.

This class is public only to allow saving in an IVL file the contents of a grapher associated with an SDM engine and containing expandable nodes.

Note that, when read from an IVL file, this interactor is not functional: it works only when it has been created by the expand/collapse renderer.

Since:
JViews 5.0
See Also:
Serialized Form

Constructor Summary
IlvSubGraphRenderer.ExpandCollapseInteractor()
          Creates a new expand/collapse interactor.
 
Method Summary
 boolean processEvent(IlvGraphic obj, AWTEvent event, IlvObjectInteractorContext context)
          Toggles the expanded state of the expandable node on mouse clicks.
 
Methods inherited from class ilog.views.IlvObjectInteractor
Get, handleExpose, onEnter, onExit, Put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvSubGraphRenderer.ExpandCollapseInteractor

public IlvSubGraphRenderer.ExpandCollapseInteractor()
Creates a new expand/collapse interactor.

Method Detail

processEvent

public boolean processEvent(IlvGraphic obj,
                            AWTEvent event,
                            IlvObjectInteractorContext context)
Toggles the expanded state of the expandable node on mouse clicks.

Specified by:
processEvent in class IlvObjectInteractor
Parameters:
obj - The graphic object.
event - The event.
context - The interactor context.
Returns:
true if the event was handled by this processEvent invocation, false otherwise.


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