vitro
Class ActorAnnotation

java.lang.Object
  extended by vitro.ActorAnnotation
All Implemented Interfaces:
Annotation

public class ActorAnnotation
extends Object
implements Annotation

An Annotation meant for associating some textual data with an Actor. Like all Annotations, the appearance of an ActorAnnotation is up to the Model's View, but all default Views should have support for this annotation.


Field Summary
 Actor actor
           
 String label
           
 
Constructor Summary
ActorAnnotation(Actor actor)
          Create a new ActorAnnotation that simply highlights a specific Actor.
ActorAnnotation(Actor actor, String label)
          Create a new ActorAnnotation which applies a label to a specific Actor.
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

actor

public final Actor actor

label

public final String label
Constructor Detail

ActorAnnotation

public ActorAnnotation(Actor actor)
Create a new ActorAnnotation that simply highlights a specific Actor.

Parameters:
actor - Actor to annotate.

ActorAnnotation

public ActorAnnotation(Actor actor,
                       String label)
Create a new ActorAnnotation which applies a label to a specific Actor.

Parameters:
actor - Actor to annotate.
label - a String to associate with actor.
Method Detail

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object