-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a time range enum that controls how the graphs' x value range.
- Loading branch information
Showing
3 changed files
with
48 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...main/java/edu/ntnu/idi/idatt2003/g40/mappe/view/widgets/dashboard/DashBoardTimeRange.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| package edu.ntnu.idi.idatt2003.g40.mappe.view.widgets.dashboard; | ||
|
|
||
| public enum DashBoardTimeRange { | ||
| ONE_WEEK("1 Week", 1), | ||
| DEFAULT("22 Weeks (Default)", 22), | ||
| ONE_MONTH("1 Month", 4), | ||
| ONE_YEAR("1 Year", 52); | ||
|
|
||
| private final String label; | ||
| private final int weeks; | ||
|
|
||
| DashBoardTimeRange(final String label, final int weeks) { | ||
| this.label = label; this.weeks = weeks; | ||
| } | ||
|
|
||
| public int getWeeks() { | ||
| return weeks; | ||
| } | ||
|
|
||
| @Override | ||
| public String toString() { | ||
| return label; | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters