Release Notes |
This document describes the main changes that have been made to JViews Diagrammer since version 8.0.
Incompatibilities
General Changes
Library Changes
New Package
Example Changes
ilog.views.dashboard.IlvDashboardAction
ilog.views.dashboard.IlvDashboardDiagram
ilog.views.dashboard.IlvDashboardSymbol
ilog.views.diagrammer.IlvDiagrammer
ilog.views.diagrammer.application.IlvDiagrammerApplication
ilog.views.diagrammer.faces.dhtml.component.IlvFacesDHTMLDashboardView
ilog.views.diagrammer.faces.dhtml.component.IlvFacesDHTMLDiagrammerView
ilog.views.diagrammer.project.IlvDiagrammerProject
ilog.views.diagrammer.servlet.IlvDiagrammerSelectionSupport
ilog.views.graphlayout.GraphLayoutEvent
ilog.views.graphlayout.GraphLayoutParameterEvent
ilog.views.graphlayout.IlvGraphLayout
ilog.views.graphlayout.hierarchical.IlvHierarchicalLayout
ilog.views.graphlayout.hierarchical.IlvLevelRangeConstraint
ilog.views.graphlayout.labellayout.annealing.IlvAnnealingLabelLayout
ilog.views.graphlayout.link.IlvLinkLayout
ilog.views.graphlayout.link.longlink.IlvLongLinkLayout
ilog.views.graphlayout.link.shortlink.IlvShortLinkLayout
ilog.views.graphlayout.multiple.IlvMultipleLayout
ilog.views.graphlayout.recursive.IlvRecursiveLayout
ilog.views.graphlayout.recursive.IlvRecursiveMultipleLayout
ilog.views.graphlayout.tree.IlvTreeLayout
ilog.views.hypergraph.IlvSegmentedHyperEdge
ilog.views.hypergraph.interactor.IlvMakeSegmentedHyperEdgeInteractor
ilog.views.sdm.IlvSDMEngine
ilog.views.sdm.IlvSDMException
ilog.views.sdm.IlvSDMView
ilog.views.sdm.graphic.IlvGeneralLink
ilog.views.sdm.graphic.IlvGeneralNode
ilog.views.sdm.graphic.IlvSDMCompositeLink
ilog.views.sdm.renderer.IlvBlinkingRenderer
ilog.views.sdm.renderer.IlvHalfZoomingRenderer
ilog.views.sdm.renderer.IlvInteractorRenderer
ilog.views.sdm.renderer.IlvSDMFreeLinkConnector
ilog.views.sdm.renderer.IlvSDMLinkConnector
ilog.views.sdm.renderer.IlvStyleSheetRenderer
ilog.views.sdm.renderer.IlvSubGraphRenderer
ilog.views.sdm.renderer.graphlayout.IlvGraphLayoutRenderer
ilog.views.sdm.renderer.graphlayout.IlvLabelLayoutRenderer
ilog.views.sdm.renderer.maps.IlvMapStyleSheetRenderer
protected
method IlvGraphLayout.createLayoutReport()
is now
public
.additionalNodeRepulsionWeight
parameter in
IlvUniformLengthEdgesLayout
is now 0.2 instead of 0.IlvClassLoaderUtil
to make sure JViews
finds them, despite the fact that they are not all reachable from a
single class loader.
ilog.views.util.swt
).
IlvResourceUtil
class.
This class allows to configure applets so that they no longer attempt to load resources
unsuccessfully over the network for locale bundles that do not exist. This speeds up the startup
time of applets that run in browsers with a different locale than the locales provided by the applet.
IlvDashboardDiagram
API.
IlvURLGraphic
now also supports
PNG, GIF and JPG formats.
ilog.views.hypergraph.crossing
This package contains the utility classes that are needed to calculate tunnel and bridge crossings in segmented hyperedges.
ilog.views.dashboard.IlvDashboardLinkConnector
Link connector used by dashboard symbols.
ilog.views.graphlayout.IlvSplineLinkFilter
IlvSplineLinkFilter
is used by the layout algorithms that support optimized spline routing.
ilog.views.graphlayout.hierarchical.IlvRelativeConstraint
IlvRelativeConstraint
is the base class ofIlvRelativeLevelConstraint
andIlvRelativePositionConstraint
. This class existed already in earlier versions but is now public.
ilog.views.sdm.renderer.IlvSDMClippingLinkConnector
This class implements a special clipping link connector that takes into account the link connection rectangle of a node.
ilog.views.dashboard.IlvDashboardAction
close
:
This action closes the dashboard diagram.
linkLayoutEnabled
:
This action enables or disables the link layout.
ilog.views.dashboard.IlvDashboardDiagram
getGraphicSymbol(IlvGraphic)
:
Returns the symbol corresponding to graphic
.
isLinkLayoutEnabled()
:
Tests if the link layout is enabled.
setLinkLayoutEnabled(boolean)
:
Enables or disables the link layout.
readBinary(URL)
:
Reads a dashboard from a binary file.
readBinary(InputStream)
:
Reads the dashboard binary format contents from an input stream.
writeBinary(URL)
:
Writes the contents of the dashboard in binary format to a URL.
writeBinary(OutputStream)
:
Writes the contents of the dashboard in binary format to an output stream.
ilog.views.dashboard.IlvDashboardSymbol
getParameterValue(String)
:
Returns the value of the parameter specified by paramID
setParameterValue(String, Object)
:
Sets the value of the parameter specified by paramID
.
ilog.views.diagrammer.IlvDiagrammer
clearAdjusting()
:
Stops an editing sequence but prevents JViews Diagrammer from performing any computation regarding the changes.
ilog.views.diagrammer.application.IlvDiagrammerApplication
isUseAutomaticWaitCursor()
:
Tests if the wait cursor is shown automatically.
setUseAutomaticWaitCursor(boolean)
:
Sets whether the wait cursor is displayed as soon as a mouse click causes any action that needs a runtime of more than 100 ms.
ilog.views.diagrammer.faces.dhtml.component.IlvFacesDHTMLDashboardView
getBeforeSessionExpirationHandler()
:
Returns the JavaScript code that is called when the session is about to expire.
setBeforeSessionExpirationHandler(String)
:
Sets the JavaScript code that is called when the session is about to expire.
ilog.views.diagrammer.faces.dhtml.component.IlvFacesDHTMLDiagrammerView
getBeforeSessionExpirationHandler()
:
Returns the JavaScript code that is called when the session is about to expire.
setBeforeSessionExpirationHandler(String)
:
Sets the JavaScript code that is called when the session is about to expire.
ilog.views.diagrammer.project.IlvDiagrammerProject
getProperty(File, String)
:
Returns a property of this JViews Diagrammer project for the default locale.
ilog.views.diagrammer.servlet.IlvDiagrammerSelectionSupport
deselectAll(HttpServletRequest, IlvSelectionSupport.IlvSelectionResponse, IlvDiagrammer)
:
Deselects all the objects in the specified diagram component.
getSelectedObjects(HttpServletRequest, IlvSelectionSupport.IlvSelectionResponse, IlvDiagrammer)
:
Returns the nodes and links currently selected in the diagram component.
isSelected(HttpServletRequest, IlvSelectionSupport.IlvSelectionResponse, IlvDiagrammer, IlvGraphic)
:
Tests if the specified object is selected.
setSelected(HttpServletRequest, IlvSelectionSupport.IlvSelectionResponse, IlvDiagrammer, IlvGraphic, boolean)
:
Selects the specified object.
selectAll(HttpServletRequest, IlvSelectionSupport.IlvSelectionResponse, IlvDiagrammer)
:
Selects all the objects in the specified diagram component.
ilog.views.graphlayout.GraphLayoutEvent
getGraphLayout()
:
Returns the graph layout that is the source of the event.
ilog.views.graphlayout.GraphLayoutParameterEvent
GraphLayoutParameterEvent(IlvGraphLayout, Object, String, boolean)
:
Creates the event.
getNodeOrLink()
:
Returns the node or link that is affected by the layout parameter.
getParameterName()
:
Returns the name of the parameter that has been changed.
ilog.views.graphlayout.IlvGraphLayout
getBalanceSplineCurveThreshold()
:
Returns the threshold for spline curves at bends which the optimized spline control point routing uses to balance the curve.
setBalanceSplineCurveThreshold(float)
:
Sets the threshold for spline curves at bends which the optimized spline control point routing uses to balance the curve.
getMaxSplineCurveSize()
:
Returns the maximum curve size used when spline control point optimization routing is enabled.
setMaxSplineCurveSize(float)
:
Sets the maximum curve size used when optimized spline control point routing is enabled.
getMinSplineCurveSize()
:
Returns the minimum curve size used when optimized spline control points routing is enabled.
setMinSplineCurveSize(float)
:
Sets the minimum curve size used when optimized spline control point routing is enabled.
getRemainingAllowedTime()
:
Returns the remaining allowed time.
getSplineLinkFilter()
:
Returns the filter that detects which links are suitable for optimized spline routing.
setSplineLinkFilter(IlvSplineLinkFilter)
:
Sets the filter that detects which links are suitable for optimized spline routing.
isSplineRoutingEnabled()
:
Tests if the calculation of optimized spline control points is enabled.
setSplineRoutingEnabled(boolean)
:
Sets whether the calculation of optimized spline control points is enabled.
onParameterChanged(String)
:
Called when a global layout parameter has changed.
onParameterChanged(Object, String)
:
Called when a layout parameter for a specific node or link has changed.
supportsSplineRouting()
:
Indicates whether the layout class supports the generic optimization of spline control points.
ilog.views.graphlayout.hierarchical.IlvHierarchicalLayout
getLevelingStrategy()
:
Returns the current hierarchical layout leveling strategy.
setLevelingStrategy(int)
:
Sets the hierarchical layout leveling strategy.
supportsSplineRouting()
:
Indicates that this class supports the generic optimization of spline control points.
HIGHER_LEVELS
:
The leveling strategy to utilize higher numbered levels.
LOWER_LEVELS
:
The leveling strategy to utilize lower numbered levels.
OPTIMAL
:
The optimal leveling strategy.
SEMI_OPTIMAL
:
The semioptimal leveling strategy.
SPREAD_OUT
:
The leveling strategy to spread the nodes over all levels.
ilog.views.graphlayout.hierarchical.IlvLevelRangeConstraint
setMaxLevel(int)
:
Sets the maximum level index suitable for the subject of this constraint, that is, for the node or the group of nodes.
setMinLevel(int)
:
Sets the minimum level index suitable for the subject of this constraint, that is, for the node or the group of nodes.
ilog.views.graphlayout.labellayout.annealing.IlvAnnealingLabelLayout
refreshAllLabelsOfObstacles()
:
Refreshes all the labels associated with obstacles.
refreshLabelsOfObstacle(Object)
:
Refreshes the labels associated with a specific obstacle.
ilog.views.graphlayout.link.IlvLinkLayout
supportsSplineRouting()
:
Indicates that this class supports the generic optimization of spline control points.
ilog.views.graphlayout.link.longlink.IlvLongLinkLayout
supportsSplineRouting()
:
Indicates that this class supports the generic optimization of spline control points.
ilog.views.graphlayout.link.shortlink.IlvShortLinkLayout
supportsSplineRouting()
:
Indicates that this class supports the generic optimization of spline control points.
ilog.views.graphlayout.multiple.IlvMultipleLayout
IlvMultipleLayout(IlvGraphLayout, IlvGraphLayout)
:
Creates a new instance of the Multiple Layout algorithm that composes the input layouts.
ilog.views.graphlayout.recursive.IlvRecursiveLayout
performLayout(Object, boolean, boolean, boolean)
:
Starts the layout algorithm with a subgraph.
ilog.views.graphlayout.recursive.IlvRecursiveMultipleLayout
IlvRecursiveMultipleLayout(IlvGraphLayout, IlvGraphLayout)
:
Creates a new instance of the Recursive Multiple Layout algorithm.
getFirstGraphLayoutActive()
:
Returns whether the first graph layout of all subgraphs is active.
setFirstGraphLayoutActive(int)
:
Sets whether the first graph layout of all subgraphs is active.
getFirstGraphLayoutActiveDuringAutoLayout()
:
Tests if the first graph layout of all subgraphs is active during automatic layout.
setFirstGraphLayoutActiveDuringAutoLayout(int)
:
Sets whether the first graph layout of all subgraphs is active during automatic layout.
getLabelLayoutActive()
:
Returns whether the label layout of all subgraphs is active.
setLabelLayoutActive(int)
:
Sets whether the label layout of all subgraphs is active.
getLabelLayoutActiveDuringAutoLayout()
:
Tests if the label layout of all subgraphs is active during automatic layout.
setLabelLayoutActiveDuringAutoLayout(int)
:
Sets whether the label layout of all subgraphs is active during automatic layout.
getSecondGraphLayoutActive()
:
Tests if the second graph layout of all subgraphs is active.
setSecondGraphLayoutActive(int)
:
Sets whether the second graph layout of all subgraphs is active.
getSecondGraphLayoutActiveDuringAutoLayout()
:
Tests if the second graph layout of all subgraphs is active during automatic layout.
setSecondGraphLayoutActiveDuringAutoLayout(int)
:
Sets whether the second graph layout of all subgraphs is active during automatic layout.
propagateFirstGraphLayoutActive(boolean)
:
Sets whether the first graph layout of all subgraphs is active.
propagateLabelLayoutActive(boolean)
:
Sets whether the label layout of all subgraphs is active.
propagateSecondGraphLayoutActive(boolean)
:
Sets whether the second graph layout of all subgraphs is active.
setLayout(Object, IlvGraphLayout, IlvGraphLayout)
:
Sets the layout instances to be used for the input subgraph.
ilog.views.graphlayout.tree.IlvTreeLayout
supportsSplineRouting()
:
Tests if this class supports the generic optimization of spline control points.
ilog.views.hypergraph.IlvSegmentedHyperEdge
boundingBoxCrossingGraphic(IlvTransformer)
:
Returns the bounding rectangle of the crossing graphic that belongs to this object.
containsAtCrossingGraphic(IlvPoint, IlvPoint, IlvTransformer)
:
Tests if a point lies within the outline of the crossing graphic that belongs to this object.
createCrossingGraphic(int)
:
Creates the appropriate crossing graphic.
drawCrossingGraphic(Graphics, IlvTransformer)
:
Draws the crossing graphic that belongs to this object.
getCrossingAwareGraphic()
:
Returns the corresponding graphic.
getCrossingAwareSegments(IlvTransformer)
:
Returns those segments of the hyperedge that can display a crossing.
getCrossingGraphic()
:
Returns the graphic object that draws the crossings.
setCrossingGraphic(IlvGraphic)
:
Sets the graphic object that draws the crossings.
setCrossingGraphic(IlvGraphic, int)
:
Sets the graphic object that draws the crossings.
getCrossingMode()
:
Returns the crossing mode of the hyperedge.
setCrossingMode(int)
:
Sets the crossing mode of the hyperedge.
getGap()
:
Returns the gap width of the hyperedge crossings.
setGap(float)
:
Sets the gap width of the hyperedge crossings.
getLayerOfCrossingGraphic()
:
Returns the default layer of the graphic object that draws the crossings.
setLayerOfCrossingGraphic(int)
:
Sets the default layer of the graphic object that draws the crossings.
isCrossingAdjusting()
:
Returns whether the segmented hyperedge is inside an adjustment session for the crossings.
setCrossingAdjusting(boolean)
:
Starts or end an adjustment session for the crossings.
isCrossingEnabled()
:
Returns true
if tunnel (jog) crossing display is enabled for this hyperedge.
setCrossingEnabled(boolean)
:
Sets whether tunnel (jog) crossing display is enabled for this hyperedge.
isGapZoomable()
:
Returns true
if the gap of the link crossings is zoomable.
setGapZoomable(boolean)
:
Sets whether the gap of the hyperedge crossings is zoomable.
mergeCrossings(IlvCrossing, IlvCrossing, float, float)
:
Decides when to merge crossings.
modeFitsCrossingGraphic(int)
:
Tests if the current crossing graphic fits to the input mode.
removeAllCrossings(IlvTransformer)
:
Removes all crossings added at the object for a given transformer.
ilog.views.hypergraph.interactor.IlvMakeSegmentedHyperEdgeInteractor
getGap()
:
Returns the gap width of the hyperedge crossings at the newly-created edge.
setGap(float)
:
Sets the gap width of the hyperedge crossings at the newly-created edge.
getLayerOfCrossingGraphic()
:
Returns the default layer of the graphic object that draws the crossings at the newly-created edge.
setLayerOfCrossingGraphic(int)
:
Sets the default layer of the graphic object that draws the crossings at the newly-created edge.
isCrossingEnabled()
:
Returns whether the crossing mode should be enabled at the newly-created edge.
setCrossingEnabled(boolean)
:
Sets whether the crossing mode should be enabled at the newly-created edge.
isGapZoomable()
:
Returns true
if the gap of the link crossings is zoomable at the newly-created edge.
setGapZoomable(boolean)
:
Sets whether the gap of the hyperedge crossings is zoomable at the newly-created edge.
clearAdjusting()
:
Stops an editing sequence and prevents JViews Diagrammer from performing any computation regarding the changes.
getGrapherCleanerHandler()
:
Returns the current grapher cleaner handler.
setGrapherCleanerHandler(IlvGrapherCleanerHandler)
:
Sets the grapher cleaner handler that is called when SDM wants to remove its objects.
ilog.views.sdm.IlvSDMException
IlvSDMException(Throwable)
:
Constructs a new IlvSDMException
with the specified cause.
IlvSDMException(String, Throwable)
:
Creates a new IlvSDMException
with the specified detail message and cause.
fitTransformerToContent(Insets, int)
:
Overrides to iterate when automatic layout on zooming is enabled.
ilog.views.sdm.graphic.IlvGeneralLink
drawCore(Graphics2D, IlvTransformer)
:
Draws the object.
isSpline()
:
Tests if the link has spline routing functionality.
ilog.views.sdm.graphic.IlvGeneralNode
drawCore(Graphics2D, IlvTransformer)
:
Draws the object.
ilog.views.sdm.graphic.IlvSDMCompositeLink
IlvSDMCompositeLink(IlvSDMCompositeLink)
:
Creates an IlvLinkImage
by copying an existing one.
ilog.views.sdm.renderer.IlvBlinkingRenderer
isEnabled()
:
Tests if blinking is enabled.
setEnabled(boolean)
:
Sets whether blinking is enabled.
ilog.views.sdm.renderer.IlvHalfZoomingRenderer
isRotatable()
:
Tests if the objects support rotation.
setRotatable(boolean)
:
Sets whether the objects support rotation.
ilog.views.sdm.renderer.IlvInteractorRenderer
isShortcutEnabled()
:
Tests if shortcuts are enabled for all object interactors at once.
setShortcutEnabled(boolean)
:
Sets whether shortcuts are enabled for all interactors at once.
ilog.views.sdm.renderer.IlvSDMFreeLinkConnector
getEngine()
:
Returns the SDM Engine using this link connector.
ilog.views.sdm.renderer.IlvSDMLinkConnector
IlvSDMLinkConnector(boolean)
:
Creates a new IlvSDMLinkConnector
.
IlvSDMLinkConnector()
:
Creates a new IlvSDMLinkConnector
.
isCenter()
:
Returns if the link is connected to the center of the node base.
setCenter(boolean)
:
Defines whether the link is connected to the center of the node's base.
ilog.views.sdm.renderer.IlvStyleSheetRenderer
getLinkConnectorMode()
:
Returns the link connector mode.
setLinkConnectorMode(int)
:
Sets the link connector mode.
CENTER
:
Link connector mode. Use
IlvSDMLinkConnector
for all nodes.
CLIP
:
Link connector mode. Use
IlvSDMClippingLinkConnector
for all nodes.
FREE
:
Link connector mode. Use
IlvSDMFreeLinkConnector
for all nodes.
ilog.views.sdm.renderer.IlvSubGraphRenderer
isUpdatingPositionsOnExpand()
:
Returns true
if the positions of subgraphs and their children are updated when subgraphs are expanded or collapsed.
ilog.views.sdm.renderer.graphlayout.IlvGraphLayoutRenderer
isPerformingLayoutOnZoom()
:
Returns a boolean
specifying whether the layout algorithm should be applied every time the transformer of the reference view changes, or only when the data is initially rendered.
setPerformingLayoutOnZoom(boolean)
:
Specifies whether the layout algorithm should be applied every time the transformer of the reference view changes, or only when the data is initially rendered.
ilog.views.sdm.renderer.graphlayout.IlvLabelLayoutRenderer
IlvSDMCompositeNode
and
IlvSDMCompositeLink
as labels even if they are not subclasses of
IlvLabel
,
IlvZoomableLabel
, or
IlvText
.
isLayoutOfNonTextLabelsEnabled()
:
Returns a boolean
specifying whether the layout considers the children of
ilog.views.sdm.graphic.IlvSDMCompositeNode
and
ilog.views.sdm.graphic.IlvSDMCompositeLink
objects as labels even though they are not of type
ilog.views.graphic.IlvText
,
ilog.views.graphic.IlvLabel
, or of type
ilog.views.graphic.IlvZoomableLabel
.
setLayoutOfNonTextLabelsEnabled(boolean)
:
Enables or disables whether the layout considers the children of
ilog.views.sdm.graphic.IlvSDMCompositeNode
and
ilog.views.sdm.graphic.IlvSDMCompositeLink
objects as labels even though they are not of type
ilog.views.graphic.IlvText
,
ilog.views.graphic.IlvLabel
, or of type
ilog.views.graphic.IlvZoomableLabel
.
isPerformingLayoutOnZoom()
:
Returns a boolean
specifying whether the layout algorithm should be applied every time the transformer of the reference view changes, or only when the data is initially rendered.
setPerformingLayoutOnZoom(boolean)
:
Specifies whether the layout algorithm should be applied every time the transformer of the reference view changes, or only when the data is initially rendered.
ilog.views.sdm.renderer.maps.IlvMapStyleSheetRenderer
createLinkMapLayer(IlvManager)
:
Creates a link layer and adds a listener that will remove all symbols if the layer is removed.
createSymbolMapLayer(IlvManager)
:
Creates the symbol layer and adds a listener that will remove all symbols if the layer is removed.
getLinkMapLayer(IlvManager)
:
Tries to find a layer with LINK_LAYER_NAME
in the
IlvMapLayerTreeModel
of the manager.
getSymbolMapLayer(IlvManager)
:
Tries to find a layer with SYMBOL_LAYER_NAME
in the
IlvMapLayerTreeModel
of the manager.