Class AnalyticsView

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible

public class AnalyticsView extends JPanel implements PropertyChangeListener
Panel providing comparison of current user's weekly times with other Rachota users and analytics summary and recommendations.
See Also:
  • Field Details

    • SCALE_PAST_WEEK

      public static final int SCALE_PAST_WEEK
      Index of past week scale
      See Also:
    • SCALE_PAST_MONTH

      public static final int SCALE_PAST_MONTH
      Index of past month scale
      See Also:
    • SCALE_WHOLE_TIME

      public static final int SCALE_WHOLE_TIME
      Index of whole time scale
      See Also:
  • Constructor Details

    • AnalyticsView

      public AnalyticsView()
      Creates new HistoryView panel charts and table.
  • Method Details

    • getFont

      public Font getFont()
      Returns font that should be used for all widgets in this component based on the language preferences specified by user.
      Specified by:
      getFont in interface MenuContainer
      Overrides:
      getFont in class Component
      Returns:
      Font to be used in this component.
    • updateChart

      public void updateChart()
      Downloads working times of other users and updates comparison chart.
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Method called when some setting has changed.
      Specified by:
      propertyChange in interface PropertyChangeListener
      Parameters:
      evt - Event describing what was changed.
    • getWeeklyAnalysis

      public String getWeeklyAnalysis()
      Returns all efficiency factors as a text separated by | character.
      Returns:
      All efficiency factors as a text separated by | character.