com.androidplot.ui.widget
Class TextLabelWidget

java.lang.Object
  extended by com.androidplot.ui.widget.Widget
      extended by com.androidplot.ui.widget.TextLabelWidget
All Implemented Interfaces:
BoxModelable
Direct Known Subclasses:
DomainLabelWidget, RangeLabelWidget, TitleWidget, UserTextLabelWidget

public abstract class TextLabelWidget
extends Widget


Constructor Summary
TextLabelWidget(SizeMetrics sizeMetrics)
           
TextLabelWidget(SizeMetrics sizeMetrics, TextOrientationType orientation)
           
 
Method Summary
 void doOnDraw(android.graphics.Canvas canvas, android.graphics.RectF widgetRect)
           
 android.graphics.Paint getLabelPaint()
           
 TextOrientationType getOrientation()
           
 void pack()
          Sets the dimensions of the widget to exactly contain the text contents
 void setLabelPaint(android.graphics.Paint labelPaint)
           
 void setOrientation(TextOrientationType orientation)
           
 
Methods inherited from class com.androidplot.ui.widget.Widget
draw, getBackgroundPaint, getBorderPaint, getHeightMetric, getHeightPix, getMarginatedRect, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddedRect, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getWidthMetric, getWidthPix, isClippingEnabled, isDrawBackgroundEnabled, isDrawBorderEnabled, setBackgroundPaint, setBorderPaint, setClippingEnabled, setDrawBackgroundEnabled, setDrawBorderEnabled, setHeight, setHeight, setMarginBottom, setMarginLeft, setMarginRight, setMargins, setMarginTop, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setSize, setWidth, setWidth
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextLabelWidget

public TextLabelWidget(SizeMetrics sizeMetrics)

TextLabelWidget

public TextLabelWidget(SizeMetrics sizeMetrics,
                       TextOrientationType orientation)
Method Detail

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 onto
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.