org.jfugue
Class Time

java.lang.Object
  extended by org.jfugue.Time
All Implemented Interfaces:
JFugueElement

public class Time
extends java.lang.Object
implements JFugueElement

Represents a timing value, which can be used to indicate when certain events are played.

Version:
3.0
Author:
David Koelle

Constructor Summary
Time(long time)
          Creates a new Time object, with the specified time number.
 
Method Summary
 java.lang.String getMusicString()
          Returns the Music String representing this element and all of its settings.
 long getTime()
          Returns the time used in this object
 void setTime(long time)
          Sets the value of the time for this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Time

public Time(long time)
Creates a new Time object, with the specified time number.

Parameters:
time - the number of the time to use
Method Detail

setTime

public void setTime(long time)
Sets the value of the time for this object.

Parameters:
time - the number of the time to use

getTime

public long getTime()
Returns the time used in this object

Returns:
the time used in this object

getMusicString

public java.lang.String getMusicString()
Returns the Music String representing this element and all of its settings. For a Time object, the Music String is @time

Specified by:
getMusicString in interface JFugueElement
Returns:
the Music String for this element