Class ComparisonChart

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ComparisonChart extends JPanel
Chart showing comparison of current user's usage times with other Rachota users.
See Also:
  • Constructor Details

    • ComparisonChart

      public ComparisonChart()
      Creates a new comparison chart.
  • Method Details

    • paint

      public void paint(Graphics graphics)
      Draws the pie chart given set share.
      Overrides:
      paint in class JComponent
      Parameters:
      graphics - Graphics area where the chart should be drawn.
    • setTimes

      public void setTimes(long totalTimeUser, long totalTimeAll, long idleTimeUser, long idleTimeAll, long privateTimeUser, long privateTimeAll)