Overview  Package   Class  Tree  Index 

be.lassi.cues
Class CueNumberGenerator

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

public class CueNumberGenerator
extends java.lang.Object

Generates default numbers for new Cues that are added to Cues collections.

These are the rules:


Constructor Summary
CueNumberGenerator(Cues cues)
          Constructs a new cue number generator.
 
Method Summary
 java.lang.String getNumber(int cueIndex)
          Gets a default number for a cue inserted at given index.
 void renumber(int firstCueNumber, int increment, boolean selected)
          Renumbers all cues.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CueNumberGenerator

public CueNumberGenerator(Cues cues)
Constructs a new cue number generator.

Parameters:
cues - the cue collection in which new cues are inserted
Method Detail

getNumber

public java.lang.String getNumber(int cueIndex)
Gets a default number for a cue inserted at given index.

Parameters:
cueIndex - the index at which the cue will be inserted
Returns:
the default cue number

renumber

public void renumber(int firstCueNumber,
                     int increment,
                     boolean selected)
Renumbers all cues.

Parameters:
firstCueNumber - the cue number for the first cue
increment - the cue number increment
selected - indicates whether only selected cues should be renumbered

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2