瀏覽代碼

Create AADateTimeLabelFormats.kt

An An 3 年之前
父節點
當前提交
e3d353d1ac

+ 52 - 0
charts/src/main/java/com/github/aachartmodel/aainfographics/aaoptionsmodel/AADateTimeLabelFormats.kt

@@ -0,0 +1,52 @@
+package com.github.aachartmodel.aainfographics.aaoptionsmodel
+
+class AADateTimeLabelFormats {
+    var millisecond: String? = null
+    var second: String? = null
+    var minute: String? = null
+    var hour: String? = null
+    var day: String? = null
+    var week: String? = null
+    var month: String? = null
+    var year: String? = null
+
+    fun millisecond(prop: String?): AADateTimeLabelFormats {
+        millisecond = prop
+        return this
+    }
+
+    fun second(prop: String?): AADateTimeLabelFormats {
+        second = prop
+        return this
+    }
+
+    fun minute(prop: String?): AADateTimeLabelFormats {
+        minute = prop
+        return this
+    }
+
+    fun hour(prop: String?): AADateTimeLabelFormats {
+        hour = prop
+        return this
+    }
+
+    fun day(prop: String?): AADateTimeLabelFormats {
+        day = prop
+        return this
+    }
+
+    fun week(prop: String?): AADateTimeLabelFormats {
+        week = prop
+        return this
+    }
+
+    fun month(prop: String?): AADateTimeLabelFormats {
+        month = prop
+        return this
+    }
+
+    fun year(prop: String?): AADateTimeLabelFormats {
+        year = prop
+        return this
+    }
+}