Overview  Package   Class  Tree  Index 

be.lassi.cues
Class CueNumber

java.lang.Object
  extended by be.lassi.cues.CueNumber

public class CueNumber
extends java.lang.Object

Number of a cue in dotted format (1, 1.1, 2, 2.1, 2.1.1, etc.). Note that when writing cue numbers to Lanbox comments, dashes are used instead of dots (dots are not supported in Lanbox comments.


Constructor Summary
CueNumber(java.lang.String string)
          Constructs a new cue number, from a formatted string.
 
Method Summary
 java.lang.String getDashedString()
          Gets the string representation of the cue number, with all dots replaced by dashes.
 java.lang.String getNext()
          Gets the next cue number
 int getNumber(int index)
          Get the number at given index.
 int getNumberCount()
          The number of numbers that this cue number exists of.
 java.lang.String getString()
          Gets the string representation of the cue number.
 boolean isStandard()
          Indicates whether this cue number has a valid dotted syntax.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CueNumber

public CueNumber(java.lang.String string)
Constructs a new cue number, from a formatted string. Any dashes in the string are replaced by dots.

Parameters:
string - the string representation of the cue number
Method Detail

getDashedString

public java.lang.String getDashedString()
Gets the string representation of the cue number, with all dots replaced by dashes.

Returns:
the string representation of the cue number

getNext

public java.lang.String getNext()
Gets the next cue number

Returns:
the next cue number

getNumber

public int getNumber(int index)
Get the number at given index.

Parameters:
index - index of the number
Returns:
the number at given index

getNumberCount

public int getNumberCount()
The number of numbers that this cue number exists of.

Returns:
the number of numbers between the dots

getString

public java.lang.String getString()
Gets the string representation of the cue number.

Returns:
the string representation of the cue number

isStandard

public boolean isStandard()
Indicates whether this cue number has a valid dotted syntax.

Returns:
true if this cue number has valid dotted syntax

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2