Use of colors in accessible applications
Five to ten percent of all people have a deficiency in color vision known as “color blindness”. Most people can see colors to some degree, but not all people see colors in the same way. For example, people with Protan vision have difficulty seeing red, people with Deutan vision have difficulty seeing green, and people with Tritan vision have difficulty seeing blue. Avoid using certain color combinations in critical applications, because not all people can distinguish them. For such color blind users, you must use what is known as ““color picking””, which is the deliberate avoidance of colors that color blind users are unable to distinguish. Specifically, when you use a set of colors in a diagram or chart, you should avoid using red and green in the same display for red-green-blind users, but you can use a range of colors from blue to yellow. The same applies to using blue and yellow in displays for blue-yellow-blind users.
In accessible applications, the information that is presented by using colors is also presented in other ways. The colors that are used therefore become redundant and are known as ““redundant colors””. For example, JViews Gantt and schedule charts have a built-in table component that you can use to display the information normally represented by color in the Gantt sheet in a textual form. Different textures might be presented additionally for filling the activity bars, different symbol shapes might be used for milestones, or different line styles for constraint links.
You can provide alternative color schemes for color blind users in several different ways.
For example, for Gantt and schedule charts that use cascading style sheets (CSS), you can use a combination of:
A CSS file that specifies all properties other than colors.
A CSS file that specifies colors.
You can select the CSS file that specifies colors from three variants:
A variant for normal users
A variant for red-green blind users
A variant for blue-yellow blind users
For Gantt and schedule charts that do not use CSS, you can specify the colors through
IlvActivityRendererFactory and
IlvConstraintGraphicFactory that you set on the chart.
You can find a sample that illustrates the accessibility features of JViews Gantt in<installdir>/jviews-gantt/samples/accessibility.
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.