ilog.cpl.equipment
Class IlpEquipmentView

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by ilog.cpl.graph.IlpGraphView
                  extended by ilog.cpl.equipment.IlpEquipmentView
All Implemented Interfaces:
IlpStylable, IlpBackgroundProvider, ilog.cpl.graphic.css.internal.IlpCSSGraphicView, IlpGraphicView, IlpStylableViewsView, IlpViewsView, IlvStylable, ImageObserver, MenuContainer, Serializable

public class IlpEquipmentView
extends IlpGraphView

This class displays the contents of an IlpEquipmentModel in an ILOG JViews grapher.

Note that links that do not have both of their end nodes visible in the same IlpEquipmentModel cannot be displayed.

Since:
JTGO 3.0
See Also:
IlpEquipmentModel, IlpEquipmentController, IlpEquipment, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class ilog.cpl.graph.IlpGraphView
IlpGraphView.VisibleModelConnector
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class ilog.cpl.graph.IlpGraphView
configuration, SCROLLBAR_UNIT_INCREMENT
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface ilog.cpl.css.IlpStylable
UPDATE_ALL_MASK, UPDATE_COMPONENT_MASK, UPDATE_NONE_MASK, UPDATE_OBJECTS_MASK
 
Fields inherited from interface ilog.views.util.styling.IlvStylable
APPLIED_RULE_MASK, BAD_CLASS_MASK, BAD_PROP_MASK, BAD_PROP_WITH_STACK_MASK, CREATED_MASK, DECL_MASK, DECL_VALUE_MASK, FAILED_CONVERSIONS_MASK, TIME_REPORT_MASK, WARNING_PROP_MASK
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
IlpEquipmentView(IlpContext context)
          Creates a view.
 
Method Summary
protected  IlpGraphSelectionModel createGraphSelectionModel()
          This method creates the default selection model.
 Object createToolBarButtonFromAction(Action a)
          Creates a toolbar button to execute the given action
protected  ilog.cpl.graph.css.internal.IlpGraphViewCSSContext createViewCSSContext()
          Creates the CSS context that will provide support for cascading style sheets in this graph view.
protected  ilog.cpl.graph.internal.IlpGraphVisibleModel createVisibleModel()
          Creates a new visible model.
protected  Class getDefaultLinkClass()
          Retrieves the default class that implements IlpEquipmentLink.
protected  Class getDefaultNodeClass()
          Retrieves the default class that implements IlpEquipmentNode.
 Class getGraphicComponentClass()
          Returns the graphic component class supported by this implementation of graphic view.
 IlpPosition getRelativePosition(IlpPoint point, IlpRepresentationObject repObj)
          Deprecated. Please use IlpRelativePositionUtil instead.
 IlpEquipmentSelectionModel getSelectionModel()
          Returns the selection model.
 IlpStyle getStyle()
          Deprecated. The style API has been replaced by the cascading style sheet mechanism.
 IlpStyle getStyle(Class clazz)
          Deprecated. The style API has been replaced by the cascading style sheet mechanism.
 IlpStyle getStyle(IlpClass clazz)
          Deprecated. The style API has been replaced by the cascading style sheet mechanism.
 IlpStyle getStyle(IlpObject object)
          Deprecated. The style API has been replaced by the cascading style sheet mechanism.
 IlpStyle getStyle(IlpRepresentationObject object)
          Deprecated. The style API has been replaced by the cascading style sheet mechanism.
 IlpGraphicViewStyleManager getStyleManager()
          Deprecated. The style API has been replaced by the cascading style sheet mechanism. Please use the method setStyleSheets or getStyleSheets instead.
 String getToolBarButtonClassFromActionType(String actionType)
          Returns the button class name that corresponds to the given action type.
protected  Logger getViewLogger()
          Accesses the proper logger for handling log messages.
protected  void initRenderers()
          Call partial renderer initialization.
 boolean isVisible(IlpLayer layer)
          Deprecated. Use getCompositeGrapher().isVisible((IltcLayer)layer) instead.
 boolean isVisible(IlpLayer layer, IlvManagerView view)
          Deprecated. Use getCompositeGrapher().isVisible((IltcLayer)layer, view) instead.
 void setGraphSelectionModel(IlpGraphSelectionModel selectionModel)
          Sets the selection model.
 void setStyleManager(IlpGraphicViewStyleManager configuration)
          Deprecated. The style API has been replaced by the cascading style sheet mechanism. Please use the method setStyleSheets or getStyleSheets instead.
 void setVisible(IlpLayer layer, boolean visible)
          Deprecated. Use getCompositeGrapher().setVisible((IltcLayer)layer, visible) instead.
 void setVisible(IlpLayer layer, IlvManagerView view, boolean visible)
          Deprecated. Use getCompositeGrapher().setVisible((IltcLayer)layer, view, visible) instead.
 
Methods inherited from class ilog.cpl.graph.IlpGraphView
activateDefaultViewInteractorName, addBackground, addBackgroundURL, addDebugListener, addGraphRendererListener, addNodeExpansionListener, addPendingContainerCollapse, addPseudoClass, addPseudoClass, addSelectionObject, addSelectionRepresentationObject, addVisibleChildren, clearSelection, collapseObject, createGrapher, createManagerView, defaultCollapseObject, defaultExpandObject, defaultIsExpanded, dispose, doUpdateGraphic, enableLinkLayoutRendererConfiguration, endDelayingUpdates, ensureAtCenter, ensureAtCenter, ensureVisible, ensureVisible, ensureVisible, ensureVisible, expandObject, fitToContents, fitToContents, getAttribute, getAutoLayoutIndex, getAutoLayoutIndex, getBackgroundLayer, getBackgroundLayers, getBackgrounds, getBackgroundsRenderer, getBackgroundSupport, getBackgroundURLs, getBaseRectangle, getBoundingBox, getBoundingBoxInManager, getCompositeGrapher, getContainer, getContainerGraphic, getContext, getController, getDefaultGestureAction, getDefaultGraphicRenderer, getDefaultViewInteractorName, getGrapher, getGrapherForCreateGraphic, getGraphic, getGraphic, getGraphicHolder, getGraphicRendererContextFactory, getGraphLayoutRenderer, getGraphLayouts, getGraphLayouts, getGraphLayouts, getGraphLayouts, getGraphLayoutSupport, getGraphSelectionModel, getHorizontalScrollBar, getInnermostGraphic, getInteractibleViews, getInteractorRenderer, getLabelLayout, getLabelLayoutRenderer, getLayoutProxy, getLayoutProxy, getLinkLayout, getLinkLayout, getLinkLayoutRenderer, getManagerView, getModel, getMutableStyleSheet, getNodeLayout, getNodeRenderer, getOverview, getOverviewRenderer, getPosition, getPositionConverter, getPositioningRenderer, getPositionSource, getPseudoClasses, getRepresentationObject, getRepresentationObject, getRepresentationObjectSelectionModel, getScrollView, getSelectedObject, getSelectedObjects, getSelectedRepresentationObject, getSelectedRepresentationObjects, getStyleListener, getStyleSheetDebugMask, getStyleSheets, getStyleSheets, getSubNetwork, getSubNetworkCompositeGrapher, getSynchronizationContext, getToolBar, getToolBarRenderer, getVerticalScrollBar, getViewCSSContext, getViewRenderer, getVisibleModelConnector, getVisibleObjects, getZoomingRenderer, getZoomPolicy, hasStyleSheets, invalidate, invalidateGraphics, isExpanded, isHorizontalScrollBarVisible, isLink, isModelChanging, isObjectSelected, isOverviewVisible, isRepresentationObjectSelected, isToolBarExternal, isToolBarVisible, isVerticalScrollBarVisible, isVisible, isVisible, isVisible, optimizeLayout, performAttachedLayout, performLabelLayout, performLayoutOnce, performLayoutOnce, performLayoutOnce, reload, reloadAllBackgrounds, reloadBackground, reloadBackgrounds, removeAllBackgroundURLs, removeBackground, removeBackgrounds, removeBackgroundURL, removeGraphRendererListener, removeNodeExpansionListener, removePseudoClass, removePseudoClass, removeSelectionObject, removeSelectionRepresentationObject, selectAll, setAutoLayoutIndex, setAutoLayoutIndex, setBackgrounds, setBackgroundsRenderer, setBackgroundSupport, setBackgroundURLs, setController, setDefaultGraphicRenderer, setDefaultViewInteractorName, setGraphicRendererContextFactory, setGraphLayoutRenderer, setGraphLayouts, setGraphLayouts, setGraphLayouts, setGraphLayouts, setGraphLayoutSupport, setHorizontalScrollBarVisible, setInteractorRenderer, setLabelLayout, setLabelLayoutRenderer, setLinkLayout, setLinkLayout, setLinkLayout, setLinkLayoutRenderer, setModel, setNodeLayout, setNodeLayout, setNodeRenderer, setOverviewRenderer, setOverviewVisible, setPosition, setPositionConverter, setPositioningRenderer, setSelectedObject, setSelectedObjects, setSelectedRepresentationObjects, setStyleSheetDebugMask, setStyleSheets, setStyleSheets, setStyleSheets, setStyleSheets, setToolBarExternal, setToolBarRenderer, setToolBarVisible, setUseGraphLayoutPerObjectProperties, setUseLinkLayoutPerObjectProperties, setVerticalScrollBarVisible, setViewRenderer, setViewSelected, setVisible, setVisible, setVisible, setZoomingRenderer, setZoomPolicy, startDelayingUpdates, unwrapGraphic, updateAllGraphics, updateGraphic, wrapGraphic
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ilog.views.util.styling.IlvStylable
addPropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

IlpEquipmentView

public IlpEquipmentView(IlpContext context)
Creates a view.

The underlying grapher is created through a call to createGrapher. The attached IlvManagerView is created through a call to createManagerView.

Method Detail

getViewLogger

protected Logger getViewLogger()
Accesses the proper logger for handling log messages.

Specified by:
getViewLogger in class IlpGraphView

getGraphicComponentClass

public Class getGraphicComponentClass()
Returns the graphic component class supported by this implementation of graphic view.

Specified by:
getGraphicComponentClass in interface IlpGraphicView
Specified by:
getGraphicComponentClass in class IlpGraphView

getDefaultNodeClass

protected Class getDefaultNodeClass()
Retrieves the default class that implements IlpEquipmentNode.

Specified by:
getDefaultNodeClass in class IlpGraphView
Returns:
The Class that implements IlpEquipmentNode.

getDefaultLinkClass

protected Class getDefaultLinkClass()
Retrieves the default class that implements IlpEquipmentLink.

Specified by:
getDefaultLinkClass in class IlpGraphView
Returns:
The Class that implements IlpEquipmentLink.

createViewCSSContext

protected ilog.cpl.graph.css.internal.IlpGraphViewCSSContext createViewCSSContext()
Creates the CSS context that will provide support for cascading style sheets in this graph view.

Specified by:
createViewCSSContext in class IlpGraphView
Internal method or field: do not use!

createVisibleModel

protected ilog.cpl.graph.internal.IlpGraphVisibleModel createVisibleModel()
Creates a new visible model. This method should be implemented by subclasses.

Specified by:
createVisibleModel in class IlpGraphView
Returns:
A new visible model, if staticModel is not null; null otherwise.
Internal method or field: do not use!

getToolBarButtonClassFromActionType

public String getToolBarButtonClassFromActionType(String actionType)
Returns the button class name that corresponds to the given action type. This is used when configuring buttons for the component toolbar.

Overrides:
getToolBarButtonClassFromActionType in class IlpGraphView
Internal method or field: do not use!

createToolBarButtonFromAction

public Object createToolBarButtonFromAction(Action a)
Creates a toolbar button to execute the given action

Overrides:
createToolBarButtonFromAction in class IlpGraphView
Parameters:
a - Action
Internal method or field: do not use!

getSelectionModel

public IlpEquipmentSelectionModel getSelectionModel()
Returns the selection model.

See Also:
IlpEquipment.setSelectionModel(ilog.cpl.equipment.IlpEquipmentSelectionModel), IlpEquipment.getSelectionModel()

createGraphSelectionModel

protected IlpGraphSelectionModel createGraphSelectionModel()
This method creates the default selection model. It should be called once by the constructor.

This method creates a IlpDefaultEquipmentSelectionModel.

Specified by:
createGraphSelectionModel in class IlpGraphView

setGraphSelectionModel

public void setGraphSelectionModel(