Problem with AdaptedGradientColoredAreas [message #1697589] |
Fri, 05 June 2015 08:08  |
|
The GFAbstractShape doesn't handle IPredefinedRenderingStyle.STYLE_ADAPTATION_ACTION_ALLOWED
IPredefinedRenderingStyle.STYLE_ADAPTATION_ACTION_FORBIDDEN properly.
Why is that code commented? I tried to uncomment it, and it works.
private int getStyleAdaptation() {
int styleAdaptation = IPredefinedRenderingStyle.STYLE_ADAPTATION_DEFAULT;
int selectionFeedback = getVisualState().getSelectionFeedback();
if (selectionFeedback == IVisualState.SELECTION_PRIMARY)
styleAdaptation = IPredefinedRenderingStyle.STYLE_ADAPTATION_PRIMARY_SELECTED;
else if (selectionFeedback == IVisualState.SELECTION_SECONDARY)
styleAdaptation = IPredefinedRenderingStyle.STYLE_ADAPTATION_SECONDARY_SELECTED;
int actionTargetFeedback = getVisualState().getActionTargetFeedback();
// if (actionTargetFeedback == IVisualState.ACTION_TARGET_ALLOWED)
// styleAdaptation =
// IPredefinedRenderingStyle.STYLE_ADAPTATION_ACTION_ALLOWED;
// else if (actionTargetFeedback ==
// IVisualState.ACTION_TARGET_FORBIDDEN)
// styleAdaptation =
// IPredefinedRenderingStyle.STYLE_ADAPTATION_ACTION_FORBIDDEN;
// TODO why is every actionTargetFeedback folded to
// STYLE_ADAPTATION_SECONDARY_SELECTED?
//
if (actionTargetFeedback == IVisualState.ACTION_TARGET_ALLOWED)
styleAdaptation = IPredefinedRenderingStyle.STYLE_ADAPTATION_SECONDARY_SELECTED;
return styleAdaptation;
}
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04199 seconds