Overview  Package   Class  Tree  Index 

be.lassi.control.device
Class Button

java.lang.Object
  extended by 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)
           
 
Method Summary
 boolean equals(java.lang.Object object)
          
 Holder<java.lang.Boolean> getHolder()
           
 int getNumber()
          Gets the button identifier.
 int hashCode()
          
 boolean isOn()
           
 void read(org.jhotdraw.xml.DOMInput in)
           
 java.lang.String toString()
          
 void write(org.jhotdraw.xml.DOMOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2