com.androidplot.ui.widget
Class Widget
java.lang.Object
com.androidplot.ui.widget.Widget
- Direct Known Subclasses:
- EmptyWidget, TextLabelWidget, XYGraphWidget, XYPlotLegendWidget
public abstract class Widget
- extends Object
Created by IntelliJ IDEA.
User: nfellows
Date: 12/29/10
Time: 3:39 PM
To change this template use File | Settings | File Templates.
Widget
public Widget(SizeMetric heightMetric,
SizeMetric widthMetric)
Widget
public Widget(SizeMetrics sizeMetrics)
setSize
public void setSize(SizeMetrics sizeMetrics)
setWidth
public void setWidth(float width)
setWidth
public void setWidth(float width,
SizeLayoutType layoutType)
setHeight
public void setHeight(float height)
setHeight
public void setHeight(float height,
SizeLayoutType layoutType)
getWidthMetric
public SizeMetric getWidthMetric()
getHeightMetric
public SizeMetric getHeightMetric()
getWidthPix
public float getWidthPix(float size)
getHeightPix
public float getHeightPix(float size)
setMarginRight
public void setMarginRight(float marginRight)
getMarginTop
public float getMarginTop()
setMarginTop
public void setMarginTop(float marginTop)
getMarginBottom
public float getMarginBottom()
setMarginBottom
public void setMarginBottom(float marginBottom)
getMarginLeft
public float getMarginLeft()
setMarginLeft
public void setMarginLeft(float marginLeft)
getMarginRight
public float getMarginRight()
draw
public void draw(android.graphics.Canvas canvas,
Dimension viewSize,
android.graphics.RectF widgetRect)
throws PlotRenderException
- Throws:
PlotRenderException
getBorderPaint
public android.graphics.Paint getBorderPaint()
setBorderPaint
public void setBorderPaint(android.graphics.Paint borderPaint)
getBackgroundPaint
public android.graphics.Paint getBackgroundPaint()
setBackgroundPaint
public void setBackgroundPaint(android.graphics.Paint backgroundPaint)
isDrawBorderEnabled
public boolean isDrawBorderEnabled()
setDrawBorderEnabled
public void setDrawBorderEnabled(boolean drawBorderEnabled)
isDrawBackgroundEnabled
public boolean isDrawBackgroundEnabled()
setDrawBackgroundEnabled
public void setDrawBackgroundEnabled(boolean drawBackgroundEnabled)
isClippingEnabled
public boolean isClippingEnabled()
setClippingEnabled
public void setClippingEnabled(boolean clippingEnabled)
Copyright © 2011. All Rights Reserved.