Interface HardwareElement

All Known Subinterfaces:
AbsoluteHardwareControl, AbsoluteHardwareKnob, ContinuousHardwareControl<HardwareBindingType>, HardwareButton, HardwareControl, HardwareLight, HardwareOutputElement, HardwarePixelDisplay, HardwareSlider, HardwareTextDisplay, MultiStateHardwareLight, OnOffHardwareLight, PianoKeyboard, RelativeHardwareControl, RelativeHardwareKnob

public interface HardwareElement
Represents some physical hardware element. Hardware elements can be HardwareControls (e.g. buttons, sliders etc) or HardwareOutputElements (e.g lights, text displays etc).
Since:
API version 10
  • Method Details

    • getId

      String getId()
      The unique id associated with this element.
    • getLabel

      String getLabel()
      An optional label associated with this element.
    • setLabel

      void setLabel(String label)
      Sets the label for this hardware control as written on the hardware.
    • getLabelColor

      Color getLabelColor()
      The color of the label.
    • setLabelColor

      void setLabelColor(Color color)
      Sets the color of the label.
    • getLabelPosition

      RelativePosition getLabelPosition()
      RelativePosition that defines where the label is.
    • setLabelPosition

      void setLabelPosition(RelativePosition position)
    • setBounds

      void setBounds(double xInMM, double yInMM, double widthInMM, double heightInMM)
      The physical bounds of this hardware element on the controller.
    • getX

      double getX()
    • getY

      double getY()
    • getWidth

      double getWidth()
    • getHeight

      double getHeight()