Package org.emrick.project
Class SyncTimeGUI
java.lang.Object
org.emrick.project.SyncTimeGUI
- All Implemented Interfaces:
ActionListener
,EventListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
class
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) AudioPlayer
private static final String
private final JPanel
private final JButton
(package private) ArrayList<SyncTimeGUI.PairCountMS>
(package private) int
(package private) long
private final JDialog
private static final String
private final JPanel
private static boolean
private static final String
(package private) long
private ArrayList<Map.Entry<String,
JTextField>> private ArrayList<Map.Entry<String,
JTextField>> private ArrayList<Map.Entry<String,
JTextField>> private static final String
private JTextField
private JTextField
private final JButton
private final SyncListener
private final JTabbedPane
(package private) Action
private final JPanel
private static final String
private final JPanel
(package private) int
-
Constructor Summary
ConstructorsConstructorDescriptionSyncTimeGUI
(JFrame parent, SyncListener syncListener, Map<String, Integer> set2Count, AudioPlayer audioPlayer, int totalCounts) -
Method Summary
Modifier and TypeMethodDescriptionvoid
private JPanel
private JPanel
private JPanel
private JPanel
private float
handleStartDelayInput
(JTextField textField) static void
private boolean
syncByBpm
(ArrayList<SyncTimeGUI.Pair> times) private boolean
syncByDuration
(ArrayList<SyncTimeGUI.Pair> times) private boolean
syncByTap
(ArrayList<SyncTimeGUI.Pair> times) private boolean
syncByTimestamp
(ArrayList<SyncTimeGUI.Pair> times)
-
Field Details
-
IS_DEBUG
private static boolean IS_DEBUG -
PATH_INSTR_IMAGE
-
START_TIMESTAMP_INSTRUCTION
- See Also:
-
BPM_INSTRUCTION
- See Also:
-
DURATION_INSTRUCTION
- See Also:
-
TIMESTAMP_INSTRUCTION
- See Also:
-
set2Count
-
set2TimestampField
-
set2DurationField
-
set2BpmField
-
startDelayFieldDuration
-
startDelayFieldBpm
-
tabbedPane
-
bpmPanel
-
timestampPanel
-
durationPanel
-
tapPanel
-
dialogWindow
-
cancelButton
-
syncButton
-
syncListener
-
audioPlayer
AudioPlayer audioPlayer -
currentCount
int currentCount -
prevCountTime
long prevCountTime -
totalCounts
int totalCounts -
currentTime
long currentTime -
counts
ArrayList<SyncTimeGUI.PairCountMS> counts -
tapAction
Action tapAction
-
-
Constructor Details
-
SyncTimeGUI
public SyncTimeGUI(JFrame parent, SyncListener syncListener, Map<String, Integer> set2Count, AudioPlayer audioPlayer, int totalCounts)
-
-
Method Details
-
createBpmPanel
-
createTapPanel
-
createDurationPanel
-
createTimestampPanel
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
handleStartDelayInput
-
syncByDuration
-
syncByTap
-
syncByBpm
-
syncByTimestamp
-
main
-