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 Summary
Modifier and TypeMethodDescriptiondoublegetId()The unique id associated with this element.getLabel()An optional label associated with this element.The color of the label.RelativePositionthat defines where the label is.doublegetWidth()doublegetX()doublegetY()voidsetBounds(double xInMM, double yInMM, double widthInMM, double heightInMM) The physical bounds of this hardware element on the controller.voidSets the label for this hardware control as written on the hardware.voidsetLabelColor(Color color) Sets the color of the label.voidsetLabelPosition(RelativePosition position)
-
Method Details
-
getId
String getId()The unique id associated with this element. -
getLabel
String getLabel()An optional label associated with this element. -
setLabel
Sets the label for this hardware control as written on the hardware. -
getLabelColor
Color getLabelColor()The color of the label. -
setLabelColor
Sets the color of the label. -
getLabelPosition
RelativePosition getLabelPosition()RelativePositionthat defines where the label is. -
setLabelPosition
-
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()
-