vitro
Class ActorAnnotation
java.lang.Object
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.
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. |
actor
public final Actor actor
label
public final String label
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.
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