Class SimpleVertex

java.lang.Object
  |
  +--MusicVertex
        |
        +--SimpleVertex

public class SimpleVertex
extends MusicVertex

A SimpleVertex is how a note is represented in a MusicGraph. The Most important information on the note is saved in a NoteInfo object.


Field Summary
 NoteInfo info
          Musical information on the note represented by this SimpleVertex.
 
Fields inherited from class MusicVertex
inEdges, lowerRightPosition, maxDistanceFromEnd, maxDistanceFromStart, minDistanceFromEnd, minDistanceFromStart, objectTimeStamp, outEdges, starttime, upperLeftPosition, useCounter
 
Constructor Summary
SimpleVertex(NoteInfo ni, long stamp)
           
 
Method Summary
 MusicVertex deepClone()
          A deep clone of a SimpleVertex clones its NoteInfo object and gives the new clone another time stamp.
 double getLength()
          The length of a SimpleVertex is the length of its note.
 SimpleVertex resolveAnchor(java.util.Vector anchor)
          Anchor resolution on this SimpleVertex always returns this SimpleVertex.
 java.lang.String toString()
           
 
Methods inherited from class MusicVertex
distToString, getEndtime, getFollowsEdges, getProperFollowInEdges, getProperFollowOutEdges, getProperSimultaneousInEdges, getProperSimultaneousOutEdges, getProperStrongFollowInEdges, getProperStrongFollowOutEdges, getProperStrongSimultaneousInEdges, getProperStrongSimultaneousOutEdges, getProperWeakFollowInEdges, getProperWeakFollowOutEdges, getProperWeakSimultaneousInEdges, getProperWeakSimultaneousOutEdges, getSimultaneousEdges, getStrongFollowsEdges, getStrongSimultaneousEdges, graphicLayoutDone, graphPosToString, isSink, isSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

info

public NoteInfo info
Musical information on the note represented by this SimpleVertex.

Constructor Detail

SimpleVertex

public SimpleVertex(NoteInfo ni,
                    long stamp)
Method Detail

getLength

public double getLength()
The length of a SimpleVertex is the length of its note.

Specified by:
getLength in class MusicVertex

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

resolveAnchor

public SimpleVertex resolveAnchor(java.util.Vector anchor)
Anchor resolution on this SimpleVertex always returns this SimpleVertex.

Specified by:
resolveAnchor in class MusicVertex

deepClone

public MusicVertex deepClone()
A deep clone of a SimpleVertex clones its NoteInfo object and gives the new clone another time stamp.

Specified by:
deepClone in class MusicVertex