projects
/
sonitus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add name to controllers.
[sonitus.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sonitus
/
data
/
controller
/
Fader.java
diff --git
a/src/main/java/net/pterodactylus/sonitus/data/controller/Fader.java
b/src/main/java/net/pterodactylus/sonitus/data/controller/Fader.java
index
0f78ea2
..
279da03
100644
(file)
--- a/
src/main/java/net/pterodactylus/sonitus/data/controller/Fader.java
+++ b/
src/main/java/net/pterodactylus/sonitus/data/controller/Fader.java
@@
-26,19
+26,26
@@
import net.pterodactylus.sonitus.data.Controller;
*/
public abstract class Fader extends AbstractController<Double> {
*/
public abstract class Fader extends AbstractController<Double> {
- /** Creates a new fader that is at maximum position. */
- public Fader() {
- this(1.0);
+ /**
+ * Creates a new fader that is at maximum position.
+ *
+ * @param name
+ * The name of the fader
+ */
+ public Fader(String name) {
+ this(name, 1.0);
}
/**
* Creates a new fader that is at the given position.
*
}
/**
* Creates a new fader that is at the given position.
*
+ * @param name
+ * The name of the fader
* @param currentValue
* The current value of the fader (from {@code 0.0} to {@code 1.0})
*/
* @param currentValue
* The current value of the fader (from {@code 0.0} to {@code 1.0})
*/
- public Fader(Double currentValue) {
- super(0.0, 1.0, false, currentValue);
+ public Fader(
String name,
Double currentValue) {
+ super(
name,
0.0, 1.0, false, currentValue);
}
}
}
}