]> source.dussan.org Git - poi.git/commitdiff
Icon set / multi-state constants #58130
authorNick Burch <nick@apache.org>
Tue, 14 Jul 2015 22:33:05 +0000 (22:33 +0000)
committerNick Burch <nick@apache.org>
Tue, 14 Jul 2015 22:33:05 +0000 (22:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691100 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/ss/usermodel/IconMultiStateFormatting.java [new file with mode: 0644]

diff --git a/src/java/org/apache/poi/ss/usermodel/IconMultiStateFormatting.java b/src/java/org/apache/poi/ss/usermodel/IconMultiStateFormatting.java
new file mode 100644 (file)
index 0000000..1b70697
--- /dev/null
@@ -0,0 +1,66 @@
+/*\r
+ *  ====================================================================\r
+ *    Licensed to the Apache Software Foundation (ASF) under one or more\r
+ *    contributor license agreements.  See the NOTICE file distributed with\r
+ *    this work for additional information regarding copyright ownership.\r
+ *    The ASF licenses this file to You under the Apache License, Version 2.0\r
+ *    (the "License"); you may not use this file except in compliance with\r
+ *    the License.  You may obtain a copy of the License at\r
+ *\r
+ *        http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ *    Unless required by applicable law or agreed to in writing, software\r
+ *    distributed under the License is distributed on an "AS IS" BASIS,\r
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ *    See the License for the specific language governing permissions and\r
+ *    limitations under the License.\r
+ * ====================================================================\r
+ */\r
+\r
+package org.apache.poi.ss.usermodel;\r
+\r
+/**\r
+ * High level representation for the Icon / Multi-State Formatting \r
+ *  component of Conditional Formatting settings\r
+ */\r
+public interface IconMultiStateFormatting {\r
+    class IconSet {\r
+        public final int id;\r
+        public final String name;\r
+        public String toString() {\r
+            return id + " - " + (name==null?"default":name);\r
+        }\r
+        private IconSet(int id, String name) {\r
+            this.id = id; this.name = name;\r
+        }\r
+    }\r
+    /** Green Up / Yellow Side / Red Down arrows */\r
+    static final IconSet GYR_3_ARROWS = new IconSet(0, "3Arrows");\r
+    /** Grey Up / Side / Down arrows */\r
+    static final IconSet GREY_3_ARROWS = new IconSet(1, "3ArrowsGray");\r
+    /** Green / Yellow / Red flags */\r
+    static final IconSet GYR_3_FLAGS = new IconSet(2, "3Flags");\r
+    /** Green / Yellow / Red traffic lights (no background) */\r
+    static final IconSet GYR_3_TRAFFIC_LIGHTS = new IconSet(3, null);\r
+    /** Green Circle / Yellow Triangle / Red Diamond */ \r
+    static final IconSet GYR_3_SHAPES = new IconSet(4, "3Signs");\r
+    /** Green / Yellow / Red traffic lights on a black square background */\r
+    static final IconSet GYR_3_TRAFFIC_LIGHTS_BOX = new IconSet(5, "3TrafficLights2");\r
+    /** Green Tick / Yellow ! / Red Cross on a circle background */\r
+    static final IconSet GYR_3_SYMBOLS_CIRCLE = new IconSet(6, "3Symbols");\r
+    /** Green Tick / Yellow ! / Red Cross (no background) */\r
+    static final IconSet GYR_3_SYMBOLS = new IconSet(7, "3Symbols2");\r
+    /** Green Up / Yellow NE / Yellow SE / Red Down arrows */\r
+    static final IconSet GYR_4_ARROWS = new IconSet(8, "4Arrows");\r
+    /** Grey Up / NE / SE / Down arrows */\r
+    static final IconSet GREY_4_ARROWS = new IconSet(9, "4ArrowsGray");\r
+    /** Red / Light Red / Grey / Black traffic lights */\r
+    static final IconSet RB_4_TRAFFIC_LIGHTS = new IconSet(0xA, "4RedToBlack");\r
+    static final IconSet RATINGS_4 = new IconSet(0xB, "4Rating");\r
+    /** Green / Yellow / Red / Black traffic lights */\r
+    static final IconSet GYRB_4_TRAFFIC_LIGHTS = new IconSet(0xC, "4TrafficLights");\r
+    static final IconSet GYYYR_5_ARROWS = new IconSet(0xD, "5Arrows");\r
+    static final IconSet GREY_5_ARROWS = new IconSet(0xE, "5ArrowsGray");\r
+    static final IconSet RATINGS_5 = new IconSet(0xF, "5Rating");\r
+    static final IconSet QUARTERS_5 = new IconSet(0x10, "5Quarters");\r
+}\r