Overview  Package   Class  Tree  Index 

be.lassi.control.device
Class Control

java.lang.Object
  extended by be.lassi.control.device.Control
All Implemented Interfaces:
org.jhotdraw.xml.DOMStorable

public class Control
extends java.lang.Object
implements org.jhotdraw.xml.DOMStorable

Represents an external Midi control panel with a number of level controls (faders and/or encoders) and a number of buttons.


Constructor Summary
Control()
           
 
Method Summary
 void add(Button button)
           
 void add(LevelControl levelControl)
           
 boolean equals(java.lang.Object object)
          
 Button getButton(int index)
           
 int getButtonCount()
          Gets the number of buttons in this control.
 int getButtonGroupCount()
          Gets the number of control element groups for buttons.
 java.util.List<Button> getButtons()
          Gets the device buttons.
 int getGroupCount()
          Gets the number of control element groups.
 int getGroupSize()
          Gets the number of control elements (level controls and/or buttons) in each group (groups can be used to layout the control on the user interface).
 LevelControl getLevelControl(int index)
           
 int getLevelControlCount()
           
 int getLevelControlGroupCount()
          Gets the number of control element groups for level controls.
 java.util.List<LevelControl> getLevelControls()
           
 int getSheetGroupSize()
           
 int getSubGroupSize()
          Gets the number of control elements (level controls and/or buttons) in each subgroup (subgroups can be used to layout the control on the user interface).
 int hashCode()
          
 void read(org.jhotdraw.xml.DOMInput in)
          
 void setGroupSize(int groupSize)
           
 void setSheetGroupSize(int sheetGroupSize)
           
 void setSubGroupSize(int subGroupSize)
           
 void write(org.jhotdraw.xml.DOMOutput out)
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Control

public Control()
Method Detail

add

public void add(Button button)

add

public void add(LevelControl levelControl)

equals

public boolean equals(java.lang.Object object)

Overrides:
equals in class java.lang.Object

getButton

public Button getButton(int index)

getButtonCount

public int getButtonCount()
Gets the number of buttons in this control.

Returns:
the number of buttons

getButtonGroupCount

public int getButtonGroupCount()
Gets the number of control element groups for buttons.

Returns:
the number of button groups

getButtons

public java.util.List<Button> getButtons()
Gets the device buttons.

Returns:
the buttons

getGroupCount

public int getGroupCount()
Gets the number of control element groups.

Returns:
the number of control element groups

getGroupSize

public int getGroupSize()
Gets the number of control elements (level controls and/or buttons) in each group (groups can be used to layout the control on the user interface).

Returns:
the number of control elements per group

getLevelControl

public LevelControl getLevelControl(int index)

getLevelControlCount

public int getLevelControlCount()

getLevelControlGroupCount

public int getLevelControlGroupCount()
Gets the number of control element groups for level controls.

Returns:
the number of level control groups

getLevelControls

public java.util.List<LevelControl> getLevelControls()

getSheetGroupSize

public int getSheetGroupSize()

getSubGroupSize

public int getSubGroupSize()
Gets the number of control elements (level controls and/or buttons) in each subgroup (subgroups can be used to layout the control on the user interface).

Returns:
the number of control elements per subgroup

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

read

public void read(org.jhotdraw.xml.DOMInput in)
          throws java.io.IOException

Specified by:
read in interface org.jhotdraw.xml.DOMStorable
Throws:
java.io.IOException

setGroupSize

public void setGroupSize(int groupSize)

setSheetGroupSize

public void setSheetGroupSize(int sheetGroupSize)

setSubGroupSize

public void setSubGroupSize(int subGroupSize)

write

public void write(org.jhotdraw.xml.DOMOutput out)
           throws java.io.IOException

Specified by:
write in interface org.jhotdraw.xml.DOMStorable
Throws:
java.io.IOException

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2