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

Since: API Level 2.0

Constant Value: "_opacity_minimum"

public static final String KEY_BRUSH_ANGLE_JITTER

Since: API Level 2.0

Constant Value: "_brush_angle_jitter"

public static final String KEY_BRUSH_OPACITY_JITTER

Since: API Level 2.0

Constant Value: "_brush_opacity_jitter"

public static final String KEY_BRUSH_PATTERN_RESID

Since: API Level 2.0

Constant Value: "_brush_pattern_resource_id"

public static final String KEY_BRUSH_SIZE_JITTER

Since: API Level 2.0

Constant Value: "_brush_size_jitter"

public static final String KEY_BRUSH_SPACING

Since: API Level 2.0

Constant Value: "_brush_spacing"

public static final String KEY_HAVE_BRUSH_PATTERN

Since: API Level 2.0

Constant Value: "_brush_have_pattern"

Public Constructors

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

Since: API Level 2.0

Public Methods

public boolean canPrefetchJitterBitmaps ()

Since: API Level 2.0

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

public float getAlphaMinimum ()

Since: API Level 2.0

public float getAngleJitter ()

Since: API Level 2.0

public Bitmap getBushPattern ()

Since: API Level 2.0

public List<Bitmap> getJitterBitmaps (float size)

Since: API Level 2.0

public float getOpacityJitter ()

Since: API Level 2.0

public float getSizeJitter ()

Since: API Level 2.0

public float getSpacing ()

Since: API Level 2.0

public void prefetchJitterBitmaps ()

Since: API Level 2.0

Protected Methods

protected boolean haveBrushPattern ()

Since: API Level 2.0

protected Bitmap preparePatternBrush ()

Since: API Level 2.0

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