Class ChartTableData

java.lang.Object
be.gaudry.swing.component.table.tablechart.ChartTableData
All Implemented Interfaces:
Comparable<ChartTableData>

public class ChartTableData extends Object implements Comparable<ChartTableData>
Since:
1.0 Sep 2, 2009, 0.0.1-SNAPSHOT
Version:
%I%, %G%
Author:
Steph GAUDRY
  • Constructor Details

    • ChartTableData

      public ChartTableData(double value, String label, Color background, Color foreground)
      Parameters:
      value -
      label -
      background -
      foreground -
    • ChartTableData

      public ChartTableData(double value, String label, ContrastedColor color)
      Parameters:
      value -
      label -
      color -
    • ChartTableData

      public ChartTableData(double value, String label)
      Parameters:
      value -
      label -
    • ChartTableData

      public ChartTableData()
  • Method Details

    • getValue

      public double getValue()
      Returns:
      the value
    • setValue

      public void setValue(double value)
      Parameters:
      value - the value to set
    • getLabel

      public String getLabel()
      Returns:
      the label
    • setLabel

      public void setLabel(String label)
      Parameters:
      label - the label to set
    • getBackground

      public Color getBackground()
      Returns:
      the background
    • setBackground

      public void setBackground(Color background)
      Parameters:
      background - the background to set
    • getForeground

      public Color getForeground()
      Returns:
      the foreground
    • setForeground

      public void setForeground(Color foreground)
      Parameters:
      foreground - the foreground to set
    • compareTo

      public int compareTo(ChartTableData o)
      Specified by:
      compareTo in interface Comparable<ChartTableData>