|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AttributeStrategy
Interface to enforce an attribute choice strategy
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
int[] enforceAttributeRule(int[] mostPopularColour,
int[] secondMostPopularColour)
mostPopularColour - secondMostPopularColour -
boolean isBrightSet(int mostPopularColour,
int secondMostPopularColour)
mostPopularColour - secondMostPopularColour -
ColourHelper.isBrightSet(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||