edu.stanford.hci.dtools.deviceeditor.components
Class ButtonComponent
java.lang.Object
edu.stanford.hci.dtools.statechart.model.ModelElement
edu.stanford.hci.dtools.deviceeditor.components.IOComponent
edu.stanford.hci.dtools.deviceeditor.components.InputComponent
edu.stanford.hci.dtools.deviceeditor.components.ButtonComponent
- All Implemented Interfaces:
- java.io.Serializable, org.eclipse.ui.views.properties.IPropertySource
public class ButtonComponent
- extends InputComponent
class representing a generic button input in d.tools
This software is distributed under the
BSD License.
- Author:
- Bjoern Hartmann ( bjoern(AT)stanford.edu ), Michael Bernstein ( mbernst(AT)stanford.edu )
- See Also:
- Serialized Form
Methods inherited from class edu.stanford.hci.dtools.deviceeditor.components.IOComponent |
getControlSignalSources, getControlSignalTargets, getDefaultContinuousControlSignalTarget, getDefaultControlSignalSource, getDefaultDiscreteControlSignalTarget, getDeviceConfiguration, getDiagramComponent, getHardwareAddress, getHardwareConnection, getHardwareConnectionImage, getHighlighted, getImageFilename, getLocation, getName, getPrivateName, getPropertyDescriptors, getSize, getSocket, getSocketImage, getTypeName, setDeviceConfiguration, setDiagramComponent, setHardwareAddress, setHardwareConnection, setHighlighted, setImageFilename, setLocation, setName, setPrivateName, setSize, setSocket |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ButtonComponent
public ButtonComponent(java.lang.String name,
java.lang.String image,
org.eclipse.draw2d.geometry.Point location,
org.eclipse.draw2d.geometry.Dimension dimensions,
java.lang.String hardware)
ButtonComponent
public ButtonComponent()
ButtonComponent
public ButtonComponent(ButtonComponent copy)
getCopy
public IOComponent getCopy()
- Specified by:
getCopy
in class IOComponent
getDefaultImage
public java.lang.String getDefaultImage()
- Returns the location of the default button component rendering image
- Specified by:
getDefaultImage
in class IOComponent
- Returns:
hasEvent
public boolean hasEvent(EventConditional e)
- Description copied from class:
InputComponent
- returns true if this inputcomponent has a matching event
- Specified by:
hasEvent
in class InputComponent
getDefaultEvent
public EventConditional getDefaultEvent(java.util.ArrayList<EventConditional> possibleEvents)
- Specified by:
getDefaultEvent
in class InputComponent
generateEvents
public java.util.ArrayList<EventConditional> generateEvents()
- Specified by:
generateEvents
in class InputComponent
update
public void update(java.lang.Object[] arguments)
- Description copied from class:
InputComponent
- Updates the component state based on incoming messages
- Specified by:
update
in class InputComponent
- Parameters:
arguments
- arguments of the OSC message received
isButtonDown
public boolean isButtonDown()
getSwitchMode
public boolean getSwitchMode()