public float getFacetStrength(ComponentStateFacet stateFacet) { float result = 0.0f; for (Map.Entry<ComponentState, StateContributionInfo> activeEntry : this.modelStateInfo.stateContributionMap .entrySet()) { ComponentState activeState = activeEntry.getKey(); if (activeState.isFacetActive(stateFacet)) { result += activeEntry.getValue().getContribution(); } } return result; }
public float getFacetStrength(ComponentStateFacet stateFacet) { float result = 0.0f; for (Map.Entry<ComponentState, StateContributionInfo> activeEntry : this.modelStateInfo.stateContributionMap .entrySet()) { ComponentState activeState = activeEntry.getKey(); if (activeState.isFacetActive(stateFacet)) { result += activeEntry.getValue().getContribution(); } } return result; }
void sync() { this.activeStrength = 0.0f; for (Map.Entry<ComponentState, StateContributionInfo> activeEntry : this.stateContributionMap .entrySet()) { ComponentState activeState = activeEntry.getKey(); if (activeState.isActive()) { this.activeStrength += activeEntry.getValue() .getContribution(); } } }
.entrySet()) { float contribution = activeEntry.getValue() .getContribution(); if (contribution == 0.0f) continue;
float contribution = activeEntry.getValue().getContribution(); if (contribution == 0.0f) continue;
continue; float contribution = activeEntry.getValue().getContribution(); if (contribution == 0.0f) continue;
continue; float contribution = activeEntry.getValue().getContribution(); if (contribution == 0.0f) continue;
continue; float contribution = activeEntry.getValue().getContribution(); if (contribution == 0.0f) continue;
float contribution = activeEntry.getValue().getContribution(); if (contribution == 0.0f) continue;
.entrySet()) { ComponentState activeState = activeEntry.getKey(); float alpha = activeEntry.getValue().getContribution(); SubstanceColorScheme activeColorScheme = SubstanceColorSchemeUtilities .getColorScheme(component, activeState);
.entrySet()) { ComponentState activeState = activeEntry.getKey(); float alpha = activeEntry.getValue().getContribution(); SubstanceColorScheme activeColorScheme = SubstanceColorSchemeUtilities .getColorScheme(comp, ColorSchemeAssociationKind.MARK,
continue; float contribution = activeEntry.getValue().getContribution(); if (contribution == 0.0f) continue;
.entrySet()) { ComponentState activeState = activeEntry.getKey(); float alpha = activeEntry.getValue().getContribution(); ColorSchemeAssociationKind assocKind = ColorSchemeAssociationKind.FILL;
.entrySet()) { ComponentState activeState = activeEntry.getKey(); float alpha = activeEntry.getValue().getContribution(); SubstanceColorScheme activeColorScheme = SubstanceColorSchemeUtilities .getColorScheme(comp, ColorSchemeAssociationKind.MARK,
.entrySet()) { ComponentState activeState = activeEntry.getKey(); float alpha = activeEntry.getValue().getContribution(); SubstanceColorScheme activeColorScheme = SubstanceColorSchemeUtilities .getColorScheme(component, activeState);
.entrySet()) { ComponentState activeState = activeEntry.getKey(); float alpha = activeEntry.getValue().getContribution(); ColorSchemeAssociationKind assocKind = ColorSchemeAssociationKind.FILL;
continue; float contribution = stateEntry.getValue().getContribution(); if (contribution == 0.0f) continue;
continue; float contribution = activeEntry.getValue().getContribution(); if (contribution == 0.0f) continue;
@Override protected Color getPaintColor(JXTaskPane group) { StateTransitionTracker.ModelStateInfo modelStateInfo = stateTransitionTracker .getModelStateInfo(); Map<ComponentState, StateTransitionTracker.StateContributionInfo> activeStates = modelStateInfo .getStateContributionMap(); ComponentState currState = stateTransitionTracker .getModelStateInfo().getCurrModelState(); if (currState.isDisabled() || (activeStates.size() == 1)) return getColorSchemeForState(group, currState) .getForegroundColor(); float aggrRed = 0; float aggrGreen = 0; float aggrBlue = 0; for (Map.Entry<ComponentState, StateTransitionTracker.StateContributionInfo> activeEntry : modelStateInfo .getStateContributionMap().entrySet()) { ComponentState activeState = activeEntry.getKey(); SubstanceColorScheme scheme = getColorSchemeForState(group, activeState); Color schemeFg = scheme.getForegroundColor(); float contribution = activeEntry.getValue().getContribution(); aggrRed += schemeFg.getRed() * contribution; aggrGreen += schemeFg.getGreen() * contribution; aggrBlue += schemeFg.getBlue() * contribution; } return new Color((int) aggrRed, (int) aggrGreen, (int) aggrBlue); }
void sync() { this.activeStrength = 0.0f; for (Map.Entry<ComponentState, StateContributionInfo> activeEntry : this.stateContributionMap .entrySet()) { ComponentState activeState = activeEntry.getKey(); if (activeState.isActive()) { this.activeStrength += activeEntry.getValue() .getContribution(); } } }