ColorColors are used in the definition of TypeDisplayStyles, DiagramStyles, TextStyles and LineStyles. A Color is a pair of Red Green Blue (RGB) values. Because color is used to indicate selection in AgileJ StructureViews it is necessary to define a normal (deselected) RGB and a strong (selected) RGB in every case. The only exception is when a color is referenced as the diagram canvas color in which case the strong RGB applies to the center and the normal RGB applies to the surround. The red green and blue values are expressed as three numbers in the range 0 to 255. Example:
Note that a color is never declared in isolation, rather it forms part of the declaration of a TypeDisplayStyle FieldOrMethodDisplayStyle or a DiagramStyle. There will be more declarations of Colors in the examples which follow. |