parent
1b486e0ae7
commit
3e257e0905
@ -0,0 +1,12 @@ |
|||||||
|
package net.pokeranalytics.android.calcul |
||||||
|
|
||||||
|
import net.pokeranalytics.android.calculus.AggregationType |
||||||
|
import net.pokeranalytics.android.ui.graph.Graph |
||||||
|
|
||||||
|
val AggregationType.axisFormatting: Graph.AxisFormatting |
||||||
|
get() { |
||||||
|
return when (this) { |
||||||
|
AggregationType.DURATION -> Graph.AxisFormatting.X_DURATION |
||||||
|
else -> Graph.AxisFormatting.DEFAULT |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,17 @@ |
|||||||
|
package net.pokeranalytics.android.ui.graph |
||||||
|
|
||||||
|
interface Graph { |
||||||
|
|
||||||
|
enum class Style { |
||||||
|
LINE, |
||||||
|
BAR, |
||||||
|
MULTILINE, |
||||||
|
} |
||||||
|
|
||||||
|
enum class AxisFormatting { |
||||||
|
DEFAULT, |
||||||
|
X_DURATION, |
||||||
|
Y_DURATION, |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
Loading…
Reference in new issue