ColorPalette
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
确定用于“通用空气质量指数”(UAQI) 所提供数据的调色板。此调色板只与 UAQI 相关,其他 AQI 有无法控制的预定调色板。
枚举 |
COLOR_PALETTE_UNSPECIFIED |
默认值。如果作为参数传递,则忽略。 |
RED_GREEN |
确定是否使用红/绿调色板。 |
INDIGO_PERSIAN_DARK |
确定是否使用靛蓝色/波斯色调色板(深色主题)。 |
INDIGO_PERSIAN_LIGHT |
确定是否使用靛蓝色/波斯色调色板(浅色主题)。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eDefines the color scheme applied to data from the "Universal Air Quality Index" (UAQI).\u003c/p\u003e\n"],["\u003cp\u003eOffers a choice between a red/green palette or two indigo/persian palettes (one for dark themes and one for light themes).\u003c/p\u003e\n"],["\u003cp\u003eThis color palette selection only affects UAQI data visualization and does not apply to other AQIs, which use their own predetermined color palettes.\u003c/p\u003e\n"]]],[],null,["# ColorPalette\n\nDetermines the color palette used for the data provided by the \"Universal Air Quality Index\" (UAQI). This color palette is relevant just for UAQI, other AQIs have a predetermined color palette that can't be controlled.\n\n| Enums ||\n|-----------------------------|-------------------------------------------------------------------|\n| `COLOR_PALETTE_UNSPECIFIED` | The default value. Ignored if passed as a parameter. |\n| `RED_GREEN` | Determines whether to use a red/green palette. |\n| `INDIGO_PERSIAN_DARK` | Determines whether to use a indigo/persian palette (dark theme). |\n| `INDIGO_PERSIAN_LIGHT` | Determines whether to use a indigo/persian palette (light theme). |"]]