public class DJView extends java.lang.Object implements java.awt.event.ActionListener, BeatObserver, BPMObserver
Modifier and Type | Field and Description |
---|---|
(package private) BeatBar |
beatBar |
(package private) javax.swing.JLabel |
bpmLabel |
(package private) javax.swing.JLabel |
bpmOutputLabel |
(package private) javax.swing.JTextField |
bpmTextField |
(package private) javax.swing.JFrame |
controlFrame |
(package private) ControllerInterface |
controller |
(package private) javax.swing.JPanel |
controlPanel |
(package private) javax.swing.JButton |
decreaseBPMButton |
(package private) javax.swing.JButton |
increaseBPMButton |
(package private) javax.swing.JMenu |
menu |
(package private) javax.swing.JMenuBar |
menuBar |
(package private) BeatModelInterface |
model |
(package private) javax.swing.JButton |
setBPMButton |
(package private) javax.swing.JMenuItem |
startMenuItem |
(package private) javax.swing.JMenuItem |
stopMenuItem |
(package private) javax.swing.JFrame |
viewFrame |
(package private) javax.swing.JPanel |
viewPanel |
Constructor and Description |
---|
DJView(ControllerInterface controller,
BeatModelInterface model) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event) |
void |
createControls() |
void |
createView() |
void |
disableStartMenuItem() |
void |
disableStopMenuItem() |
void |
enableStartMenuItem() |
void |
enableStopMenuItem() |
void |
updateBeat() |
void |
updateBPM() |
BeatModelInterface model
ControllerInterface controller
javax.swing.JFrame viewFrame
javax.swing.JPanel viewPanel
javax.swing.JLabel bpmOutputLabel
javax.swing.JFrame controlFrame
javax.swing.JPanel controlPanel
javax.swing.JLabel bpmLabel
javax.swing.JTextField bpmTextField
javax.swing.JButton setBPMButton
javax.swing.JButton increaseBPMButton
javax.swing.JButton decreaseBPMButton
javax.swing.JMenuBar menuBar
javax.swing.JMenu menu
javax.swing.JMenuItem startMenuItem
javax.swing.JMenuItem stopMenuItem
public DJView(ControllerInterface controller, BeatModelInterface model)
public void createView()
public void createControls()
public void enableStopMenuItem()
public void disableStopMenuItem()
public void enableStartMenuItem()
public void disableStartMenuItem()
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public void updateBPM()
updateBPM
in interface BPMObserver
public void updateBeat()
updateBeat
in interface BeatObserver