// If element is a combi operator type and the element was found as a source,
// set the secondary understandability color instead of the standard one
if ((element.m_elementType == 1)&&
(highlightElement instanceof CombiOperatorTransitionModel))
{
CombiOperatorTransitionModel combiOperator =
(CombiOperatorTransitionModel)highlightElement;
combiOperator.setSecondaryUnderstandabilityColor(newColor);
}
else
{
highlightElement.setColor(newColor);
// Special treatment for non-workflow net detection:
// All combi operators will need to have their secondary color
// set even though they have not been detected to work as a sink.
// The reason is that in non-workflow net detection mode
// there is no information about whether the operator was a source or a sink
// so it should consistently be displayed with the same color
if ((ConfigurationManager.getConfiguration().getAlgorithmMode() != 0)&&
(highlightElement instanceof CombiOperatorTransitionModel))
{
CombiOperatorTransitionModel combiOperator =
(CombiOperatorTransitionModel)highlightElement;
combiOperator.setSecondaryUnderstandabilityColor(newColor);
}
}
}
currentColorNum++;
// infinite loop over all colors