com.androidplot.ui.widget
Class TextLabelWidget
java.lang.Object
com.androidplot.ui.widget.Widget
com.androidplot.ui.widget.TextLabelWidget
- Direct Known Subclasses:
- DomainLabelWidget, RangeLabelWidget, TitleWidget, UserTextLabelWidget
public abstract class TextLabelWidget
- extends Widget
Methods inherited from class com.androidplot.ui.widget.Widget |
draw, getBackgroundPaint, getBorderPaint, getHeightMetric, getHeightPix, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getWidthMetric, getWidthPix, isClippingEnabled, isDrawBackgroundEnabled, isDrawBorderEnabled, setBackgroundPaint, setBorderPaint, setClippingEnabled, setDrawBackgroundEnabled, setDrawBorderEnabled, setHeight, setHeight, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, 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,
Dimension viewSize,
android.graphics.RectF widgetRect)
- Parameters:
canvas
- The Canvas to draw ontoviewSize
- Actual size of the View (Plot)widgetRect
- 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.