com.androidplot.ui.widget
Class TextLabelWidget
java.lang.Object
com.androidplot.ui.widget.Widget
com.androidplot.ui.widget.TextLabelWidget
- All Implemented Interfaces:
- BoxModelable
- Direct Known Subclasses:
- DomainLabelWidget, RangeLabelWidget, TitleWidget, UserTextLabelWidget
public abstract class TextLabelWidget
- extends Widget
Methods inherited from class com.androidplot.ui.widget.Widget |
containsPoint, draw, getBackgroundPaint, getBorderPaint, getHeightMetric, getHeightPix, getMarginatedRect, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getOutlineRect, getPaddedRect, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getWidthMetric, getWidthPix, isClippingEnabled, setBackgroundPaint, setBorderPaint, setClippingEnabled, setHeight, setHeight, setMarginBottom, setMarginLeft, setMarginRight, setMargins, setMarginTop, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setSize, setWidth, setWidth |
TextLabelWidget
public TextLabelWidget(SizeMetrics sizeMetrics)
TextLabelWidget
public TextLabelWidget(SizeMetrics sizeMetrics,
TextOrientationType orientation)
pack
public void pack()
- Sets the dimensions of the widget to exactly contain the text contents
doOnDraw
public void doOnDraw(android.graphics.Canvas canvas,
android.graphics.RectF widgetRect)
- Parameters:
canvas
- The Canvas to draw ontowidgetRect
- the size and coordinates of this widget
getLabelPaint
public android.graphics.Paint getLabelPaint()
setLabelPaint
public void setLabelPaint(android.graphics.Paint labelPaint)
getOrientation
public TextOrientationType getOrientation()
setOrientation
public void setOrientation(TextOrientationType orientation)
Copyright © 2011. All Rights Reserved.