Build 1.0_r1(from source)

android.graphics.drawable
Class GradientDrawable.GradientState

java.lang.Object
  extended by android.graphics.drawable.Drawable.ConstantState
      extended by android.graphics.drawable.GradientDrawable.GradientState
Enclosing class:
GradientDrawable

static final class GradientDrawable.GradientState
extends Drawable.ConstantState


Field Summary
 int mChangingConfigurations
           
 int[] mColors
           
 int mGradient
           
 boolean mHasSolidColor
           
 int mHeight
           
 float mInnerRadius
           
 GradientDrawable.Orientation mOrientation
           
 Rect mPadding
           
 float[] mPositions
           
 float mRadius
           
 float[] mRadiusArray
           
 int mShape
           
 int mSolidColor
           
 int mStrokeColor
           
 float mStrokeDashGap
           
 float mStrokeDashWidth
           
 int mStrokeWidth
           
 float mThickness
           
 int mWidth
           
 
Constructor Summary
GradientDrawable.GradientState()
           
GradientDrawable.GradientState(GradientDrawable.Orientation orientation, int[] colors)
           
 
Method Summary
 int getChangingConfigurations()
           
 Drawable newDrawable()
           
 void setCornerRadii(float[] radii)
           
 void setCornerRadius(float radius)
           
 void setGradientCenter(float x, float y)
           
 void setGradientRadius(float gradientRadius)
           
 void setGradientType(int gradient)
           
 void setShape(int shape)
           
 void setSize(int width, int height)
           
 void setSolidColor(int argb)
           
 void setStroke(int width, int color)
           
 void setStroke(int width, int color, float dashWidth, float dashGap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mChangingConfigurations

public int mChangingConfigurations

mShape

public int mShape

mGradient

public int mGradient

mOrientation

public GradientDrawable.Orientation mOrientation

mColors

public int[] mColors

mPositions

public float[] mPositions

mHasSolidColor

public boolean mHasSolidColor

mSolidColor

public int mSolidColor

mStrokeWidth

public int mStrokeWidth

mStrokeColor

public int mStrokeColor

mStrokeDashWidth

public float mStrokeDashWidth

mStrokeDashGap

public float mStrokeDashGap

mRadius

public float mRadius

mRadiusArray

public float[] mRadiusArray

mPadding

public Rect mPadding

mWidth

public int mWidth

mHeight

public int mHeight

mInnerRadius

public float mInnerRadius

mThickness

public float mThickness
Constructor Detail

GradientDrawable.GradientState

GradientDrawable.GradientState()

GradientDrawable.GradientState

GradientDrawable.GradientState(GradientDrawable.Orientation orientation,
                               int[] colors)
Method Detail

newDrawable

public Drawable newDrawable()
Specified by:
newDrawable in class Drawable.ConstantState

getChangingConfigurations

public int getChangingConfigurations()
Specified by:
getChangingConfigurations in class Drawable.ConstantState

setShape

public void setShape(int shape)

setGradientType

public void setGradientType(int gradient)

setGradientCenter

public void setGradientCenter(float x,
                              float y)

setSolidColor

public void setSolidColor(int argb)

setStroke

public void setStroke(int width,
                      int color)

setStroke

public void setStroke(int width,
                      int color,
                      float dashWidth,
                      float dashGap)

setCornerRadius

public void setCornerRadius(float radius)

setCornerRadii

public void setCornerRadii(float[] radii)

setSize

public void setSize(int width,
                    int height)

setGradientRadius

public void setGradientRadius(float gradientRadius)

Build 1.0_r1(from source)

Please submit a feedback, bug or feature