Event colors that are configured at the component level, apply to the current schedule. You use facets to configure these
colors. Facet-configured event colors override any colors globally sourced from schedule lexicon keys (if applicable), as
well as default colors.
Prerequisites: Your schedule exists in the station.
This procedure uses the
EnumSchedule as an example.
Perform the following steps:
- Expand , right-click EnumSchedule and click .
- To open the Config Facets window, click the
Facets chevron (
).The
Config Facets window opens.
- To add a new key for colors, click
.The framework adds a row to the table.
- Specify the following properties:
- For Key, enter the word colors in the key column.
- For Type, select
EnumRange from the drop-down list.
The framework updates the row in the table.
- To define the range of colors for enum schedules, click
at the right end of the row.
- To open the Enum window, click
.
- To add facet entries for colors click the left-side (Ordinal) field and enter a number, then in the right-side field enter
either a color name or color code and click Add.
The framework adds the color definition as a row in the enum facets table.
The example above shows colors assigned to two enum states corresponding to ordinals 1 and 2. For BooleanSchedules, the ordinals used are 0 (false) and 1 (true). For numeric and string schedules use the ordinal value 0 (bajaux only).
- After defining all the colors you need (enum facets can assign many different colors), return to the Config Facets window by clicking OK.
The framework displays the color values you added in the Value column of the table.
- To return to the schedule’s Property Sheet click OK, then, to save the Property Sheet, click Save.
The schedule immediately reflects the new event colors. Each enum schedule supports a total of 14 colors beginning with zero
(0). If you specify an ordinal number greater than 13, the assigned colors repeat beginning with the color associated with
zero (0).
Ordinal Value, Color
0, dark red
1, dark green
2, dark purple
3, dark blue
4, dark indigo
5, dark orange
6, gray
7, red
8, green
9, purple
10, blue
11, indigo
12, orange
13, khaki
null, silver gray
14, repeat 0
15, repeat 1