public class IlpNetworkView extends IlpGraphView
IlpNetworkModel
in a Rogue Wave JViews grapher.
Note that links whose end nodes are not both visible in the
same IlpNetworkModel
cannot be displayed.
IlpNetworkModel
,
IlpNetworkController
,
IlpNetwork
,
Serialized FormIlpGraphView.VisibleModelConnector
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected NetworkSelectionListener |
selectionModelListener |
configuration, SCROLLBAR_UNIT_INCREMENT
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
UPDATE_ALL_MASK, UPDATE_COMPONENT_MASK, UPDATE_NONE_MASK, UPDATE_OBJECTS_MASK
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
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
IlpNetworkView(IlpContext context)
Creates a view.
|
Modifier and Type | Method and Description |
---|---|
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()
Create a new visible model.
|
protected Class |
getDefaultLinkClass()
Retrieves the default class that implements
IlpNetworkLink . |
protected Class |
getDefaultNodeClass()
Retrieves the default class that implements
IlpNetworkNode . |
Class |
getGraphicComponentClass()
Returns the graphic component class supported by this implementation of
graphic view.
|
IlpNetworkRenderer |
getNetworkRenderer()
Deprecated.
Use
ilog.cpl.graph.IlpGraphView.getNodeRenderer
instead. |
IlpNetworkSelectionModel |
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. Use the method
setStyleSheets
or getStyleSheets instead. |
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
|
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 |
setNetworkRenderer(IlpNetworkRenderer renderer)
Deprecated.
Use
ilog.cpl.graph.IlpGraphView.setNodeRenderer
instead. |
void |
setStyleManager(IlpGraphicViewStyleManager configuration)
Deprecated.
The Style API has been replaced by the Cascading Style Sheet
mechanism. 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. |
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, 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, setVerticalScrollBarVisible, setViewRenderer, setViewSelected, setVisible, setVisible, setVisible, setZoomingRenderer, setZoomPolicy, startDelayingUpdates, unwrapGraphic, updateAllGraphics, updateGraphic, wrapGraphic
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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
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, transferFocusDownCycle, validate, validateTree
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, getAccessibleContext, 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, 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, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, removePropertyChangeListener
protected NetworkSelectionListener selectionModelListener
public IlpNetworkView(IlpContext context)
The underlying grapher is created through a call to
createGrapher
, and the attached IlvManagerView
is created through a call to createManagerView
.
protected Logger getViewLogger()
getViewLogger
in class IlpGraphView
public Class getGraphicComponentClass()
getGraphicComponentClass
in interface IlpGraphicView
getGraphicComponentClass
in class IlpGraphView
protected Class getDefaultNodeClass()
IlpNetworkNode
.getDefaultNodeClass
in class IlpGraphView
Class
that implements IlpNetworkNode
.protected Class getDefaultLinkClass()
IlpNetworkLink
.getDefaultLinkClass
in class IlpGraphView
Class
that implements
IlpNetworkLink
.protected ilog.cpl.graph.css.internal.IlpGraphViewCSSContext createViewCSSContext()
createViewCSSContext
in class IlpGraphView
protected ilog.cpl.graph.internal.IlpGraphVisibleModel createVisibleModel()
createVisibleModel
in class IlpGraphView
staticModel
is not
null
; null
otherwise.public String getToolBarButtonClassFromActionType(String actionType)
getToolBarButtonClassFromActionType
in class IlpGraphView
public Object createToolBarButtonFromAction(Action a)
IlpGraphView
createToolBarButtonFromAction
in class IlpGraphView
a
- Actionpublic IlpNetworkSelectionModel getSelectionModel()
protected IlpGraphSelectionModel createGraphSelectionModel()
createGraphSelectionModel
in class IlpGraphView
public void setGraphSelectionModel(IlpGraphSelectionModel selectionModel)
Note: It is the caller's responsibility to install an
IlpRepresentationMapper
on the model.
setGraphSelectionModel
in class IlpGraphView
IlpNetwork.setSelectionModel(ilog.cpl.network.IlpNetworkSelectionModel)
,
IlpNetwork.getSelectionModel()
protected void initRenderers()
initRenderers
in class IlpGraphView
@Deprecated public void setNetworkRenderer(IlpNetworkRenderer renderer)
ilog.cpl.graph.IlpGraphView.setNodeRenderer
instead.The meta renderer usually delegates rendering to the renderer defined
by the graphicRenderer
CSS property. This method can be used
in order to implement additional graphic features on all objects in the
view.
IlpDefaultNodeRenderer
,
IlpGraphView.setDefaultGraphicRenderer(ilog.cpl.graphic.IlpGraphicRenderer)
@Deprecated public boolean isVisible(IlpLayer layer)
getCompositeGrapher().isVisible((IltcLayer)layer)
instead.layer
- A JTGO layer.@Deprecated public void setVisible(IlpLayer layer, boolean visible)
getCompositeGrapher().setVisible((IltcLayer)layer, visible)
instead.layer
- A JTGO layer.visible
- The new layer visibility.@Deprecated public boolean isVisible(IlpLayer layer, IlvManagerView view)
getCompositeGrapher().isVisible((IltcLayer)layer, view)
instead.layer
- A JTGO layer.view
- A JViews view, either getManagerView
or getOverview().getOverviewView()
.@Deprecated public void setVisible(IlpLayer layer, IlvManagerView view, boolean visible)
getCompositeGrapher().setVisible((IltcLayer)layer, view, visible)
instead.layer
- A JTGO layer.view
- A JViews view, either getManagerView
or getOverview().getOverviewView()
visible
- The new layer visibility.@Deprecated public IlpGraphicViewStyleManager getStyleManager()
setStyleSheets
or getStyleSheets
instead.getStyleManager
in interface IlpGraphicView
getStyleManager
in class IlpGraphView
@Deprecated public void setStyleManager(IlpGraphicViewStyleManager configuration)
setStyleSheets
or getStyleSheets
instead.setStyleManager
in interface IlpGraphicView
setStyleManager
in class IlpGraphView
@Deprecated public IlpStyle getStyle()
Equivalent to getStyleManager().getStyle()
.
getStyle
in class IlpGraphView
@Deprecated public IlpStyle getStyle(IlpRepresentationObject object)
Equivalent to getStyleManager().getStyle(object)
.
getStyle
in class IlpGraphView
@Deprecated public IlpStyle getStyle(IlpObject object)
Equivalent to getStyleManager().getStyle(object)
.
getStyle
in class IlpGraphView
@Deprecated public IlpStyle getStyle(IlpClass clazz)
Equivalent to getStyleManager().getStyle(clazz)
.
getStyle
in class IlpGraphView
@Deprecated public IlpStyle getStyle(Class clazz)
Equivalent to getStyleManager().getStyle(clazz)
.
getStyle
in class IlpGraphView
@Deprecated public IlpNetworkRenderer getNetworkRenderer()
ilog.cpl.graph.IlpGraphView.getNodeRenderer
instead.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.