AnimateCommand

scalation.animation.AnimateCommand
case class AnimateCommand(action: CommandType, eid: Int, shape: Shape, label: String, primary: Boolean, color: Color, pts: Array[Double], time: Double, from_eid: Int, to_eid: Int, shift: Int)

The AnimateCommand class provides a data structure for holding animation command specifications.

Value parameters

action

the animation action to perform

color

the color of the component

eid

the external id for the component acted upon

from_eid

the 'eid' of the origination node (only for edges)

label

the display label for the component

primary

whether the component is primary (true) or secondary (false)

pts

the set points/dimensions giving the shapes location and size

shape

the shape of graph component (node, edge or token)

shift

amount of distance to shift the shape to be resolved by an angle e.g. to accommodate a bundle of edges in a composite edge( only for edges)

time

simulation time when the command is to be performed

to_eid

the 'eid' of the destination node (only for edges)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def compare(command2: AnimateCommand): Int

This method compares two AnimateCommand objects to see which one has the most recent timestamp.

This method compares two AnimateCommand objects to see which one has the most recent timestamp.

Value parameters

command2

the animate command to compare this to

Attributes

def show(array: Array[Double]): String

Show the elements of the array and handle the null case.

Show the elements of the array and handle the null case.

Value parameters

array

the array to be shown

Attributes

override def toString: String

Convert the command to a string representation useful to printing/debugging.

Convert the command to a string representation useful to printing/debugging.

Attributes

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product