Skip navigation links
A B C D E G I L M O R S T W 

A

addLightListener(LightListener) - Method in class de.toman.milight.Lights
Use this function to add a new listener to the group of lights.
addLightListener(int, LightListener) - Method in class de.toman.milight.WiFiBox
Use this function to add a new listener one group of lights connected to the WiFiBox.
addTimerListener(TimerListener) - Method in class de.toman.milight.Timer
Use this function to add a new listener to the timer.
AmbientLight - Class in de.toman.milight
With this class you can adjust your lights in a way that they have the same color and brightness as your screen.
AmbientLight(Lights, int, int, long) - Constructor for class de.toman.milight.AmbientLight
This constructor creates a new ambient light.
AmbientLight(Lights, int, int) - Constructor for class de.toman.milight.AmbientLight
This constructor creates a new ambient light capturing the screen as often as possible.
AmbientLight(Lights) - Constructor for class de.toman.milight.AmbientLight
This constructor creates a new ambient light capturing the screen as often as possible and extracting 9 pixels (a 3x3 grid) in each loop.
averageColor(Set<Color>) - Static method in class de.toman.milight.AmbientLight
This function computes the average of a set of colors.

B

blink(Color, int, long, long) - Method in class de.toman.milight.Lights
This function makes the light blink in a given color as a notification.
blink(Color, int) - Method in class de.toman.milight.Lights
This function makes the light blink in a given color as a notification.
blink(Color) - Method in class de.toman.milight.Lights
This function makes the light blink in a given color three times as a notification.
brightness(int) - Method in class de.toman.milight.Lights
Set the brightness value for the group of lights.
brightness(int) - Method in class de.toman.milight.WiFiBox
Set the brightness value for the currently active group of lights (the last one that was switched on, see WiFiBox.getActiveGroup()).
brightness(int, int) - Method in class de.toman.milight.WiFiBox
Set the brightness value for a given group of lights.

C

ChangeBrightnessEvent - Class in de.toman.milight.events
An instance of this class is fired by Lights instances when the group of lights is switched to another brightness level.
ChangeBrightnessEvent(Lights, float) - Constructor for class de.toman.milight.events.ChangeBrightnessEvent
This constructor creates a new ChangeBrightnessEvent referencing to a group of light that was switched to a new brightness level.
ChangeColorEvent - Class in de.toman.milight.events
An instance of this class is fired by Lights instances when the group of lights is switched to another color.
ChangeColorEvent(Lights, MilightColor) - Constructor for class de.toman.milight.events.ChangeColorEvent
This constructor creates a new ChangeColorEvent referencing to a group of light that was switched to a new color.
color(int) - Method in class de.toman.milight.Lights
Set the color value for the group of lights.
color(MilightColor, boolean) - Method in class de.toman.milight.Lights
Set the color value for the group of lights.
color(MilightColor) - Method in class de.toman.milight.Lights
Set the color value for the group of lights.
color(Color, boolean) - Method in class de.toman.milight.Lights
Set the color value for the group of lights.
color(Color) - Method in class de.toman.milight.Lights
Set the color value for the group of lights.
color(int) - Method in class de.toman.milight.WiFiBox
Set the color value for the currently active group of lights (the last one that was switched on, see WiFiBox.getActiveGroup()).
color(MilightColor, boolean) - Method in class de.toman.milight.WiFiBox
Set the color value for the currently active group of lights (the last one that was switched on, see WiFiBox.getActiveGroup()).
color(MilightColor) - Method in class de.toman.milight.WiFiBox
Set the color value for the currently active group of lights (the last one that was switched on, see WiFiBox.getActiveGroup()).
color(Color, boolean) - Method in class de.toman.milight.WiFiBox
Set the color value for the currently active group of lights (the last one that was switched on, see WiFiBox.getActiveGroup()).
color(Color) - Method in class de.toman.milight.WiFiBox
Set the color value for the currently active group of lights (the last one that was switched on, see WiFiBox.getActiveGroup()).
color(int, int) - Method in class de.toman.milight.WiFiBox
Set the color value for a given group of lights.
color(int, MilightColor, boolean) - Method in class de.toman.milight.WiFiBox
Set the color value for a given group of lights.
color(int, MilightColor) - Method in class de.toman.milight.WiFiBox
Set the color value for a given group of lights.
color(int, Color, boolean) - Method in class de.toman.milight.WiFiBox
Set the color value for a given group of lights.
color(int, Color) - Method in class de.toman.milight.WiFiBox
Set the color value for a given group of lights.
colorAndBrightness(MilightColor, boolean) - Method in class de.toman.milight.Lights
Set the color and brightness values for the group of lights.
colorAndBrightness(MilightColor) - Method in class de.toman.milight.Lights
Set the color and brightness values for the group of lights.
colorAndBrightness(Color, boolean) - Method in class de.toman.milight.Lights
Set the color and brightness values for the group of lights.
colorAndBrightness(Color) - Method in class de.toman.milight.Lights
Set the color and brightness values for the group of lights.
colorAndBrightness(MilightColor) - Method in class de.toman.milight.WiFiBox
Set the color and brightness values for the currently active group of lights (the last one that was switched on, see WiFiBox.getActiveGroup()).
colorAndBrightness(Color) - Method in class de.toman.milight.WiFiBox
Set the color and brightness values for the currently active group of lights (the last one that was switched on, see WiFiBox.getActiveGroup()).
colorAndBrightness(int, MilightColor, boolean) - Method in class de.toman.milight.WiFiBox
Set the color and brightness values for a given group of lights.
colorAndBrightness(int, MilightColor) - Method in class de.toman.milight.WiFiBox
Set the color and brightness values for a given group of lights.
colorAndBrightness(int, Color, boolean) - Method in class de.toman.milight.WiFiBox
Set the color and brightness values for a given group of lights.
colorAndBrightness(int, Color) - Method in class de.toman.milight.WiFiBox
Set the color and brightness values for a given group of lights.
ColoredModeEvent - Class in de.toman.milight.events
An instance of this class is fired by Lights instances when the group of lights is switched to colored mode.
ColoredModeEvent(Lights) - Constructor for class de.toman.milight.events.ColoredModeEvent
This constructor creates a new ColoredModeEvent referencing to a group of light that was switched to colored mode.
COMMAND_ALL_OFF - Static variable in class de.toman.milight.WiFiBox
The command code for "RGBW COLOR LED ALL OFF".
COMMAND_ALL_ON - Static variable in class de.toman.milight.WiFiBox
The command code for "RGBW COLOR LED ALL ON".
COMMAND_ALL_WHITE - Static variable in class de.toman.milight.WiFiBox
The command code for "SET COLOR TO WHITE (GROUP ALL)".
COMMAND_BRIGHTNESS - Static variable in class de.toman.milight.WiFiBox
The command code for "DIRECT BRIGHTNESS SETTING" (part of a two-byte command).
COMMAND_COLOR - Static variable in class de.toman.milight.WiFiBox
The command code for "COLOR SETTING" (part of a two-byte command).
COMMAND_DISCO - Static variable in class de.toman.milight.WiFiBox
The command code for "DISCO MODE".
COMMAND_DISCO_FASTER - Static variable in class de.toman.milight.WiFiBox
The command code for "DISCO SPEED FASTER".
COMMAND_DISCO_SLOWER - Static variable in class de.toman.milight.WiFiBox
The command code for "DISCO SPEED SLOWER".
COMMAND_GROUP_1_OFF - Static variable in class de.toman.milight.WiFiBox
The command code for "GROUP 1 ALL OFF".
COMMAND_GROUP_1_ON - Static variable in class de.toman.milight.WiFiBox
The command code for "GROUP 1 ALL ON".
COMMAND_GROUP_1_WHITE - Static variable in class de.toman.milight.WiFiBox
The command code for "SET COLOR TO WHITE (GROUP 1)".
COMMAND_GROUP_2_OFF - Static variable in class de.toman.milight.WiFiBox
The command code for "GROUP 2 ALL OFF".
COMMAND_GROUP_2_ON - Static variable in class de.toman.milight.WiFiBox
The command code for "GROUP 2 ALL ON".
COMMAND_GROUP_2_WHITE - Static variable in class de.toman.milight.WiFiBox
The command code for "SET COLOR TO WHITE (GROUP 2)".
COMMAND_GROUP_3_OFF - Static variable in class de.toman.milight.WiFiBox
The command code for "GROUP 3 ALL OFF".
COMMAND_GROUP_3_ON - Static variable in class de.toman.milight.WiFiBox
The command code for "GROUP 3 ALL ON".
COMMAND_GROUP_3_WHITE - Static variable in class de.toman.milight.WiFiBox
The command code for "SET COLOR TO WHITE (GROUP 3)".
COMMAND_GROUP_4_OFF - Static variable in class de.toman.milight.WiFiBox
The command code for "GROUP 4 ALL OFF".
COMMAND_GROUP_4_ON - Static variable in class de.toman.milight.WiFiBox
The command code for "GROUP 4 ALL ON".
COMMAND_GROUP_4_WHITE - Static variable in class de.toman.milight.WiFiBox
The command code for "SET COLOR TO WHITE (GROUP 4)".

D

de.toman.milight - package de.toman.milight
 
de.toman.milight.events - package de.toman.milight.events
 
DEFAULT_PORT - Static variable in class de.toman.milight.WiFiBox
The default port for unconfigured boxes.
discoMode() - Method in class de.toman.milight.Lights
Switch the group of lights to the disco mode.
discoMode() - Method in class de.toman.milight.WiFiBox
Trigger the disco mode for the active group of lights (the last one that was switched on, see WiFiBox.getActiveGroup()).
discoMode(int) - Method in class de.toman.milight.WiFiBox
Triggers the disco mode for a particular group of lights.
DiscoModeEvent - Class in de.toman.milight.events
An instance of this class is fired by Lights instances when the group of lights is switched to disco mode (or next type of disco mode).
DiscoModeEvent(Lights) - Constructor for class de.toman.milight.events.DiscoModeEvent
This constructor creates a new DiscoModeEvent referencing to a group of light that was switched to disco mode (or next type of disco mode).
discoModeFaster() - Method in class de.toman.milight.Lights
Increase the disco mode's speed.
discoModeFaster() - Method in class de.toman.milight.WiFiBox
Increase the disco mode's speed for the active group of lights (the last one that was switched on, see WiFiBox.getActiveGroup()).
DiscoModeFasterEvent - Class in de.toman.milight.events
An instance of this class is fired by Lights instances when speed of the group of lights' disco mode is increased.
DiscoModeFasterEvent(Lights) - Constructor for class de.toman.milight.events.DiscoModeFasterEvent
This constructor creates a new DiscoModeFasterEvent referencing to a group of light that was switched to a faster disco mode.
discoModeSlower() - Method in class de.toman.milight.Lights
Decrease the disco mode's speed.
discoModeSlower() - Method in class de.toman.milight.WiFiBox
Decrease the disco mode's speed for the active group of lights (the last one that was switched on, see WiFiBox.getActiveGroup()).
DiscoModeSlowerEvent - Class in de.toman.milight.events
An instance of this class is fired by Lights instances when speed of the group of lights' disco mode is decreased.
DiscoModeSlowerEvent(Lights) - Constructor for class de.toman.milight.events.DiscoModeSlowerEvent
This constructor creates a new DiscoModeFasterEvent referencing to a group of light that was switched to a slower disco mode.

E

equals(LightState) - Method in class de.toman.milight.LightState
This function checks whether two LightStates represent the same state.
equals(MilightColor) - Method in class de.toman.milight.MilightColor
This function checks whether two MilightColors represent the same color by comparing their hsb values.
extractColors(BufferedImage, int, int) - Static method in class de.toman.milight.AmbientLight
This function extracts the colors of some pixels from a BufferedImage.

G

getActiveGroup() - Method in class de.toman.milight.WiFiBox
This function returns the number of the currently active group of lights.
getBrightness() - Method in class de.toman.milight.events.ChangeBrightnessEvent
This function returns the new new brightness level (between 0 and 1) for the group of lights.
getBrightness() - Method in class de.toman.milight.LightState
This function returns the brightness level between 0 and 1 currently displayed by the group of lights if they are in white mode.
getBrightness() - Method in class de.toman.milight.MilightColor
Extract the brightness value from the color the instance is representing.
getColor() - Method in class de.toman.milight.events.ChangeColorEvent
This function returns the new color for the group of lights.
getColor() - Method in class de.toman.milight.LightState
This function returns the color which is currently display by the group of lights if the lights are in colored mode.
getColor() - Method in class de.toman.milight.MilightColor
This function returns the color the instance is representing.
getCurrentState() - Method in class de.toman.milight.LightObserver
This funtion returns the current state of the observed group of lights.
getDefaultLine() - Static method in class de.toman.milight.MusicVisualizer
This function returns the default line to listen on.
getGroup() - Method in class de.toman.milight.Lights
Get the number of the group of lights at the WiFi box.
getHSB() - Method in class de.toman.milight.MilightColor
This function extracts hue, saturation and brightness of the color the instance is representing.
getHue() - Method in class de.toman.milight.MilightColor
Extract the hue value from the color the instance is representing.
getLastState() - Method in class de.toman.milight.LightObserver
This funtion returns the last state of the observed group of lights (i.e.
getLights() - Method in class de.toman.milight.LightObserver
This function returns the group of lights observed.
getLights() - Method in class de.toman.milight.MusicVisualizer
This function returns the group of lights controlled by this visualizer.
getLights(int) - Method in class de.toman.milight.WiFiBox
Get the group of lights that is controlled by a given group number.
getLine() - Method in class de.toman.milight.MusicVisualizer
This function returns the line to read the music input from.
getMilightBrightness() - Method in class de.toman.milight.MilightColor
This function extracts the brightness value from the color the instance is representing and transforms it to a value that can be sent to the WiFi box.
getMilightHue() - Method in class de.toman.milight.MilightColor
This function extracts the hue value from the color the instance is representing and transforms it to a value that can be sent to the WiFi box.
getObserver() - Method in class de.toman.milight.Lights
This function returns the LightObserver storing all the states of the group of lights.
getSaturation() - Method in class de.toman.milight.MilightColor
Extract the saturation value from the color the instance is representing.
getStates() - Method in class de.toman.milight.LightObserver
This function returns a stack of all known states, beginning with the current one.
getTransition(MilightColor, float) - Method in class de.toman.milight.MilightColor
This function finds colors between two MilightColors.
getWifiBox() - Method in class de.toman.milight.Lights
Get the WiFi box used to control this group of lights.

I

isColoredMode() - Method in class de.toman.milight.MilightColor
This function computes whether a color should be displayed in white or colored mode.
isOn() - Method in class de.toman.milight.LightState
This function returns whether the group of lights is switched on.
isWhiteMode() - Method in class de.toman.milight.LightState
This function returns whether the group of lights is in white mode.
isWhiteMode() - Method in class de.toman.milight.MilightColor
This function computes whether a color should be displayed in white or colored mode.

L

LightEvent - Class in de.toman.milight.events
This class is the base class for all events that occur when sending commands to a group of lights.
LightEvent(Lights) - Constructor for class de.toman.milight.events.LightEvent
This constructor creates a new LightEvent referencing to a group of light that was changed.
LightListener - Interface in de.toman.milight.events
This interface should be implemented by a listeners for events from the de.toman.milight.events package.
LightObserver - Class in de.toman.milight
This class stores the current state of a given group of lights and adjusts this state each time it changes.
LightObserver(Lights) - Constructor for class de.toman.milight.LightObserver
This constructor creates a new LightOberserver storing the current and last state of a given group of lights.
Lights - Class in de.toman.milight
This class represents a group of LED light bulbs that are connected to a WiFi box using the same group.
Lights(WiFiBox, int) - Constructor for class de.toman.milight.Lights
This constructor creates a new group of lights for a given WiFi box.
Lights(InetAddress, int, int) - Constructor for class de.toman.milight.Lights
This constructor creates a new group of lights and a connection to a WiFi box.
Lights(InetAddress, int) - Constructor for class de.toman.milight.Lights
This constructor creates a new group of lights and a connection to a WiFi box using the default port.
Lights(String, int, int) - Constructor for class de.toman.milight.Lights
This constructor creates a new group of lights and a connection to a WiFi box.
Lights(String, int) - Constructor for class de.toman.milight.Lights
This constructor creates a new group of lights and a connection to a WiFi box using the default port.
lightsChanged(LightEvent) - Method in interface de.toman.milight.events.LightListener
This function needs to be implemented to react on events.
LightState - Class in de.toman.milight
 
LightState(MilightColor, float, boolean, boolean) - Constructor for class de.toman.milight.LightState
This constructor creates a new LightState instance which stores the state of a group of lights.

M

MAX_BRIGHTNESS - Static variable in class de.toman.milight.MilightColor
The maximum brightness value to send to the WiFi box.
MAX_COLOR - Static variable in class de.toman.milight.MilightColor
The maximum color value to send to the WiFi box.
MilightColor - Class in de.toman.milight
This class extracts hue, saturation and brightness values from java.awt.Color instances and transforms them to values that can be sent to the Milight WiFi box.
MilightColor(Color) - Constructor for class de.toman.milight.MilightColor
Use this constructor to generate a new MilightColor representing a specified color.
MIN_BRIGHTNESS - Static variable in class de.toman.milight.MilightColor
The minimum brightness value to send to the WiFi box.
MIN_COLOR - Static variable in class de.toman.milight.MilightColor
The minimum color value to send to the WiFi box.
MIN_SLEEP_BETWEEN_MESSAGES - Static variable in class de.toman.milight.WiFiBox
The sleep time between both messages for switching lights to the white mode.
MusicVisualizer - Class in de.toman.milight
With this class you can visualize your music using some group of lights.
MusicVisualizer(Lights, TargetDataLine) - Constructor for class de.toman.milight.MusicVisualizer
This constructor creates a new visualizer.
MusicVisualizer(Lights) - Constructor for class de.toman.milight.MusicVisualizer
This constructor creates a new visualizer.

O

off() - Method in class de.toman.milight.Lights
Switch the group of lights off.
off() - Method in class de.toman.milight.WiFiBox
Switch all lights off (all groups).
off(int) - Method in class de.toman.milight.WiFiBox
Switch all lights of a particular group off.
on() - Method in class de.toman.milight.Lights
Switch the group of lights on and restore the last state.
on() - Method in class de.toman.milight.WiFiBox
Switch all lights on (all groups).
on(int) - Method in class de.toman.milight.WiFiBox
Switch all lights of a particular group on.

R

removeLightListener(LightListener) - Method in class de.toman.milight.Lights
This function removes a listener from this group of lights which was added before by Lights.addLightListener(LightListener).
removeLightListener(int, LightListener) - Method in class de.toman.milight.WiFiBox
This function removes a listener from this WiFiBox which was added before by WiFiBox.addLightListener(int, LightListener).
removeTimerListener(TimerListener) - Method in class de.toman.milight.Timer
This function removes a listener from this timer which was added before by Timer.addTimerListener(TimerListener).
restore() - Method in class de.toman.milight.LightObserver
This function removes the youngest state from the stack and restores it to the group of lights observerd by this instance.
restore(Lights) - Method in class de.toman.milight.LightState
This function restores the state represented by this instance to a group of lights.
run() - Method in class de.toman.milight.AmbientLight
This functions runs a loop to set the ambient light until the AmbientLight.stop() function is called.
run() - Method in class de.toman.milight.MusicVisualizer
This function runs the visualizer with the settings given in the constructor resp.
run() - Method in class de.toman.milight.Timer
This function runs the timer with the settings given in the constructor resp.

S

SATURATION_THRESHOLD - Static variable in class de.toman.milight.MilightColor
This threshold defines where the lights should change between white and colored mode.
setBrightness(float) - Method in class de.toman.milight.MilightColor
Set a new brightness value and let the hue and saturation values untouched.
setColor(Color) - Method in class de.toman.milight.MilightColor
Use this function to set the color the instance is representing.
setHue(float) - Method in class de.toman.milight.MilightColor
Set a new hue value and let the brightness and saturation values untouched.
setMilightBrightness(int) - Method in class de.toman.milight.MilightColor
This function sets a new brightness value for the color the instance is representingThe value is given as it could be sent to the WiFiBox and internally transferred to a float.
setMilightHue(int) - Method in class de.toman.milight.MilightColor
This function sets a new hue value given as it would be sent to the WiFiBox.
setSaturation(float) - Method in class de.toman.milight.MilightColor
Set a new saturation value and let the brightness and hue values untouched.
setSleepPerCycle(int) - Method in class de.toman.milight.Timer
Set the amount of time to sleep between two cycles.
SLEEP_PER_CYCLE_DEFAULT - Static variable in class de.toman.milight.Timer
The default amount of time to sleep between two adjustments in milliseconds.
start() - Method in class de.toman.milight.AmbientLight
This function starts the ambient light in a new thread.
start() - Method in class de.toman.milight.MusicVisualizer
This function starts the visualizer in a new thread.
start() - Method in class de.toman.milight.Timer
This function starts the timer in a new thread.
stop() - Method in class de.toman.milight.AmbientLight
This function stops the thread running the ambient light.
stop() - Method in class de.toman.milight.MusicVisualizer
This function stops the thread running the visualizer.
stop() - Method in class de.toman.milight.Timer
This function stops the thread running the timer.
SwitchOffEvent - Class in de.toman.milight.events
An instance of this class is fired by Lights instances when the group of lights is switched off.
SwitchOffEvent(Lights) - Constructor for class de.toman.milight.events.SwitchOffEvent
This constructor creates a new SwitchOffEvent referencing to a group of light that was switched off.
SwitchOnEvent - Class in de.toman.milight.events
An instance of this class is fired by Lights instances when the group of lights is switched on.
SwitchOnEvent(Lights) - Constructor for class de.toman.milight.events.SwitchOnEvent
This constructor creates a new SwitchOnEvent referencing to a group of light that was switched on.

T

Timer - Class in de.toman.milight
This class dims a group of lights over time from one brightness level to another in a smooth way.
Timer(Lights, long, MilightColor, MilightColor, boolean) - Constructor for class de.toman.milight.Timer
This constructor creates a new timer that changes the color and brightness of a group of lights during a longer time.
Timer(Lights, long, int, int, boolean) - Constructor for class de.toman.milight.Timer
This constructor creates a new timer that dims a group of lights during a longer time.
Timer(Lights, long, int, int) - Constructor for class de.toman.milight.Timer
This constructor creates a new timer that dims a group of lights during a longer time and switches the group of lights off in the end.
Timer(Lights, long) - Constructor for class de.toman.milight.Timer
This constructor creates a new timer that dims a group of lights from full brightness until switched off in the end.
TimerListener - Interface in de.toman.milight.events
This is an interface for listening on a Timer instance and getting notified when the timer has finished its animation.
timerReady() - Method in interface de.toman.milight.events.TimerListener
This function is called when the timer has finished its animation.
toString() - Method in class de.toman.milight.AmbientLight
This function describes the objet as a string.
toString() - Method in class de.toman.milight.LightObserver
This function describes the objet as a string.
toString() - Method in class de.toman.milight.Lights
This function describes the objet as a string.
toString() - Method in class de.toman.milight.LightState
This function describes the objet as a string.
toString() - Method in class de.toman.milight.MilightColor
This function describes the objet as a string.
toString() - Method in class de.toman.milight.Timer
This function describes the objet as a string.
toString() - Method in class de.toman.milight.WiFiBox
This function describes the objet as a string.

W

white() - Method in class de.toman.milight.Lights
Switch the group of lights to the wight mode and restore the last brightness value.
white() - Method in class de.toman.milight.WiFiBox
Switch all lights in all groups to the white mode.
white(int) - Method in class de.toman.milight.WiFiBox
Switch all lights in a particular group to the white mode.
WhiteModeEvent - Class in de.toman.milight.events
An instance of this class is fired by Lights instances when the group of lights is switched to white mode.
WhiteModeEvent(Lights) - Constructor for class de.toman.milight.events.WhiteModeEvent
This constructor creates a new WhiteModeEvent referencing to a group of light that was switched to white mode.
WiFiBox - Class in de.toman.milight
This class represents a MiLight WiFi box and is able to send commands to a particular box.
WiFiBox(InetAddress, int) - Constructor for class de.toman.milight.WiFiBox
A constructor creating a new instance of the WiFi box class.
WiFiBox(InetAddress) - Constructor for class de.toman.milight.WiFiBox
A constructor creating a new instance of the WiFi box class using the default port number.
WiFiBox(String, int) - Constructor for class de.toman.milight.WiFiBox
A constructor creating a new instance of the WiFi box class.
WiFiBox(String) - Constructor for class de.toman.milight.WiFiBox
A constructor creating a new instance of the WiFi box class using the default port number.
A B C D E G I L M O R S T W 
Skip navigation links