scalation.animation.Dgraph.Token
The Token class is used to represent tokens in the graph.
Value parameters
-
color
-
the color of the token
-
h
-
the height of the token
-
label
-
the label for the created token
-
onNode
-
the node the token is on
-
primary
-
whether the token is primary/free/true to secondary/bound/false
-
shape
-
the shape of the token
-
w
-
the width of the token
Attributes
-
Graph
-
-
Supertypes
-
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Members list
Construct a primary/free token with explicit coordinates. Such tokens are free to move anywhere in the drawing panel.
Construct a primary/free token with explicit coordinates. Such tokens are free to move anywhere in the drawing panel.
Value parameters
-
color
-
the color of the token
-
h
-
the height of the token
-
label
-
the label for the created token
-
shape
-
the shape of the token
-
w
-
the width of the token
-
x
-
the x-coordinate of the token's location
-
y
-
the y-coordinate of the token's location
Attributes
Set (or reset) the color.
Set (or reset) the color.
Value parameters
-
color
-
the new color
Attributes
Set the node the token is on.
Set the node the token is on.
Value parameters
-
onNode2
-
the node the token is on
Attributes
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
Attributes
-
Inherited from:
-
Product
An iterator over all the elements of this product.
An iterator over all the elements of this product.
Attributes
-
Returns
-
in the default implementation, an Iterator[Any]
-
Inherited from:
-
Product