ilog.server.jsds.adapter
Class IlsGraphDS2IlvGrapherAcceleratorStrategy

java.lang.Object
  |
  +--ilog.server.jsds.adapter.IlsGraphDS2IlvGrapherStrategy
        |
        +--ilog.server.jsds.adapter.IlsGraphDS2IlvGrapherAcceleratorStrategy
All Implemented Interfaces:
EventListener

public class IlsGraphDS2IlvGrapherAcceleratorStrategy
extends IlsGraphDS2IlvGrapherStrategy

This graph strategy adds key accelerators to the grapher.

See Also:
IlsGraphDS2IlvGrapherAdapter, IlsGraphDS2IlvGrapherStrategy, IlvManager.addAccelerator(IlvAccelerator)

Fields inherited from class ilog.server.jsds.adapter.IlsGraphDS2IlvGrapherStrategy
_adapter
 
Constructor Summary
IlsGraphDS2IlvGrapherAcceleratorStrategy(IlsGraphDS2IlvGrapherAdapter adapter)
          Defines a new strategy for adding key accelerator to the grapher.
 
Method Summary
protected  void addAccelerators(ilog.views.IlvGrapher grapher)
          Add the following accelerators to the IlvGrapher:
IlvIdentityAccelerator on VK_I key event.
IlvZoomOutAccelerator on VK_U key event.
IlvZoomInAccelerator on VK_Z key event.
IlvFitToSizeAccelerator on VK_F key event.
IlvRotateAccelerator on VK_R key event.
IlvScrollUpAccelerator on VK_UP key event.
IlvScrollDownAccelerator on VK_DOWN key event.
IlvScrollRightAccelerator on VK_RIGHT key event.
IlvScrollLeftAccelerator on VK_LEFT key event.
 ilog.views.IlvGrapher setModel(ilog.views.IlvGrapher grapher)
          Add key accelerators to the grapher.
 
Methods inherited from class ilog.server.jsds.adapter.IlsGraphDS2IlvGrapherStrategy
internalDataSourceChange, internalDataSourceConnected, internalDataSourceDisconnected, internalLinkAdded, internalLinkRemoved, internalLinkUpdated, internalNodeAdded, internalNodeRemoved, internalNodeUpdated, plugComponent, postDispatchBatchedEvents, preDispatchBatchedEvents, unplugComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlsGraphDS2IlvGrapherAcceleratorStrategy

public IlsGraphDS2IlvGrapherAcceleratorStrategy(IlsGraphDS2IlvGrapherAdapter adapter)
Defines a new strategy for adding key accelerator to the grapher.
Parameters:
adapter - the adapter managing this strategy.
Method Detail

setModel

public ilog.views.IlvGrapher setModel(ilog.views.IlvGrapher grapher)
Add key accelerators to the grapher.
Overrides:
setModel in class IlsGraphDS2IlvGrapherStrategy
Parameters:
grapher - the grapher.
Returns:
grapher with accelerators added.
See Also:
IlsGraphDS2IlvGrapherAdapter.setGrapher(IlvGrapher), addAccelerators(IlvGrapher)

addAccelerators

protected void addAccelerators(ilog.views.IlvGrapher grapher)
Add the following accelerators to the IlvGrapher:
Parameters:
grapher - grapher to which accelerators are added.