PathView Class
Item Index
Methods
- addFakePoints
- animateMinorChanges
- animateNewPath
- animatePathChange
- animateRemove
- computeDynamicPathString
- computeNormalPathString
- computePathString
- computeStaticPathString
- firstDraw
- getArcDeviationPathString
- getDrawnArcs
- getStatistics
- initialize
- setVisibility
- svgEventManager
- updatePath
- updateWithoutAnimation
Methods
addFakePoints
-
An
-
An
Provided two paths, this method pushes fake points in order to return equidimensional paths.
Parameters:
-
An
Objectinstance of Path (1)
-
An
Objectinstance of Path (2)
Returns:
animateMinorChanges
()
This method animates a path when it is going to be involved in a minor change. The SVG path blinks.
animateNewPath
()
This method animates a path that was just drawn.
animatePathChange
()
This method animates a path when it is going to be involved in a change of its route.
animateRemove
()
This method animates a path when it is going to be removed. The SVG path blinks and disappears
computeDynamicPathString
-
An
This method computes the SVG representing a dynamic path.
Parameters:
-
An
Arrayarray of nodes
Returns:
computeNormalPathString
-
An
This method computes the SVG representing a path.
Parameters:
-
An
Arrayarray of nodes
Returns:
computePathString
-
An
This method dispatches a computation of an SVG path to a more specific method.
Parameters:
-
An
Arrayarray of nodes
Returns:
computeStaticPathString
-
An
This method computes the SVG representing a static path.
Parameters:
-
An
Arrayarray of nodes
Returns:
firstDraw
()
This method executes the first draw of the SVG representing the path.
getArcDeviationPathString
-
An
-
An
-
True
-
The
This method assigns to each arcs a deviation in order to avoid overlap between arcs belonging to different paths.
Parameters:
-
An
Objectinstance of Node
-
An
Objectinstance of Node
-
True
Booleanif the provided nodes are not sorted
-
The
Objectarc belonging to this PathView
Returns:
getDrawnArcs
-
An
-
The
This method returns a set of ordered arcs that must be drawn between a nodes pair.
Parameters:
-
An
Arrayarray of arcs
-
The
Objectarc belonging to this PathView
Returns:
getStatistics
()
This method provides percentages about the stability of the source-target pair in terms of sets of nodes involved.
initialize
-
A
The initialization method of this object.
Parameters:
-
A
Mapmap of parameters
setVisibility
()
This method updates the visibility of the SVG representing the path.
svgEventManager
()
This method manages the SVG events.
updatePath
-
An
This method manages the animation of a path involved in an event.
Parameters:
-
An
Objectinstance of Event
updateWithoutAnimation
()
This method updates the SVG representing the path without animating it.