|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.co.silentsoftware.core.attributestrategy.GigaScreenAttributeStrategy
public class GigaScreenAttributeStrategy
GigaScreen attribute strategy that attempts to pick the attribute based on the most common set of colours from 2 screens
| Constructor Summary | |
|---|---|
GigaScreenAttributeStrategy()
|
|
| 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. |
private boolean |
isBright(int mostPopularColour,
int secondMostPopularColour)
Tests whether an individual screen has bright attributes. |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GigaScreenAttributeStrategy()
| Method Detail |
|---|
public int[] enforceAttributeRule(int[] mostPopularColour,
int[] secondMostPopularColour)
AttributeStrategy
enforceAttributeRule in interface AttributeStrategy
public boolean isBrightSet(int mostPopularColour,
int secondMostPopularColour)
AttributeStrategy
isBrightSet in interface AttributeStrategyColourHelper.isBrightSet(int)
private boolean isBright(int mostPopularColour,
int secondMostPopularColour)
mostPopularColour - secondMostPopularColour -
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||