Android Open Source - Android-Lib-Pen Constants






From Project

Back to project page Android-Lib-Pen.

License

The source code is released under:

Apache License

If you think the Android project Android-Lib-Pen listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package android.lib.pen.demo;
/*from   w w  w  .  j a v a  2s .  c o m*/
import java.io.File;

import android.graphics.Color;
import android.os.Environment;

final class Constants {
    public static final String SPD_PATH   = new File(Environment.getExternalStorageDirectory(), "spd_files").getAbsolutePath(); //$NON-NLS-1$
    public static final String THUMB_PATH = new File(Environment.getExternalStorageDirectory(), "thumbs").getAbsolutePath();    //$NON-NLS-1$

    public static final String SPD_EXTENSION = ".spd"; //$NON-NLS-1$
    public static final String JPG_EXTENSION = ".jpg"; //$NON-NLS-1$

    public static final String EXTRA_SPD_PATH = "SPD_PATH"; //$NON-NLS-1$

    public static final int CANVAS_BACKGROUND_COLOR = Color.WHITE;
    public static final int DEFAULT_PEN_COLOR       = Color.BLUE;
    public static final int DEFAULT_PEN_SIZE        = 24;
    public static final int DEFAULT_ERASER_SIZE     = 36;

    public static final float CANVAS_ZOOM_SCALE    = 1.5f;
    public static final float CANVAS_SCROLL_EDGE   = 0.1f;
    public static final float CANVAS_PREVIEW_SCALE = 0.1f;

    public static final float THUMBNAIL_SCALE   = 0.2f;
    public static final int   THUMBNAIL_QUALITY = 80;

    private Constants() {
    }
}




Java Source Code List

android.lib.pen.PenButton.java
android.lib.pen.PenService.java
android.lib.pen.demo.Constants.java
android.lib.pen.demo.DragDropUtils.java
android.lib.pen.demo.DrawingActivity.java
android.lib.pen.demo.DrawingService.java
android.lib.pen.demo.GalleryAdapter.java
android.lib.pen.demo.IOUtils.java
android.lib.pen.demo.MainActivity.java
android.lib.pen.demo.MultiDragListener.java
android.lib.pen.demo.OnPageUpdatedListener.java
android.lib.pen.demo.OnReplayCompletedListener.java