com.androidplot.xy
Class XYLegendWidget
java.lang.Object
com.androidplot.ui.widget.Widget
com.androidplot.xy.XYLegendWidget
- All Implemented Interfaces:
- BoxModelable, Resizable
public class XYLegendWidget
- extends Widget
Methods inherited from class com.androidplot.ui.widget.Widget |
containsPoint, draw, getAnchor, getAnchorCoordinates, getAnchorCoordinates, getAnchorOffset, getBackgroundPaint, getBorderPaint, getElementCoordinates, getHeightMetric, getHeightPix, getMarginatedRect, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddedRect, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPositionMetrics, getWidgetDimensions, getWidthMetric, getWidthPix, isClippingEnabled, isVisible, layout, onPostInit, position, position, refreshLayout, setAnchor, setBackgroundPaint, setBorderPaint, setClippingEnabled, setHeight, setHeight, setMarginBottom, setMarginLeft, setMarginRight, setMargins, setMarginTop, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPositionMetrics, setSize, setVisible, setWidth, setWidth |
XYLegendWidget
public XYLegendWidget(LayoutManager layoutManager,
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 © 2010-2013 androidplot.com. All Rights Reserved.