YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.sendspin.player.DisplayLook Class Reference

How the display screen of this phone is coloured (task 11.5). More...

Collaboration diagram for de.yaacc.sendspin.player.DisplayLook:
Collaboration graph

Static Public Member Functions

static DisplayLook of (ControllerMessages.Color color, boolean hasContent)
 
static DisplayLook of (ControllerMessages.Color color, boolean hasContent, int brightnessPercent)
 

Public Attributes

final boolean lightMode
 True if the screen shows a colour only (no text, no cover): the colour fills the screen and the phone's brightness is full.
 
final int background
 The background, as an ARGB value.
 
final int foreground
 The colour of the text, as an ARGB value.
 
final float screenBrightness
 The brightness of the window (0 to 1) while the screen is a light; a negative value: the phone's own setting.
 

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
 

Detailed Description

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.

Member Function Documentation

◆ of() [1/2]

static DisplayLook de.yaacc.sendspin.player.DisplayLook.of ( ControllerMessages.Color color,
boolean hasContent )
static
Parameters
colorthe colours the server sent, or null;
hasContentwhether text or a cover is shown

Referenced by de.yaacc.sendspin.player.DisplayLook.of().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ of() [2/2]

static DisplayLook de.yaacc.sendspin.player.DisplayLook.of ( ControllerMessages.Color color,
boolean hasContent,
int brightnessPercent )
static
Parameters
brightnessPercenthow 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)

The documentation for this class was generated from the following file: