public class

KpiView

extends AbstractEntityCell
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ com.sap.cloud.mobile.fiori.object.AbstractEntityCell
         ↳ com.sap.cloud.mobile.fiori.kpi.KpiView

Summary

[Expand]
Inherited XML Attributes
From class com.sap.cloud.mobile.fiori.object.AbstractEntityCell
[Expand]
Inherited Constants
From class com.sap.cloud.mobile.fiori.object.AbstractEntityCell
From class android.view.ViewGroup
From class android.view.View
Fields
protected float mCircleBottomMargin
protected float mCircleRadius
protected float mCircleStrokeWidth
protected TextPaint mHeadlinePaint
protected Drawable mIcon
protected float mIconBottomMargin
protected float mIconSize
protected boolean mIsProgressEnabled
protected CharSequence mLabel
protected int mLabelTextAppearance
protected CharSequence mLeftMetric
protected StaticLayout mLeftMetricLayout
protected StaticLayoutTextView mLeftMetricView
protected CharSequence mLeftUnit
protected StaticLayout mLeftUnitLayout
protected StaticLayoutTextView mLeftUnitView
protected int mMaxWidth
protected CharSequence mMetric
protected int mMetricProgressTextAppearance
protected int mMetricTextAppearance
protected int mMinWidth
protected CharSequence mRightUnit
protected StaticLayout mRightUnitLayout
protected StaticLayoutTextView mRightUnitView
protected TextPaint mSubheadlinePaint
protected float mTotalMetricUnitWidth
protected float mUnitBottomMargin
protected float mUnitHeight
protected float mUnitMargin
protected TextPaint mUnitPaint
protected int mUnitProgressTextAppearance
protected int mUnitTextAppearance
protected int mValueMaxWidth
[Expand]
Inherited Fields
From class com.sap.cloud.mobile.fiori.object.AbstractEntityCell
From class android.view.View
Public Constructors
KpiView(Context context)
KpiView(Context context, AttributeSet attrs)
KpiView(Context context, AttributeSet attrs, int defStyleAttr)
KpiView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public Methods
Paint getActivePaint()
TextPaint getHeadlinePaint()
Drawable getIcon()
Paint getInactivePaint()
boolean getIsProgressEnabled()
CharSequence getLabel()
int getLabelLines()
Gets the number of lines the label will take up.
CharSequence getLeftMetric()
View getLeftMetricView()
CharSequence getLeftUnit()
View getLeftUnitView()
CharSequence getMetric()
View getMetricView()
CharSequence getRightUnit()
View getRightUnitView()
TextPaint getSubheadlinePaint()
TextPaint getUnitPaint()
void setActivePaint(Paint paint)
void setActivePaintColor(int color)
void setHeadlineTextAppearance(int resId)
Sets the text color, size, style, hint color, and highlight color for headline from the specified TextAppearance resource.
void setIcon(Drawable drawable)
void setIconDescription(CharSequence description)
void setIconDescription(int resId)
void setInactivePaint(Paint paint)
void setInactivePaintColor(int color)
void setIsProgressEnabled(boolean isEnabled)
void setLabel(CharSequence label)
void setLeftMetric(CharSequence leftMetric)
void setLeftUnit(CharSequence leftUnit)
void setMaxWidth(int width)
void setMetric(CharSequence metric)
void setRightUnit(CharSequence rightUnit)
void setSubheadlineTextAppearance(int resId)
Sets the text color, size, style, hint color, and highlight color for subheadline from the specified TextAppearance resource.
void setUnitTextAppearance(int resId)
Protected Methods
void configureHeadlineLayout()
Configures headline layout
void configureLeftMetricLayout()
void configureLeftUnitLayout()
void configureRightUnitLayout()
void configureSubheadlineLayout()
Configures sub headline layout
void init()
void initializeStyledAttributes(AttributeSet attrs, int defStyle, int defStyleRes)
void onDraw(Canvas canvas)
void onLayout(boolean changed, int l, int t, int r, int b)
void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
[Expand]
Inherited Methods
From class com.sap.cloud.mobile.fiori.object.AbstractEntityCell
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource
From interface com.sap.cloud.mobile.fiori.object.KeylineProvider

Fields

protected float mCircleBottomMargin

protected float mCircleRadius

protected float mCircleStrokeWidth

protected TextPaint mHeadlinePaint

protected Drawable mIcon

protected float mIconBottomMargin

protected float mIconSize

protected boolean mIsProgressEnabled

protected CharSequence mLabel

protected int mLabelTextAppearance

protected CharSequence mLeftMetric

protected StaticLayout mLeftMetricLayout

protected StaticLayoutTextView mLeftMetricView

protected CharSequence mLeftUnit

protected StaticLayout mLeftUnitLayout

protected StaticLayoutTextView mLeftUnitView

protected int mMaxWidth

protected CharSequence mMetric

protected int mMetricProgressTextAppearance

protected int mMetricTextAppearance

protected int mMinWidth

protected CharSequence mRightUnit

protected StaticLayout mRightUnitLayout

protected StaticLayoutTextView mRightUnitView

protected TextPaint mSubheadlinePaint

protected float mTotalMetricUnitWidth

protected float mUnitBottomMargin

protected float mUnitHeight

protected float mUnitMargin

protected TextPaint mUnitPaint

protected int mUnitProgressTextAppearance

protected int mUnitTextAppearance

protected int mValueMaxWidth

Public Constructors

public KpiView (Context context)

public KpiView (Context context, AttributeSet attrs)

public KpiView (Context context, AttributeSet attrs, int defStyleAttr)

public KpiView (Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

Public Methods

public Paint getActivePaint ()

public TextPaint getHeadlinePaint ()

public Drawable getIcon ()

public Paint getInactivePaint ()

public boolean getIsProgressEnabled ()

public CharSequence getLabel ()

public int getLabelLines ()

Gets the number of lines the label will take up.

public CharSequence getLeftMetric ()

public View getLeftMetricView ()

public CharSequence getLeftUnit ()

public View getLeftUnitView ()

public CharSequence getMetric ()

public View getMetricView ()

public CharSequence getRightUnit ()

public View getRightUnitView ()

public TextPaint getSubheadlinePaint ()

public TextPaint getUnitPaint ()

public void setActivePaint (Paint paint)

public void setActivePaintColor (int color)

public void setHeadlineTextAppearance (int resId)

Sets the text color, size, style, hint color, and highlight color for headline from the specified TextAppearance resource.

public void setIcon (Drawable drawable)

public void setIconDescription (CharSequence description)

public void setIconDescription (int resId)

public void setInactivePaint (Paint paint)

public void setInactivePaintColor (int color)

public void setIsProgressEnabled (boolean isEnabled)

public void setLabel (CharSequence label)

public void setLeftMetric (CharSequence leftMetric)

public void setLeftUnit (CharSequence leftUnit)

public void setMaxWidth (int width)

public void setMetric (CharSequence metric)

public void setRightUnit (CharSequence rightUnit)

public void setSubheadlineTextAppearance (int resId)

Sets the text color, size, style, hint color, and highlight color for subheadline from the specified TextAppearance resource.

public void setUnitTextAppearance (int resId)

Protected Methods

protected void configureHeadlineLayout ()

Configures headline layout

protected void configureLeftMetricLayout ()

protected void configureLeftUnitLayout ()

protected void configureRightUnitLayout ()

protected void configureSubheadlineLayout ()

Configures sub headline layout

protected void init ()

protected void initializeStyledAttributes (AttributeSet attrs, int defStyle, int defStyleRes)

protected void onDraw (Canvas canvas)

protected void onLayout (boolean changed, int l, int t, int r, int b)

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)