瀏覽代碼

Update AAStates.kt

An An 3 年之前
父節點
當前提交
c6c6968184
共有 1 個文件被更改,包括 22 次插入0 次删除
  1. 22 0
      charts/src/main/java/com/github/aachartmodel/aainfographics/aaoptionsmodel/AAStates.kt

+ 22 - 0
charts/src/main/java/com/github/aachartmodel/aainfographics/aaoptionsmodel/AAStates.kt

@@ -11,6 +11,8 @@ package com.github.aachartmodel.aainfographics.aaoptionsmodel
 class AAStates {
     var hover: AAHover? = null
     var select: AASelect? = null
+    var inactive: AAInactive? = null
+
     fun hover(prop: AAHover?): AAStates {
         hover = prop
         return this
@@ -20,6 +22,11 @@ class AAStates {
         select = prop
         return this
     }
+
+    fun inactive(prop: AAInactive?): AAStates {
+        inactive = prop
+        return this
+    }
 }
 
 
@@ -102,3 +109,18 @@ class AAHalo {
         return this
     }
 }
+
+class AAInactive {
+    var enabled: Boolean? = null
+    var opacity: Number? = null
+    fun enabled(prop: Boolean?): AAInactive {
+        enabled = prop
+        return this
+    }
+
+    fun opacity(prop: Number?): AAInactive {
+        opacity = prop
+        return this
+    }
+}
+