uk.co.silentsoftware.core.attributestrategy
Interface AttributeStrategy

All Known Implementing Classes:
FavourBrightAttributeStrategy, FavourHalfBrightAttributeStrategy, FavourMostPopularAttributeStrategy, ForceBrightAttributeStrategy, ForceHalfBrightAttributeStrategy, ForceReducedHalfBrightAttributeStrategy, GigaScreenAttributeStrategy

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

enforceAttributeRule

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. bright or half bright).

Parameters:
mostPopularColour -
secondMostPopularColour -

isBrightSet

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.

Parameters:
mostPopularColour -
secondMostPopularColour -
Returns:
See Also:
ColourHelper.isBrightSet(int)