org.herac.tuxguitar.song.models
Class TGDuration

java.lang.Object
  extended by org.herac.tuxguitar.song.models.TGDuration

public abstract class TGDuration
extends java.lang.Object


Field Summary
static int EIGHTH
          Corchea.
static int HALF
          Blanca.
static int QUARTER
          Negra.
static long QUARTER_TIME
          tiempo por defecto de la Negra.
static int SIXTEENTH
          Semi-Corchea.
static int SIXTY_FOURTH
          Semi-Fusa.
static int THIRTY_SECOND
          Fusa.
static int WHOLE
          Redonda.
 
Constructor Summary
TGDuration(TGFactory factory)
           
 
Method Summary
 TGDuration clone(TGFactory factory)
           
 void copy(TGDuration duration)
           
static TGDuration fromTime(TGFactory factory, long time)
           
static TGDuration fromTime(TGFactory factory, long time, TGDuration minDuration)
           
static TGDuration fromTime(TGFactory factory, long time, TGDuration minimum, int diff)
           
 int getIndex()
           
 long getTime()
           
 TGTupleto getTupleto()
           
 int getValue()
           
 boolean isDotted()
           
 boolean isDoubleDotted()
           
 boolean isEqual(TGDuration d)
           
 void setDotted(boolean dotted)
           
 void setDoubleDotted(boolean doubleDotted)
           
 void setValue(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUARTER_TIME

public static final long QUARTER_TIME
tiempo por defecto de la Negra.

See Also:
Constant Field Values

WHOLE

public static final int WHOLE
Redonda.

See Also:
Constant Field Values

HALF

public static final int HALF
Blanca.

See Also:
Constant Field Values

QUARTER

public static final int QUARTER
Negra.

See Also:
Constant Field Values

EIGHTH

public static final int EIGHTH
Corchea.

See Also:
Constant Field Values

SIXTEENTH

public static final int SIXTEENTH
Semi-Corchea.

See Also:
Constant Field Values

THIRTY_SECOND

public static final int THIRTY_SECOND
Fusa.

See Also:
Constant Field Values

SIXTY_FOURTH

public static final int SIXTY_FOURTH
Semi-Fusa.

See Also:
Constant Field Values
Constructor Detail

TGDuration

public TGDuration(TGFactory factory)
Method Detail

getValue

public int getValue()

setValue

public void setValue(int value)

isDotted

public boolean isDotted()

setDotted

public void setDotted(boolean dotted)

isDoubleDotted

public boolean isDoubleDotted()

setDoubleDotted

public void setDoubleDotted(boolean doubleDotted)

getTupleto

public TGTupleto getTupleto()

getTime

public long getTime()

fromTime

public static TGDuration fromTime(TGFactory factory,
                                  long time)

fromTime

public static TGDuration fromTime(TGFactory factory,
                                  long time,
                                  TGDuration minDuration)

fromTime

public static TGDuration fromTime(TGFactory factory,
                                  long time,
                                  TGDuration minimum,
                                  int diff)

getIndex

public int getIndex()

isEqual

public boolean isEqual(TGDuration d)

clone

public TGDuration clone(TGFactory factory)

copy

public void copy(TGDuration duration)