com.androidplot.xy
Class XYLegendWidget
java.lang.Object
com.androidplot.ui.widget.Widget
com.androidplot.xy.XYLegendWidget
- All Implemented Interfaces:
- BoxModelable
public class XYLegendWidget
- 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 |
XYLegendWidget
public XYLegendWidget(XYPlot plot,
SizeMetrics widgetSizeMetrics,
TableModel tableModel,
SizeMetrics iconSizeMetrics)
setTableModel
public void setTableModel(TableModel tableModel)
getTextPaint
public android.graphics.Paint getTextPaint()
setTextPaint
public void setTextPaint(android.graphics.Paint textPaint)
isDrawIconBackgroundEnabled
public boolean isDrawIconBackgroundEnabled()
setDrawIconBackgroundEnabled
public void setDrawIconBackgroundEnabled(boolean drawIconBackgroundEnabled)
isDrawIconBorderEnabled
public boolean isDrawIconBorderEnabled()
setDrawIconBorderEnabled
public void setDrawIconBorderEnabled(boolean drawIconBorderEnabled)
getTableModel
public TableModel getTableModel()
getIconSizeMetrics
public SizeMetrics getIconSizeMetrics()
setIconSizeMetrics
public void setIconSizeMetrics(SizeMetrics iconSizeMetrics)
- Set the size of each legend's icon. Note that when using relative sizing,
the size is calculated against the countaining cell's size, not the plot's size.
- Parameters:
iconSizeMetrics
-
Copyright © 2011. All Rights Reserved.