- 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)".
- 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.
- 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.
- 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.
- 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.