// Path: app/src/main/java/cheetatech/com/colorhub/defines/BoardEditor.java
// public class BoardEditor {
//     private static BoardEditor ourInstance = null;
//     private Context context = null;
// 
//     public static BoardEditor getInstance()
//     {
//         if(ourInstance == null)
//             ourInstance = new BoardEditor();
//         return ourInstance;
//     }
// 
//     private BoardEditor() {
//     }
// 
//     public Context getContext()
//     {
//         return this.context;
//     }
// 
//     public void setContext(Context context)
//     {
//         this.context = context;
//     }
//     public void copyToClipBoard(String text)
//     {
//         ClipboardManager clipMan = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE);
//         ClipData clip = ClipData.newPlainText("text",text);
//         clipMan.setPrimaryClip(clip);
//     }
// }
// 
// Path: app/src/main/java/cheetatech/com/colorhub/listeners/IOnFocusListenable.java
// public interface IOnFocusListenable {
//     void onWindowFocusChanged(boolean hasFocus);
// }
// 
// Path: app/src/main/java/cheetatech/com/colorhub/models/Model.java
// public class Model extends RealmObject{
//     private String colorCode;
// 
//     public Model(){}
//     public Model(String colorCode) {
//         this.colorCode = colorCode;
//     }
// 
//     public String getColorCode() {
//         return colorCode;
//     }
// 
//     public void setColorCode(String colorCode) {
//         RealmX.realm().beginTransaction();
//         this.colorCode = colorCode;
//         RealmX.realm().commitTransaction();
//     }
// 
// }


import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Rect;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.Display;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.Surface;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.RelativeLayout;
import android.widget.SeekBar;
import android.widget.TextView;
import android.widget.Toast;
import java.math.BigInteger;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import cheetatech.com.colorhub.R;
import cheetatech.com.colorhub.defines.BoardEditor;
import cheetatech.com.colorhub.listeners.IOnFocusListenable;
import cheetatech.com.colorhub.models.Model;
        void onAddNewColor(String color);
    }

    private OnColorPickerAddListener mListener;

    public ColorPickerAdd() {
    }

    public OnColorPickerAddListener getListener() {
        return mListener;
    }

    public void setListener(OnColorPickerAddListener mListener) {
        this.mListener = mListener;
    }

    public static ColorPickerAdd newInstance(OnColorPickerAddListener listener) {
        ColorPickerAdd fragment = new ColorPickerAdd();
        fragment.setListener(listener);
        return fragment;
    }

    public int getPosition() {
        return mPosition;
    }

    public void setPosition(int mPosition) {
        this.mPosition = mPosition;
    }

// Path: app/src/main/java/cheetatech/com/colorhub/defines/BoardEditor.java
// public class BoardEditor {
//     private static BoardEditor ourInstance = null;
//     private Context context = null;
// 
//     public static BoardEditor getInstance()
//     {
//         if(ourInstance == null)
//             ourInstance = new BoardEditor();
//         return ourInstance;
//     }
// 
//     private BoardEditor() {
//     }
// 
//     public Context getContext()
//     {
//         return this.context;
//     }
// 
//     public void setContext(Context context)
//     {
//         this.context = context;
//     }
//     public void copyToClipBoard(String text)
//     {
//         ClipboardManager clipMan = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE);
//         ClipData clip = ClipData.newPlainText("text",text);
//         clipMan.setPrimaryClip(clip);
//     }
// }
// 
// Path: app/src/main/java/cheetatech/com/colorhub/listeners/IOnFocusListenable.java
// public interface IOnFocusListenable {
//     void onWindowFocusChanged(boolean hasFocus);
// }
// 
// Path: app/src/main/java/cheetatech/com/colorhub/models/Model.java
// public class Model extends RealmObject{
//     private String colorCode;
// 
//     public Model(){}
//     public Model(String colorCode) {
//         this.colorCode = colorCode;
//     }
// 
//     public String getColorCode() {
//         return colorCode;
//     }
// 
//     public void setColorCode(String colorCode) {
//         RealmX.realm().beginTransaction();
//         this.colorCode = colorCode;
//         RealmX.realm().commitTransaction();
//     }
// 
// }


// Path: app/src/main/java/layout/ColorPickerAdd.java
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Rect;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.Display;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.Surface;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.RelativeLayout;
import android.widget.SeekBar;
import android.widget.TextView;
import android.widget.Toast;
import java.math.BigInteger;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import cheetatech.com.colorhub.R;
import cheetatech.com.colorhub.defines.BoardEditor;
import cheetatech.com.colorhub.listeners.IOnFocusListenable;
import cheetatech.com.colorhub.models.Model;

        void onAddNewColor(String color);
    }

    private OnColorPickerAddListener mListener;

    public ColorPickerAdd() {
    }

    public OnColorPickerAddListener getListener() {
        return mListener;
    }

    public void setListener(OnColorPickerAddListener mListener) {
        this.mListener = mListener;
    }

    public static ColorPickerAdd newInstance(OnColorPickerAddListener listener) {
        ColorPickerAdd fragment = new ColorPickerAdd();
        fragment.setListener(listener);
        return fragment;
    }

    public int getPosition() {
        return mPosition;
    }

    public void setPosition(int mPosition) {
        this.mPosition = mPosition;
    }

    public Model getModel() {