// Path: src/main/java/com/eguller/mouserecorder/config/Config.java
// public interface Config {
//     public Config activateMinimizeOnPlay();
// 
//     public Config deactivateMinimizeOnPlay();
// 
//     public Config activateMinimizeOnRecord();
// 
//     public Config deactivateMinimizeOnRecord();
// 
//     public Config setSpeed(double speed);
// 
//     public double getSpeed();
// 
//     public boolean getMinimizeOnPlay();
// 
//     public boolean getMinimizeOnRecord();
// 
//     public Config setLoopCount(int loopCount);
// 
//     public int getLoopCount();
// 
//     public Config activeInfiniteLoop();
// 
//     public Config deactivateInfiniteLoop();
// 
//     public boolean isInfiniteLoop();
// }


import com.eguller.mouserecorder.config.Config;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import java.awt.*;
import java.util.Hashtable;
package com.eguller.mouserecorder.ui;



/**
 * User: eguller
 * Date: 3/10/14
 * Time: 7:19 AM
 */
public class SpeedMenuItem extends JPanel {
    private static final int MIN = -5;
    private static final int MAX = 5;
    JLabel speedLabel;
    JSlider speedSlider;

    final Config config;

// Path: src/main/java/com/eguller/mouserecorder/config/Config.java
// public interface Config {
//     public Config activateMinimizeOnPlay();
// 
//     public Config deactivateMinimizeOnPlay();
// 
//     public Config activateMinimizeOnRecord();
// 
//     public Config deactivateMinimizeOnRecord();
// 
//     public Config setSpeed(double speed);
// 
//     public double getSpeed();
// 
//     public boolean getMinimizeOnPlay();
// 
//     public boolean getMinimizeOnRecord();
// 
//     public Config setLoopCount(int loopCount);
// 
//     public int getLoopCount();
// 
//     public Config activeInfiniteLoop();
// 
//     public Config deactivateInfiniteLoop();
// 
//     public boolean isInfiniteLoop();
// }


// Path: src/main/java/com/eguller/mouserecorder/ui/SpeedMenuItem.java
import com.eguller.mouserecorder.config.Config;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import java.awt.*;
import java.util.Hashtable;

package com.eguller.mouserecorder.ui;



/**
 * User: eguller
 * Date: 3/10/14
 * Time: 7:19 AM
 */
public class SpeedMenuItem extends JPanel {
    private static final int MIN = -5;
    private static final int MAX = 5;
    JLabel speedLabel;
    JSlider speedSlider;

    final Config config;

    public SpeedMenuItem(final Config config) {