Token

scalation.animation.Dgraph.Token
case class Token(shape: RectangularShape, label: String, primary: Boolean, var color: Color, var onNode: Node, w: Double, h: Double)

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

Value members

Constructors

def this(shape: RectangularShape, label: String, primary: Boolean, color: Color, x: Double, y: Double, w: Double, h: Double)

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

Concrete methods

def setColor(color2: Color): Unit

Set (or reset) the color.

Set (or reset) the color.

Value parameters

color

the new color

Attributes

def setOnNode(onNode2: Node): Unit

Set the node the token is on.

Set the node the token is on.

Value parameters

onNode2

the node the token is on

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product