be.lassi.control.device
Class Button
java.lang.Object
be.lassi.control.device.Button
- All Implemented Interfaces:
- org.jhotdraw.xml.DOMStorable
public class Button
- extends java.lang.Object
- implements org.jhotdraw.xml.DOMStorable
Represents a logical button on the Midi control device. There can
be multiple logical buttons for one physical button on the device.
Constructor Summary |
Button()
|
Button(int number)
Constructs a new instance. |
Button(java.lang.String name,
int number)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Button
public Button()
Button
public Button(int number)
- Constructs a new instance.
- Parameters:
id
- the button identifier
Button
public Button(java.lang.String name,
int number)
equals
public boolean equals(java.lang.Object object)
-
- Overrides:
equals
in class java.lang.Object
getHolder
public Holder<java.lang.Boolean> getHolder()
getNumber
public int getNumber()
- Gets the button identifier.
- Returns:
- the button identifier
hashCode
public int hashCode()
-
- Overrides:
hashCode
in class java.lang.Object
isOn
public boolean isOn()
read
public void read(org.jhotdraw.xml.DOMInput in)
- Specified by:
read
in interface org.jhotdraw.xml.DOMStorable
toString
public java.lang.String toString()
-
- Overrides:
toString
in class java.lang.Object
write
public void write(org.jhotdraw.xml.DOMOutput out)
- Specified by:
write
in interface org.jhotdraw.xml.DOMStorable