// 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);
// }


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.util.Log;
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.listeners.OnItemSelect;
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
            thumbRect = redSeekBar.getThumb().getBounds();
        }

        redToolTip.setX(seekBarLeft + thumbRect.left);
        if (red<10)
            redToolTip.setText("  "+red);
        else if (red<100)
            redToolTip.setText(" "+red);
        else
            redToolTip.setText(red+"");

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
            thumbRect = greenSeekBar.getThumb().getBounds();
        }

        greenToolTip.setX(seekBarLeft + thumbRect.left);
        if (green<10)
            greenToolTip.setText("  "+green);
        else if (red<100)
            greenToolTip.setText(" "+green);
        else
            greenToolTip.setText(green+"");

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
            thumbRect = blueSeekBar.getThumb().getBounds();
        }

        blueToolTip.setX(seekBarLeft + thumbRect.left);
        if (blue<10)
// 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/layout/ColorPicker1.java
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.util.Log;
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.listeners.OnItemSelect;

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
            thumbRect = redSeekBar.getThumb().getBounds();
        }

        redToolTip.setX(seekBarLeft + thumbRect.left);
        if (red<10)
            redToolTip.setText("  "+red);
        else if (red<100)
            redToolTip.setText(" "+red);
        else
            redToolTip.setText(red+"");

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
            thumbRect = greenSeekBar.getThumb().getBounds();
        }

        greenToolTip.setX(seekBarLeft + thumbRect.left);
        if (green<10)
            greenToolTip.setText("  "+green);
        else if (red<100)
            greenToolTip.setText(" "+green);
        else
            greenToolTip.setText(green+"");

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
            thumbRect = blueSeekBar.getThumb().getBounds();
        }

        blueToolTip.setX(seekBarLeft + thumbRect.left);
        if (blue<10)
            blueToolTip.setText("  "+blue);