public class IltNetwork extends IlvGrapher
IlvGrapher
instantiates its own
IltCompositeGrapher
, and
optionally it instantiates a sample network.Modifier and Type | Field and Description |
---|---|
protected IltObjectSource |
_sampleNetwork
Deprecated.
|
HH_BLUR, HH_BRIGHTEN, HH_CUSTOM, HH_GRAYSCALE, HH_INVERT_COLORS, HH_NONE, HH_SHARPEN
Constructor and Description |
---|
IltNetwork()
Deprecated.
Please use the Network Component instead.
|
IltNetwork(boolean createSampleNetwork)
Deprecated.
Please use the Network Component instead.
|
IltNetwork(IlpContext context)
Instantiates an
IltCompositeGrapher and
attaches it to this IltNetwork . |
IltNetwork(IlpContext context,
boolean createSampleNetwork)
Deprecated.
Please use the Network Component instead.
|
Modifier and Type | Method and Description |
---|---|
void |
addManagerContentChangedListener(ManagerContentChangedListener listener)
Catch a frequent mistake of many customers: they add a graph layout
directly to the IlvGrapher, or create a new IltGrapherAdapter().
|
void |
addNetwork(IltNetwork aSubNetwork)
Adds a subnetwork to the network.
|
void |
addNetwork(IltNetwork aSubNetwork,
boolean visible) |
void |
addPropertyChangeListener(PropertyChangeListener listener) |
static void |
ApplyScaleToSubNetwork(IlvManager grapher,
IlvManager subgrapher,
double factor)
Applies a scale factor to an expanded subnetwork.
|
IlvRect |
computeExpansionBBox()
This method is used by
IltExpandCollapseInteractor (method
SetCollapsed ) instead of the corresponding
computeBBox(IlvTransformer) in IlvManager . |
protected IltCompositeGrapher |
createCompositeGrapher(IlpContext context)
Creates the
IltCompositeGrapher used by this
instance. |
IltCompositeGrapher |
getCompositeGrapher()
Returns the
IltCompositeGrapher attached to this IltNetwork . |
URL |
getFileName()
Returns the IVL file read in the background of the
IltNetwork . |
IlvGraphLayout |
getLinkLayout()
Deprecated.
Use
IlpGraphView.getLinkLayout() instead. |
IlvGraphLayout |
getNodeLayout()
Deprecated.
Use
IlpGraphView.getNodeLayout() instead. |
IltCompositeGraphic |
getOverviewCompositeGraphic()
Returns the graphic representation of the overview object (in the parent IlvManager).
|
ilog.tgo.model.internal.IltSubNetwork |
getSubNetwork()
Returns the associated IltSubNetwork, used for interactors.
|
IltCompositeGraphic |
getSubNetworkCompositeGraphic()
Returns the associated IltSubNetwork's graphic representation, used for interactors.
|
IltZoomPolicy |
getZoomPolicy()
Returns the zoom policy of this manager.
|
boolean |
isBackgroundSelectable()
Returns the values set using
setBackgroundSelectable . |
boolean |
isCreateSampleNetwork()
Deprecated.
Please use the Network Component instead.
|
IlvSelection |
makeSelection()
Creates a selection object for this object.
|
static void |
MoveSubNetwork(IlvManager grapher,
IlvManager subgrapher,
double centerX,
double centerY)
Moves an expanded subnetwork to a given point in manager coordinates.
|
void |
removeNetwork(IltNetwork aSubNetwork)
Removes a subnetwork from the network.
|
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
setBackgroundSelectable(boolean selectable)
Specifies whether the background loaded using
setFileName should
be selectable or not. |
void |
setContentsAdjusting(boolean set)
Tells the manager that it is the beginning or the end of a major
modification of its contents.
|
protected void |
setContentsAdjustingInHierarchy(boolean set) |
void |
setCreateSampleNetwork(boolean create)
Deprecated.
Please use the Network Component instead.
|
void |
setFileName(URL backgroundURL)
Loads an IVL file in the
IltNetwork and places it in the background. |
void |
setLinkLayout(IlvGraphLayout layout)
Deprecated.
Use
IlpGraphView.setLinkLayout(IlvGraphLayout) instead. |
void |
setNodeLayout(IlvGraphLayout layout)
Deprecated.
Use
IlpGraphView.setGraphLayouts(IlvGraphLayout[]) instead. |
void |
setOverviewCompositeGraphic(IltCompositeGraphic overviewCompositeGraphic)
Sets the graphic representation of the overview object.
|
void |
setZoomPolicy(IltZoomPolicy zoomPolicy)
Changes the zoom policy of this manager.
|
void |
updateNetworkLayer(IltNetwork aSubNetwork)
Updates the subnetwork layer's according to the layer policy.
|
addInterGraphLink, addLink, addLink, addNode, addNode, addObject, afterTransformDependentObjs, afterTransformObj, beforeTransformDependentObjs, beforeTransformObj, copy, getBoundingBoxDependentObjects, getExternalInterGraphLinks, getExternalInterGraphLinksCount, getFromNeighbors, getInterGraphLinks, getInterGraphLinksCount, getLinks, getLinksCount, getLinksFrom, getLinksFromCount, getLinksInsertionLayer, getLinksTo, getLinksToCount, getLinksVisibleFrom, getLinksVisibleFromCount, getLinksVisibleTo, getLinksVisibleToCount, getLowestCommonGrapher, getNeighbors, getSelectedMovingObjects, getToNeighbors, getTreeExternalInterGraphLinks, getTreeExternalInterGraphLinksCount, isCrossingAwareLinksFrozen, isInterGraphLink, isLink, isLinkBetween, isMarked, isNode, isNodeOrLink, makeNode, makeObjectProperty, nodeHasSons, readPrefix, readSuffix, removeLink, removeNode, removeObject, replaceObject, setCrossingAwareLinksFrozen, setLayer, setLinksInsertionLayer, setMarked, setVisibleBranch, setVisibleBranch, setVisibleBranch, unmakeNode, write, writePrefix, writeSuffix
abortReDraws, addAccelerator, addGraphicBagHierarchyListener, addLayer, addLayer, addManagerExpansionListener, addManagerLayerListener, addManagerSelectionListener, addManagerTreeContentChangedListener, addManagerTreeSelectionListener, addManagerViewsHierarchyListener, addManagerViewsListener, addObject, afterInvalidateRegion, afterTransform, allowMoving, applyToObject, applyToObjects, applyToObjects, applyToObjects, applyToObjects, applyTransform, baseTextDirectionChanged, beforeInvalidateRegion, beforeTransform, blinkingReDraw, boundingBox, check, componentOrientationChanged, computeBBox, computeBBox, contains, containsFrame, contentsChanged, copySelection, createInputStream, createManagerLayer, createOutputStream, deleteAll, deleteAll, deleteSelections, deleteSelections, deSelectAll, deSelectAll, deSelectAll, dispatchToObjects, draw, draw, duplicateSelections, duplicateSelections, enableGraphicBagHierarchyEventForwarding, enableManagerViewsHierarchyEventForwarding, fireGraphicBagHierarchyEvent, fireManagerViewsHierarchyEvent, getAccelerators, getAllObjects, getAllObjects, getAllSelectableObjects, getCardinal, getCardinal, getCardinal, getCollapsedGraphic, getCollapseExpandObject, getComponentOrientation, getDrawingTransformer, getFrame, getHoverHighlightingImageOperation, getHoverHighlightingMode, getInsertionLayer, getIntersectionWithOutline, getLayer, getLayer, getLayerName, getLayersCount, getManagerLayer, getManagerLayer, getManagerLayer, getManagers, getManagers, getManagersCount, getManagersCount, getObject, getObject, getObject, getObject, getObjectInteractor, getObjectName, getObjectProperty, getObjects, getObjects, getObjects, getOptimizedLayerThreshold, getParent, getProperty, getSelectableObject, getSelectedObjects, getSelectedObjects, getSelectedObjects, getSelectedObjectsCount, getSelectedObjectsCount, getSelectedObjectsCount, getSelection, getSelection, getSelection, getSelectionFactory, getSelections, getSizeLimitToDrawSubmanagerContents, getStoredComponentOrientation, getStoredULocale, getStreamFactory, getTopLevelTransformer, getTransformer, getTreeLock, getULocale, getUserData, getViews, handleAccelerators, hasProperty, init, initReDraws, invalidateRegion, invalidateRegion, invalidateRegion, isAutoLabelForCollapsedGraphic, isBaseTextDirectionSensitive, isCollapsed, isCollapsible, isComponentOrientationSensitive, isContentsAdjusting, isDebugBoundingBoxes, isEditable, isInsertionAdjusting, isInvalidating, isKeepingAspectRatio, isLocaleSensitive, isManaged, isMovable, isSelectable, isSelectable, isSelected, isSelectionAdjusting, isSelectionInvariantSubManagerBounds, isVisible, isVisible, isVisible, isVisible, localeChanged, lostOwnership, map, map, mapInside, mapInside, mapIntersects, mapIntersects, moveObject, moveResize, needsDrawSubmanagerContents, needsGraphicBagHierarchyEvent, needsManagerViewsHierarchyEvent, objectIsSelectable, objectRemoved, pasteSelection, print, processEvent, processEvent, processHoverHighlightingEvent, processHoverHighlightingEvent, read, read, read, reDraw, reDrawObj, reDrawRegion, reDrawViews, removeAccelerator, removeGraphicBagHierarchyListener, removeLayer, removeManagerContentChangedListener, removeManagerExpansionListener, removeManagerLayerListener, removeManagerSelectionListener, removeManagerTreeContentChangedListener, removeManagerTreeSelectionListener, removeManagerViewsHierarchyListener, removeManagerViewsListener, removeProperty, replaceProperty, reshapeObject, selectAll, selectAll, selectAll, selectionChanged, setAccelerators, setAutoLabelForCollapsedGraphic, setBaseTextDirection, setCollapsed, setCollapsedGraphic, setComponentOrientation, setComponentOrientation, setContentsAdjusting, setDebugBoundingBoxes, setDebugBoundingBoxesGlobal, setEditable, setFrame, setGraphicBag, setHoverHighlightingImageOperation, setHoverHighlightingMode, setInsertionAdjusting, setInsertionLayer, setKeepingAspectRatio, setLayerName, setMovable, setNameImpl, setNumberOfLayer, setObjectInteractor, setObjectName, setOptimizedLayerThreshold, setProperty, setSelectable, setSelectable, setSelected, setSelected, setSelectionAdjusting, setSelectionEventSource, setSelectionFactory, setSelectionInvariantSubManagerBounds, setSizeLimitToDrawSubmanagerContents, setStreamFactory, setTransformer, setULocale, setULocale, setUserData, setVisible, setVisible, setVisible, shortCut, swapLayers, translateObjects, translateSelections, viewAdded, viewRemoved, write, write, write, write, writeIt, zoomable
calcResolvedBaseTextDirection, getBaseTextDirection, getResolvedBaseTextDirection, invalidateBidiCache, setBaseTextDirection, setBaseTextDirectionDuringConstruction
addActionListener, addNamedPropertyListener, allViewsRemoved, blinkingStateOn, boundingBox, callDraw, getAndAssociateObjectInteractor, getBlinkingAction, getBlinkingObjectOwner, getBlinkingOffPeriod, getBlinkingOnPeriod, getCenter, getDefaultInteractor, getGraphicBag, GetGraphicObject, getLocale, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenu, getPopupMenuName, getToolTipBaseTextDirection, getToolTipText, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, getZOrderIndex, inside, intersects, invalidateBBoxCache, isDataFlavorSupported, isEditable, isInApplyToObject, isMovable, isPersistent, isSelectable, isVisible, move, move, needsViewNotification, notifyObjectInteractorToManager, processActionEvent, registerBlinkingResource, removeActionListener, removeNamedProperty, removeNamedPropertyListener, resize, rotate, scale, setBackground, setBlinkingAction, setBlinkingOffPeriod, setBlinkingOnPeriod, setEditable, setFillOn, setForeground, setInApplyToObject, setMovable, setName, setNamedProperty, setObjectInteractor, setPopupMenu, setPopupMenuName, setSelectable, setStrokeOn, setToolTipBaseTextDirection, setToolTipText, setVisible, setZOrderIndex, toString, translate, updateNeedsViewNotification, usesBidiMarkers, viewAddedOrRemoved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGraphicBag
@Deprecated protected IltObjectSource _sampleNetwork
@Deprecated public IltNetwork()
IltCompositeGrapher
and attaches it to this IltNetwork
.
A sample network is created and displayed. The result is identical to
instantiating the IltNetwork
with new IltNetwork(true)
.IlpNetwork
@Deprecated public IltNetwork(boolean createSampleNetwork)
IltCompositeGrapher
and attaches it to this IltNetwork
.
Note: This constructor calls IltSystem.Init()
.
createSampleNetwork
- Indicates whether a sample network should be
created or not. This feature is mainly provided for the JavaBeans
version of the IltNetwork
.IlpNetwork
@Deprecated public IltNetwork(IlpContext context, boolean createSampleNetwork)
IltCompositeGrapher
and attaches it to this IltNetwork
.
Note: This constructor calls IltSystem.Init()
.
createSampleNetwork
- Indicates whether a sample network should be
created or not. This feature is mainly provided for the JavaBeans
version of the IltNetwork
.public IltNetwork(IlpContext context)
IltCompositeGrapher
and
attaches it to this IltNetwork
.context
- The JViews TGO context to be applied.IlpGraphView.createGrapher(IlpContext)
protected IltCompositeGrapher createCompositeGrapher(IlpContext context)
IltCompositeGrapher
used by this
instance.context
- Application contextpublic IltCompositeGrapher getCompositeGrapher()
IltCompositeGrapher
attached to this IltNetwork
.public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public void setFileName(URL backgroundURL) throws IOException, IlvReadFileException
IltNetwork
and places it in the background.
This method does not remove any object from
the manager before reading the specified
IVL file. Note that before loading the contents of
the file, all the layers used by any previously read file
will be removed from the manager; other layers, such as those
containing JTGO objects will not be removed.
If the backgroundURL
argument is null, the previously
read background will be removed.
setFileName
in class IlvManager
backgroundURL
- The URL of an IVL file, or null
.IOException
IlvReadFileException
getFileName()
public URL getFileName()
IltNetwork
.
This method returns the URL of the IVL file read by
the method setFileName
, or it returns null
if no IVL file was read by this same method.getFileName
in class IlvManager
setFileName(java.net.URL)
public void setBackgroundSelectable(boolean selectable)
setFileName
should
be selectable or not.
The default value is false
.
This implementation makes selectable or not selectable all the layers created when loading a background. The layers containing JTGO objects are not modified.
setFileName(java.net.URL)
public boolean isBackgroundSelectable()
setBackgroundSelectable
.
The default value is false
.
setBackgroundSelectable(boolean)
@Deprecated public IlvGraphLayout getNodeLayout()
IlpGraphView.getNodeLayout()
instead.This method is equivalent to
getCompositeGrapher().getNodeLayout();
.
null
if none has been specified.@Deprecated public IlvGraphLayout getLinkLayout()
IlpGraphView.getLinkLayout()
instead.This method is equivalent to
getCompositeGrapher().getLinkLayout();
.
null
if none has been specified.@Deprecated public void setNodeLayout(IlvGraphLayout layout)
IlpGraphView.setGraphLayouts(IlvGraphLayout[])
instead.This method is equivalent to
getCompositeGrapher().setNodeLayout();
.
layout
- A graph layout or null
.@Deprecated public void setLinkLayout(IlvGraphLayout layout)
IlpGraphView.setLinkLayout(IlvGraphLayout)
instead.This method is equivalent to
getCompositeGrapher().setLinkLayout();
.
layout
- A graph layout or null
.public IltZoomPolicy getZoomPolicy()
public void setZoomPolicy(IltZoomPolicy zoomPolicy)
This method is equivalent to
zoomPolicy.setManager(getCompositeGrapher())
.
zoomPolicy
- A zoom policy.public ilog.tgo.model.internal.IltSubNetwork getSubNetwork()
public IltCompositeGraphic getSubNetworkCompositeGraphic()
public IltCompositeGraphic getOverviewCompositeGraphic()
public void setOverviewCompositeGraphic(IltCompositeGraphic overviewCompositeGraphic)
public void addNetwork(IltNetwork aSubNetwork)
aSubNetwork
- A subnetworkpublic void addNetwork(IltNetwork aSubNetwork, boolean visible)
aSubNetwork
- Subnetworkvisible
- Visibility statuspublic void removeNetwork(IltNetwork aSubNetwork)
public void updateNetworkLayer(IltNetwork aSubNetwork)
public IlvRect computeExpansionBBox()
IltExpandCollapseInteractor
(method
SetCollapsed
) instead of the corresponding
computeBBox(IlvTransformer)
in IlvManager
.
The difference between both methods is that IlvManager
will
compute the bbox of every visible graphic on every visible layer and this
method will only take into account the proxies for business objects
(instances of IltcCompositeLayoutProxy
-
IltcCompositeLinkLayoutProxy
is *not* taken into account).
This is needed when collapsing and expanding the subnetwork, only the position of children nodes must be taken into account, otherwise the collapsed representation would be moved when alarm balloons, opened system windows and other borders are present on a children object. This is also true for the links, the shape of the link should not be taken into account.
public void setContentsAdjusting(boolean set)
IlvManager
The method must be used in the following way:
manager.setContentsAdjusting(true); try { add or remove a lot of objects. } finally { manager.setContentsAdjusting(false); }
When setContentsAdjusting
is called with true
,
the
ManagerContentChangedEvent
events sent by methods such as
addObject
,
removeObject
, or applyToObject
will contain a flag indicating that the
contents of the manager are currently being adjusted. To test this
flag use the isAdjusting
method.
When called with false
, to notify the end of a major
modification of the contents, this method fires a
ManagerContentChangedEvent
of type
ADJUSTMENT_END
. Note
that this event is fired only if a change occurred in the manager
(an object was added, for example).
Calls to setContentsAdjusting
can be nested, as in the
following code:
manager.setContentsAdjusting(true); manager.setContentsAdjusting(true); // add or remove a lot of objects manager.setContentsAdjusting(false); manager.setContentsAdjusting(false);The method
isContentsAdjusting
still
returns true
between the two calls to
setContentsAdjusting(false)
. Only the last call
ends the adjustment section and sends the event to notify the end
of adjustment.setContentsAdjusting
in class IlvManager
IlvManager.isContentsAdjusting()
,
IlvManager.setContentsAdjusting(boolean, boolean)
protected void setContentsAdjustingInHierarchy(boolean set)
public IlvSelection makeSelection()
IlvGraphic
IlvDrawSelection
.
Override this method in your custom graphic object to use a different selection object.
You should normally not call this method directly.makeSelection
in class IlvGraphic
IlvDrawSelection
public void addManagerContentChangedListener(ManagerContentChangedListener listener)
addManagerContentChangedListener
in class IlvManager
listener
- The listener.IlvManager.removeManagerContentChangedListener(ilog.views.event.ManagerContentChangedListener)
,
IlvManager.addManagerTreeContentChangedListener(ilog.views.event.ManagerContentChangedListener)
,
IlvManager.removeManagerTreeContentChangedListener(ilog.views.event.ManagerContentChangedListener)
,
ManagerContentMonitor
@Deprecated public void setCreateSampleNetwork(boolean create)
IlpNetwork
@Deprecated public boolean isCreateSampleNetwork()
true
if a sample network has been created or false
if not.IlpNetwork
public static void MoveSubNetwork(IlvManager grapher, IlvManager subgrapher, double centerX, double centerY)
Moves an expanded subnetwork to a given point in manager coordinates.
grapher
- The subnetwork parent graphersubgrapher
- The subnetwork graphercenterX
- The new center point (X coordinate)centerY
- The new center point (Y coordinate)public static void ApplyScaleToSubNetwork(IlvManager grapher, IlvManager subgrapher, double factor)
Applies a scale factor to an expanded subnetwork.
grapher
- The subnetwork parent graphersubgrapher
- The subnetwork grapherfactor
- The scale factor to be applied© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.