Home Reference Source Test Repository
public class | source

DashedEdge

Extends:

Edge → DashedEdge

Edge subclass for dashed edges.

Method Summary

Public Methods
public

Draw the edge on the given canvas context.

Inherited Summary

From class Edge
public
public
public
public
public

label: *

public
public
public
public

Check if the edge contains a given point (within a distance threshold).

public

detach()

Remove the edge from all other graph objects associated with it.

public abstract

Draw the edge on the given canvas context.

public

Draw an arrow on the destination side of the edge on the given context.

public

Draw the Label object associated with this edge.

public

updateCurvedEdgeLabel(oldStartPoint2D: Point2D, oldBezierPoint2D: Point2D, oldDestPoint2D: Point2D, startPoint2D: Point2D, bezierPoint2D: Point2D, destPoint2D: Point2D)

Update the position of the Label for a curved edge.

public

Update the endpoints of the edge.

public

Update endpoints for a normal edge.

public

Update endpoints for a self-loop edge.

public

updateSelfLoopLabel(oldBezierPoint: Object)

Update the position of the Label for a self-loop edge.

public

updateStraightEdgeLabel(oldStartPoint2D: Point2D, oldBezierPoint2D: Point2D, oldDestPoint2D: Point2D, startPoint2D: Point2D, bezierPoint2D: Point2D, destPoint2D: Point2D)

Update the position of the Label for a straight edge.

Public Methods

public draw(context: CanvasRenderingContext2D) source

Draw the edge on the given canvas context.

Override:

Edge#draw

Params:

NameTypeAttributeDescription
context CanvasRenderingContext2D

Canvas 2D context.