public class FavourBrightAttributeStrategy extends java.lang.Object implements AttributeStrategy
| Constructor and Description |
|---|
FavourBrightAttributeStrategy() |
| 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.
|
java.lang.String |
toString() |
public int[] enforceAttributeRule(int[] mostPopularColour,
int[] secondMostPopularColour)
AttributeStrategyenforceAttributeRule in interface AttributeStrategypublic boolean isBrightSet(int mostPopularColour,
int secondMostPopularColour)
AttributeStrategyisBrightSet in interface AttributeStrategyColourHelper.isBrightSet(int)public java.lang.String toString()
toString in class java.lang.Object