com.groovemanager.app.mc909se
Class PlaySequencePage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by com.groovemanager.app.mc909se.OnlyMessagePage
              extended by com.groovemanager.app.mc909se.PlaySequencePage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class PlaySequencePage
extends OnlyMessagePage

This class is used for the wizard page that is displayed at the end of the ExportRhythmSetWizard

Author:
Manu Robledo

Field Summary
(package private)  float bpm
          The tempo in which to play the sequence
(package private) static java.lang.String INVISIBLE_TEXT
          Text to display when the play button is visible
(package private)  javax.sound.midi.MidiDevice output
          The output device to use
(package private)  org.eclipse.swt.widgets.Button play
          play button
(package private)  javax.sound.midi.Sequence seq
          The sequence to play
(package private)  javax.sound.midi.Sequencer sequencer
          The sequencer to be used for playing the sequence
(package private)  boolean visible
          Indicates whether the play button should be visible or not
(package private) static java.lang.String VISIBLE_TEXT
          Text to display when the play button is visible
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
PlaySequencePage(java.lang.String pageName)
          Create a new PlaySequencePage
PlaySequencePage(java.lang.String pageName, java.lang.String title, org.eclipse.jface.resource.ImageDescriptor titleImage)
          Create a new PlaySequencePage
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
(package private)  void play()
          Play the sequence
 void setPlayVisible(boolean visible)
          Set the visibility of the play button
 
Methods inherited from class com.groovemanager.app.mc909se.OnlyMessagePage
setImage, setMessageText
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
 

Field Detail

bpm

float bpm
The tempo in which to play the sequence


INVISIBLE_TEXT

static final java.lang.String INVISIBLE_TEXT
Text to display when the play button is visible

See Also:
Constant Field Values

output

javax.sound.midi.MidiDevice output
The output device to use


play

org.eclipse.swt.widgets.Button play
play button


seq

javax.sound.midi.Sequence seq
The sequence to play


sequencer

javax.sound.midi.Sequencer sequencer
The sequencer to be used for playing the sequence


visible

boolean visible
Indicates whether the play button should be visible or not


VISIBLE_TEXT

static final java.lang.String VISIBLE_TEXT
Text to display when the play button is visible

See Also:
Constant Field Values
Constructor Detail

PlaySequencePage

public PlaySequencePage(java.lang.String pageName)
Create a new PlaySequencePage

Parameters:
pageName - The page´s name

PlaySequencePage

public PlaySequencePage(java.lang.String pageName,
                        java.lang.String title,
                        org.eclipse.jface.resource.ImageDescriptor titleImage)
Create a new PlaySequencePage

Parameters:
pageName - The page´s name
title - The page title
titleImage - The title image
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createControl in interface org.eclipse.jface.dialogs.IDialogPage
Overrides:
createControl in class OnlyMessagePage

play

void play()
Play the sequence


setPlayVisible

public void setPlayVisible(boolean visible)
Set the visibility of the play button

Parameters:
visible - The visibility of the play button