|
YAACC - UPNP Client and Server
|
How the display screen of this phone is coloured (task 11.5). More...

Static Public Member Functions | |
| static DisplayLook | of (ControllerMessages.Color color, boolean hasContent) |
| static DisplayLook | of (ControllerMessages.Color color, boolean hasContent, int brightnessPercent) |
Static Public Attributes | |
| static final int | MIN_BRIGHTNESS_PERCENT = 5 |
| The least and the most that the colour screen is dimmed to, in percent. | |
| static final int | MAX_BRIGHTNESS_PERCENT = 100 |
How the display screen of this phone is coloured (task 11.5).
With text or a cover to show, the readable pair of the server is used (its dark background and the light colour for text on it: the server guarantees their contrast). When only colours arrive, the screen is a light: it shows the colour of the server as it is, the dominant colour first, without any change of hue or brightness.
|
static |
| color | the colours the server sent, or null; |
| hasContent | whether text or a cover is shown |
Referenced by de.yaacc.sendspin.player.DisplayLook.of().


|
static |
| brightnessPercent | how bright the colour screen is shown, 5 to 100: the colour is dimmed by this much (the hue stays) and so is the window; the screen with text or a cover is not changed (it is dark already) |