Class JSparklinesMultiLabelTableCellRenderer

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
no.uib.jsparklines.renderers.JSparklinesMultiLabelTableCellRenderer
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, TableCellRenderer

public class JSparklinesMultiLabelTableCellRenderer
extends JPanel
implements TableCellRenderer
Table cell renderer for 1-4 color labels displayed either a pie chart or as equal parts of a square. Supported input: JSparklinesMultiLabelDataset objects. Other object types are rendered using the DefaultTableCellRenderer.
Author:
Harald Barsnes
See Also:
JSparklinesMultiLabelDemo, Serialized Form
  • Constructor Details

  • Method Details

    • setCircle

      public void setCircle​(boolean circle)
      If true a pie chart is used to display the label colors, false uses a square. False is the default.
      Parameters:
      circle - if true, a pie chart is used to display the label colors, false uses a square
    • setBackgroundColor

      public void setBackgroundColor​(Color plotBackgroundColor)
      Set the plot background color.
      Parameters:
      plotBackgroundColor - the plot background color
    • getTableCellRendererComponent

      public Component getTableCellRendererComponent​(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
      Specified by:
      getTableCellRendererComponent in interface TableCellRenderer