case class Edge(shape: CurvilinearShape, label: String, primary: Boolean, color: Color, from: Node, to: Node, bend: Double) extends Product with Serializable
This class is used to represent edges in the graph. If bend = 0, a straight line is created, otherwise a quadratic curve is created.
- shape
the shape (line/curve) of the edge
- label
the label for the created edge
- primary
whether it is a primary/transition/true or secondary/place node/false
- color
the color of the edge
- from
the origination node
- to
the destination node
- bend
the amount of bend in the curve
- Alphabetic
- By Inheritance
- Edge
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Edge(shape: CurvilinearShape, label: String, primary: Boolean, color: Color, from: Node, to: Node, x1: Double, y1: Double, xc: Double, yc: Double, x2: Double, y2: Double)
Construct an edge as a curve with explicit coordinates.
Construct an edge as a curve with explicit coordinates.
- shape
the shape (curve) of the edge
- label
the label for the created edge
- primary
whether it is a primary/transition/true or secondary/place node/false
- color
the color of the edge
- from
the origination node
- to
the destination node
- x1
the x-coordinate of the edge's start
- y1
the y-coordinate of the edge's start
- xc
the x-coordinate of the edge's control point
- yc
the y-coordinate of the edge's control point
- x2
the x-coordinate of the edge's end
- y2
the y-coordinate of the edge's end
-
new
Edge(shape: CurvilinearShape, label: String, primary: Boolean, color: Color, from: Node, to: Node, x1: Double, y1: Double, x2: Double, y2: Double)
Construct an edge as a line with explicit coordinates.
Construct an edge as a line with explicit coordinates.
- shape
the shape (line) of the edge
- label
the label for the created edge
- primary
whether it is a primary/transition/true or secondary/place node/false
- color
the color of the edge
- from
the origination node
- to
the destination node
- x1
the x-coordinate of the edge's start
- y1
the y-coordinate of the edge's start
- x2
the x-coordinate of the edge's end
- y2
the y-coordinate of the edge's end
-
new
Edge(shape: CurvilinearShape, label: String, primary: Boolean, color: Color, from: Node, to: Node)
Construct an edge with no bend.
Construct an edge with no bend.
- shape
the shape (line/curve) of the edge
- label
the label for the created edge
- primary
whether it is a primary/transition/true or secondary/place node/false
- color
the color of the edge
- from
the origination node
- to
the destination node
-
new
Edge(shape: CurvilinearShape, label: String, primary: Boolean, color: Color, from: Node, to: Node, bend: Double)
- shape
the shape (line/curve) of the edge
- label
the label for the created edge
- primary
whether it is a primary/transition/true or secondary/place node/false
- color
the color of the edge
- from
the origination node
- to
the destination node
- bend
the amount of bend in the curve
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addToken(token: Token): Unit
Add a token from this node.
Add a token from this node.
- token
the token to add
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val bend: Double
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- var color: Color
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val from: Node
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val label: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val primary: Boolean
-
def
setColor(color2: Color): Unit
Set (or reset) the color.
- val shape: CurvilinearShape
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val to: Node
-
def
toString(): String
Convert this edge to a string.
Convert this edge to a string.
- Definition Classes
- Edge → AnyRef → Any
-
val
tokens: ListBuffer[Token]
List of tokens current on this edge.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )