ilog.cpl.network
Class IlpNetworkController

java.lang.Object
  extended by ilog.cpl.graphic.IlpAbstractGraphicController
      extended by ilog.cpl.graph.IlpGraphController
          extended by ilog.cpl.network.IlpNetworkController
All Implemented Interfaces:
IlpGraphicController, IlpInteractorManager, IlpMutableInteractorManager, FocusListener, KeyListener, MouseListener, MouseMotionListener, EventListener, MouseInputListener

public class IlpNetworkController
extends IlpGraphController

This class manages interactions between the user and an IlpNetworkView.

Since:
JTGO 3.0

Field Summary
 
Fields inherited from class ilog.cpl.graphic.IlpAbstractGraphicController
lastInteractedObject, lastInteractionStates
 
Constructor Summary
IlpNetworkController(IlpContext context)
          Creates a controller.
 
Method Summary
 IlpBackgroundsRenderer getBackgroundsRenderer()
          Accesses the background renderer.
protected  Logger getControllerLogger()
          Access the logger.
protected  IlpGraphHandler getDefaultHandler()
          Retrieves the default handler.
protected  Class getDefaultHandlerClass()
          Retrieves the default handler class.
 IlpGraphLayoutRenderer getGraphLayoutRenderer()
          Accesses the graphic layout renderer.
 IlpNetworkHandler getHandler()
          Returns the handler for everything.
 IlpInteractorRenderer getInteractorRenderer()
          Accesses the interactor renderer.
 IlpLabelLayoutRenderer getLabelLayoutRenderer()
          Accesses the label layout renderer.
 IlpLinkLayoutRenderer getLinkLayoutRenderer()
          Accesses the link layout renderer.
 IlpNetworkObjectHandler getObjectHandler()
          Deprecated. Please use getNodeHandler instead.
 IlpOverviewRenderer getOverviewRenderer()
          Accesses the overview renderer.
 IlpPositioningRenderer getPositioningRenderer()
          Accesses the position renderer.
 IlpToolBarRenderer getToolBarRenderer()
          Accesses the toolbar renderer.
 IlpViewRenderer getViewRenderer()
          Accesses the view renderer.
 IlpZoomingRenderer getZoomingRenderer()
          Accesses the zooming renderer.
 void setEditingHandler(IlpNetworkEditingHandler handler)
          Sets the handler for editing operations.
 void setExpansionHandler(IlpNetworkExpansionHandler expansionHandler)
          Deprecated. Please use ilog.cpl.graph.IlpGraphController.setExpansionHandler instead.
 void setHandler(IlpNetworkHandler handler)
          Sets the handler for everything.
 void setLoadHandler(IlpNetworkLoadHandler loadHandler)
          Deprecated. Please use ilog.cpl.graph.IlpGraphController.setLoadHandler instead.
 void setObjectHandler(IlpNetworkObjectHandler objectHandler)
          Deprecated. Please use setNodeHandler instead.
 void setPositionHandler(IlpNetworkPositionHandler positionHandler)
          Deprecated. Please use ilog.cpl.graph.IlpGraphController.setPositionHandler instead.
 
Methods inherited from class ilog.cpl.graph.IlpGraphController
cleanMutableStyleSheet, cloneObject, collapseObject, createObject, expandObject, getCollapsionBackgroundInteractor, getCollapsionIconInteractor, getCompleteObjectInteractor, getExpansionHandler, getExpansionIconInteractor, getExpansionInteractor, getFocusEventComponent, getGraphHandler, getGraphView, getKeyEventComponent, getLoadHandler, getMouseEventComponent, getNodeHandler, getObjectInteractionState, getPositionHandler, handleChangeRelationship, isUsingCustomHandler, load, moveObject, removeObject, removeObjectInteractors, setCollapsionBackgroundInteractor, setCollapsionIconInteractor, setExpansionHandler, setExpansionIconInteractor, setExpansionInteractor, setGraphHandler, setLoadHandler, setNodeHandler, setPositionHandler, updateObject
 
Methods inherited from class ilog.cpl.graphic.IlpAbstractGraphicController
attach, attachView, createGraphicViewStyleManager, createViewInteractionContext, detach, focusGained, focusLost, getContext, getDefaultInteractorManager, getDefaultViewInteractor, getObjectInteractor, getObjectInteractor, getObjectInteractor, getObjectInteractor, getObjectInteractor, getView, getViewInteractionContext, getViewInteractor, initGraphicViewStyleManager, initInteractorManager, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, removeObjectInteractors, removeObjectInteractors, setDefaultInteractorManager, setDefaultViewInteractor, setObjectInteractor, setObjectInteractor, setObjectInteractor, setObjectInteractor, setObjectInteractor, setViewInteractor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlpNetworkController

public IlpNetworkController(IlpContext context)
Creates a controller. It can be attached to an IlpNetworkView by calling setController on the view.

Method Detail

getControllerLogger

protected Logger getControllerLogger()
Access the logger.

Specified by:
getControllerLogger in class IlpGraphController
Returns:
The appropriate logger to be used internally to log messages.

getDefaultHandlerClass

protected Class getDefaultHandlerClass()
Retrieves the default handler class.

Specified by:
getDefaultHandlerClass in class IlpGraphController
Internal method or field: do not use!

getDefaultHandler

protected IlpGraphHandler getDefaultHandler()
Retrieves the default handler.

Specified by:
getDefaultHandler in class IlpGraphController
Internal method or field: do not use!

getHandler

public IlpNetworkHandler getHandler()
Returns the handler for everything.

This method returns the handler if set through setHandler. The method returns null if individual handlers have been installed for object-related, move/reshape, container, loading or editing operations.

Returns:
The handler for all operations, or null.
See Also:
setHandler(ilog.cpl.network.IlpNetworkHandler), IlpGraphController.getNodeHandler(), IlpGraphController.getPositionHandler(), IlpGraphController.getExpansionHandler(), IlpGraphController.getLoadHandler()

setHandler

public void setHandler(IlpNetworkHandler handler)
Sets the handler for everything.

The default handler for the network component is IlpNetworkHandlerWithoutDataSource. A predefined handler can be used with data source (IlpNetworkHandlerWithDataSource).

See Also:
IlpNetworkHandlerWithoutDataSource, IlpNetworkHandlerWithDataSource

setEditingHandler

public void setEditingHandler(IlpNetworkEditingHandler handler)
Sets the handler for editing operations.


getToolBarRenderer

public IlpToolBarRenderer getToolBarRenderer()
Accesses the toolbar renderer.


getViewRenderer

public IlpViewRenderer getViewRenderer()
Accesses the view renderer.


getOverviewRenderer

public IlpOverviewRenderer getOverviewRenderer()
Accesses the overview renderer.


getInteractorRenderer

public IlpInteractorRenderer getInteractorRenderer()
Accesses the interactor renderer.


getZoomingRenderer

public IlpZoomingRenderer getZoomingRenderer()
Accesses the zooming renderer.


getGraphLayoutRenderer

public IlpGraphLayoutRenderer getGraphLayoutRenderer()
Accesses the graphic layout renderer.


getLinkLayoutRenderer

public IlpLinkLayoutRenderer getLinkLayoutRenderer()
Accesses the link layout renderer.


getLabelLayoutRenderer

public IlpLabelLayoutRenderer getLabelLayoutRenderer()
Accesses the label layout renderer.


getBackgroundsRenderer

public IlpBackgroundsRenderer getBackgroundsRenderer()
Accesses the background renderer.


getPositioningRenderer

public IlpPositioningRenderer getPositioningRenderer()
Accesses the position renderer.


getObjectHandler

public IlpNetworkObjectHandler getObjectHandler()
Deprecated. Please use getNodeHandler instead.

Returns the handler for object-related operations.

Deprecated Since:
JTGO 4.0

setObjectHandler

public void setObjectHandler(IlpNetworkObjectHandler objectHandler)
Deprecated. Please use setNodeHandler instead.

Sets the handler for object-related operations.

Deprecated Since:
JTGO 4.0

setPositionHandler

public void setPositionHandler(IlpNetworkPositionHandler positionHandler)
Deprecated. Please use ilog.cpl.graph.IlpGraphController.setPositionHandler instead.

Sets the handler for move/reshape operations.

Deprecated Since:
JTGO 4.0

setExpansionHandler

public void setExpansionHandler(IlpNetworkExpansionHandler expansionHandler)
Deprecated. Please use ilog.cpl.graph.IlpGraphController.setExpansionHandler instead.

Sets the handler for container operations.

Deprecated Since:
JTGO 4.0

setLoadHandler

public void setLoadHandler(IlpNetworkLoadHandler loadHandler)
Deprecated. Please use ilog.cpl.graph.IlpGraphController.setLoadHandler instead.

Sets the handler for load operations.

Deprecated Since:
JTGO 4.0


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