public interface AttributeStrategy
| Modifier and Type | Method and Description |
|---|---|
int[] |
enforceAttributeRule(int[] mostPopularColour,
int[] secondMostPopularColour)
Enforce the rule by modifying the rgb component objects
and changing the attribute colour set they are from *if
necessary* (i.e.
|
boolean |
isBrightSet(int mostPopularColour,
int secondMostPopularColour)
Similar to ColorHelper.isBrightSet but uses the strategy
implementation to determine whether *both* colours should
be in the bright or half bright set.
|
int[] enforceAttributeRule(int[] mostPopularColour,
int[] secondMostPopularColour)
mostPopularColour - secondMostPopularColour - boolean isBrightSet(int mostPopularColour,
int secondMostPopularColour)
mostPopularColour - secondMostPopularColour - ColourHelper.isBrightSet(int)