public abstract class

HtcPen

extends BasePen
java.lang.Object
   ↳ com.htc.painting.tool.pen.Pen
     ↳ com.htc.painting.tool.pen.BasePen
       ↳ com.htc.painting.engine.HtcPen
Known Direct Subclasses

Class Overview

Provide more properties related to stroke Properties

Summary

Nested Classes
class HtcPen.EraserPen  
Constants
String KEY_ALPHA_MINIMUM
String KEY_BRUSH_ANGLE_JITTER
String KEY_BRUSH_OPACITY_JITTER
String KEY_BRUSH_PATTERN_RESID
String KEY_BRUSH_SIZE_JITTER
String KEY_BRUSH_SPACING
String KEY_HAVE_BRUSH_PATTERN
[Expand]
Inherited Fields
From class com.htc.painting.tool.pen.Pen
Public Constructors
HtcPen(Context context, Integer id, ReadOnlyPenProps penProps)
Public Methods
boolean canPrefetchJitterBitmaps()
Override below functions to do bitmap prefetch === begin ===
float getAlphaMinimum()
float getAngleJitter()
Bitmap getBushPattern()
List<Bitmap> getJitterBitmaps(float size)
float getOpacityJitter()
float getSizeJitter()
float getSpacing()
void prefetchJitterBitmaps()
Protected Methods
boolean haveBrushPattern()
Bitmap preparePatternBrush()
if no pattern brush in resource, override this to create pattern
[Expand]
Inherited Methods
From class com.htc.painting.tool.pen.BasePen
From class com.htc.painting.tool.pen.Pen
From class java.lang.Object

Constants

public static final String KEY_ALPHA_MINIMUM

Constant Value: "_opacity_minimum"

public static final String KEY_BRUSH_ANGLE_JITTER

Constant Value: "_brush_angle_jitter"

public static final String KEY_BRUSH_OPACITY_JITTER

Constant Value: "_brush_opacity_jitter"

public static final String KEY_BRUSH_PATTERN_RESID

Constant Value: "_brush_pattern_resource_id"

public static final String KEY_BRUSH_SIZE_JITTER

Constant Value: "_brush_size_jitter"

public static final String KEY_BRUSH_SPACING

Constant Value: "_brush_spacing"

public static final String KEY_HAVE_BRUSH_PATTERN

Constant Value: "_brush_have_pattern"

Public Constructors

public HtcPen (Context context, Integer id, ReadOnlyPenProps penProps)

Public Methods

public boolean canPrefetchJitterBitmaps ()

Override below functions to do bitmap prefetch === begin ===

public float getAlphaMinimum ()

public float getAngleJitter ()

public Bitmap getBushPattern ()

public List<Bitmap> getJitterBitmaps (float size)

public float getOpacityJitter ()

public float getSizeJitter ()

public float getSpacing ()

public void prefetchJitterBitmaps ()

Protected Methods

protected boolean haveBrushPattern ()

protected Bitmap preparePatternBrush ()

if no pattern brush in resource, override this to create pattern