ilog.cpl.equipment
Class IlpEquipmentController

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

public class IlpEquipmentController
extends IlpGraphController

This class manages interactions between the user and an IlpEquipmentView.

Since:
JTGO 3.0

Field Summary
 
Fields inherited from class ilog.cpl.graphic.IlpAbstractGraphicController
lastInteractedObject, lastInteractionStates
 
Constructor Summary
IlpEquipmentController(IlpContext context)
          Creates a controller.
 
Method Summary
 IlpBackgroundsRenderer getBackgroundsRenderer()
          Accesses the 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.
 IlpEquipmentHandler 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.
 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 setHandler(IlpEquipmentHandler handler)
          Sets the handler for everything.
 
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

IlpEquipmentController

public IlpEquipmentController(IlpContext context)
Creates a controller. It can be attached to an IlpEquipmentView by calling IlpGraphView.setController(IlpGraphicController) on the view.

Parameters:
context - Application context
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 IlpEquipmentHandler 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.equipment.IlpEquipmentHandler), IlpGraphController.getNodeHandler(), IlpGraphController.getPositionHandler(), IlpGraphController.getExpansionHandler(), IlpGraphController.getLoadHandler()

setHandler

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

The default handler for the equipment component is IlpEquipmentHandlerWithoutDataSource; there is a predefined handler to be used with data source (IlpEquipmentHandlerWithDataSource).

See Also:
IlpEquipmentHandlerWithoutDataSource, IlpEquipmentHandlerWithDataSource

getToolBarRenderer

public IlpToolBarRenderer getToolBarRenderer()
Accesses the toolbar renderer.

Since:
JTGO 4.0

getViewRenderer

public IlpViewRenderer getViewRenderer()
Accesses the view renderer.

Since:
JTGO 4.0

getOverviewRenderer

public IlpOverviewRenderer getOverviewRenderer()
Accesses the overview renderer.

Since:
JTGO 4.0

getInteractorRenderer

public IlpInteractorRenderer getInteractorRenderer()
Accesses the interactor renderer.

Since:
JTGO 4.0

getZoomingRenderer

public IlpZoomingRenderer getZoomingRenderer()
Accesses the zooming renderer.

Since:
JTGO 4.0

getGraphLayoutRenderer

public IlpGraphLayoutRenderer getGraphLayoutRenderer()
Accesses the graphic layout renderer.

Since:
JTGO 4.0

getLinkLayoutRenderer

public IlpLinkLayoutRenderer getLinkLayoutRenderer()
Accesses the link layout renderer.

Since:
JTGO 4.0

getLabelLayoutRenderer

public IlpLabelLayoutRenderer getLabelLayoutRenderer()
Accesses the label layout renderer.

Since:
JTGO 4.0

getBackgroundsRenderer

public IlpBackgroundsRenderer getBackgroundsRenderer()
Accesses the the background renderer.

Since:
JTGO 4.0

getPositioningRenderer

public IlpPositioningRenderer getPositioningRenderer()
Accesses the position renderer.

Since:
JTGO 4.0


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