| | |
| | | setText("Text offset", ""); |
| | | setText("Text cycle", ""); |
| | | setText("Text elapsed", ""); |
| | | |
| | | setAttribute(background, "display", "inline"); |
| | | |
| | | try |
| | | { |
| | | if (art.client.models.Shared.configuration.general.darkMap == true) |
| | |
| | | setAttribute(border, "fill", "#808080", 999); |
| | | setAttribute(background, "fill", "#808080", 999); |
| | | setAttribute(ribbon, "stroke", "#808080", 999); |
| | | setAttribute(background, "display", "inline"); |
| | | } else |
| | | { |
| | | boolean semiactuated = controllerStatus.rtz32.general.semiactuated; |
| | |
| | | } |
| | | if (device.getAlarm("alarm_controller_offline") <= 0 && device.getAlarm("alarm_offline") <= 0) |
| | | { |
| | | if (art.library.model.devices.colors.controller.RTZ32.RTZ32_Controller.class.cast(device).getDeviceAlarms().rtz32.flashing.getServerityAlarm() > 0) |
| | | if (art.library.model.devices.colors.controller.RTZ32.RTZ32_Controller.class.cast(device).getDeviceStatus().rtz32.general.state == controllerStatus.rtz32.general.STATE_FLASHING) |
| | | { |
| | | setAttribute(background, "fill", "#FFFF00", 999); |
| | | setAttribute(ribbon, "stroke", "#FFFF00", 999); |
| | |
| | | } |
| | | } |
| | | java.awt.Color bckColor = java.awt.Color.decode(background.getStyleAbsolute("fill").getStringValue()); |
| | | java.awt.Color darkerColor = bckColor.darker(); |
| | | String darkHex = String.format("#%02x%02x%02x", darkerColor.darker().getRed(), darkerColor.darker().getGreen(), darkerColor.darker().getBlue()); |
| | | java.awt.Color darkerColor = java.awt.Color.BLACK; |
| | | String darkHex = String.format("#%02x%02x%02x", darkerColor.getRed(),darkerColor.getBlue(),darkerColor.getGreen()); |
| | | setAttribute("Text information", "fill", darkHex, 999); |
| | | setAttribute("Text offset", "fill", darkHex, 999); |
| | | setAttribute("Text cycle", "fill", darkHex, 999); |