public class TextLabelWidget extends Widget
Widget.Rotation| Constructor and Description |
|---|
TextLabelWidget(LayoutManager layoutManager,
Size size) |
TextLabelWidget(LayoutManager layoutManager,
Size size,
TextOrientation orientation) |
TextLabelWidget(LayoutManager layoutManager,
java.lang.String title,
Size size,
TextOrientation orientation) |
| Modifier and Type | Method and Description |
|---|---|
void |
doOnDraw(android.graphics.Canvas canvas,
android.graphics.RectF widgetRect)
Do not call this method directly.
|
android.graphics.Paint |
getLabelPaint() |
TextOrientation |
getOrientation() |
java.lang.String |
getText() |
boolean |
isAutoPackEnabled() |
protected void |
onMetricsChanged(Size olds,
Size news)
Can be overridden by subclasses to respond to resizing events.
|
void |
onPostInit()
Can be overridden by subclasses to handle any final resizing etc.
|
void |
pack()
Sets the dimensions of the widget to exactly contain the text contents
|
void |
setAutoPackEnabled(boolean autoPackEnabled) |
void |
setLabelPaint(android.graphics.Paint labelPaint) |
void |
setOrientation(TextOrientation orientation) |
void |
setText(java.lang.String text) |
applyRotation, calculateCoordinates, containsPoint, draw, drawBackground, drawBorder, getAnchor, getAnchorCoordinates, getAnchorCoordinates, getAnchorOffset, getBackgroundPaint, getBorderPaint, getHeightMetric, getHeightPix, getMarginatedRect, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddedRect, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPositionMetrics, getRotation, getSize, getWidgetDimensions, getWidthMetric, getWidthPix, isClippingEnabled, isVisible, layout, onResize, position, position, refreshLayout, setAnchor, setBackgroundPaint, setBorderPaint, setClippingEnabled, setHeight, setHeight, setMarginBottom, setMarginLeft, setMarginRight, setMargins, setMarginTop, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPositionMetrics, setRotation, setSize, setVisible, setWidth, setWidthpublic TextLabelWidget(LayoutManager layoutManager, Size size)
public TextLabelWidget(LayoutManager layoutManager, java.lang.String title, Size size, TextOrientation orientation)
public TextLabelWidget(LayoutManager layoutManager, Size size, TextOrientation orientation)
protected void onMetricsChanged(Size olds, Size news)
WidgetonMetricsChanged in class Widgetpublic void onPostInit()
WidgetonPostInit in class Widgetpublic void pack()
public void doOnDraw(android.graphics.Canvas canvas,
android.graphics.RectF widgetRect)
public android.graphics.Paint getLabelPaint()
public void setLabelPaint(android.graphics.Paint labelPaint)
public TextOrientation getOrientation()
public void setOrientation(TextOrientation orientation)
public boolean isAutoPackEnabled()
public void setAutoPackEnabled(boolean autoPackEnabled)
public void setText(java.lang.String text)
public java.lang.String getText()