com.androidplot.xy
Class XYLegendWidget

java.lang.Object
  extended by com.androidplot.ui.widget.Widget
      extended by com.androidplot.xy.XYLegendWidget
All Implemented Interfaces:
BoxModelable, Resizable

public class XYLegendWidget
extends Widget


Constructor Summary
XYLegendWidget(LayoutManager layoutManager, XYPlot plot, SizeMetrics widgetSizeMetrics, TableModel tableModel, SizeMetrics iconSizeMetrics)
           
 
Method Summary
 SizeMetrics getIconSizeMetrics()
           
 TableModel getTableModel()
           
 android.graphics.Paint getTextPaint()
           
 boolean isDrawIconBackgroundEnabled()
           
 boolean isDrawIconBorderEnabled()
           
 void setDrawIconBackgroundEnabled(boolean drawIconBackgroundEnabled)
           
 void setDrawIconBorderEnabled(boolean drawIconBorderEnabled)
           
 void setIconSizeMetrics(SizeMetrics iconSizeMetrics)
          Set the size of each legend's icon.
 void setTableModel(TableModel tableModel)
           
 void setTextPaint(android.graphics.Paint textPaint)
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XYLegendWidget

public XYLegendWidget(LayoutManager layoutManager,
                      XYPlot plot,
                      SizeMetrics widgetSizeMetrics,
                      TableModel tableModel,
                      SizeMetrics iconSizeMetrics)
Method Detail

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.