|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.stanford.hci.dtools.statechart.model.ModelElement
edu.stanford.hci.dtools.deviceeditor.components.IOComponent
edu.stanford.hci.dtools.deviceeditor.components.OutputComponent
edu.stanford.hci.dtools.deviceeditor.components.LEDComponent
public class LEDComponent
Generic component for LEDs
This software is distributed under the BSD License.
| Field Summary | |
|---|---|
static java.lang.String |
COLOR_PROP
ID for the Color property value (used for by the corresponding property descriptor). |
| Fields inherited from class edu.stanford.hci.dtools.deviceeditor.components.IOComponent |
|---|
CONNECTION_PROP, CONTINUOUS_RANGE_MAX, CONTINUOUS_RANGE_MIN, HARDWARE_PROP, HIGHLIGHT_PROP, IMAGE_PROP, LOCATION_PROP, SIZE_PROP, SOCKET_PROP |
| Constructor Summary | |
|---|---|
LEDComponent()
|
|
LEDComponent(LEDComponent copy)
|
|
LEDComponent(java.lang.String name,
java.lang.String image,
org.eclipse.draw2d.geometry.Point location,
org.eclipse.draw2d.geometry.Dimension dimensions,
java.lang.String hardware)
Creates a generic LED component |
|
| Method Summary | |
|---|---|
org.eclipse.swt.graphics.Color |
getColor()
Gets the LED color when the LED is ON |
IOComponent |
getCopy()
|
java.lang.String |
getDefaultImage()
Return a string representing the image that should be returned if there is no other image to use |
java.lang.Object |
getPropertyValue(java.lang.Object propertyId)
Return the property value for the given propertyId, or null. |
boolean |
isLEDOn()
|
void |
setColor(org.eclipse.swt.graphics.RGB newColor)
Sets the LED color when the LED is ON |
void |
setLEDOn(boolean ledOn)
|
void |
setPropertyValue(java.lang.Object propertyId,
java.lang.Object value)
Set the property value for the given property id. |
| 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 edu.stanford.hci.dtools.statechart.model.ModelElement |
|---|
addPropertyChangeListener, getEditableValue, isPropertySet, removePropertyChangeListener, resetPropertyValue |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COLOR_PROP
| Constructor Detail |
|---|
public LEDComponent(java.lang.String name,
java.lang.String image,
org.eclipse.draw2d.geometry.Point location,
org.eclipse.draw2d.geometry.Dimension dimensions,
java.lang.String hardware)
name - image - an image you would like to draw in the background of the LEDlocation - dimensions - public LEDComponent()
public LEDComponent(LEDComponent copy)
| Method Detail |
|---|
public IOComponent getCopy()
getCopy in class IOComponentpublic org.eclipse.swt.graphics.Color getColor()
public void setColor(org.eclipse.swt.graphics.RGB newColor)
newLoc - public java.lang.Object getPropertyValue(java.lang.Object propertyId)
The property view uses the IDs from the IPropertyDescriptors array to obtain the value of the corresponding properties.
getPropertyValue in interface org.eclipse.ui.views.properties.IPropertySourcegetPropertyValue in class IOComponentIOComponent.descriptors,
IOComponent.getPropertyDescriptors()
public void setPropertyValue(java.lang.Object propertyId,
java.lang.Object value)
The property view uses the IDs from the IPropertyDescriptors array to set the values of the corresponding properties.
setPropertyValue in interface org.eclipse.ui.views.properties.IPropertySourcesetPropertyValue in class IOComponentIOComponent.descriptors,
IOComponent.getPropertyDescriptors()public java.lang.String getDefaultImage()
IOComponent
getDefaultImage in class IOComponentpublic boolean isLEDOn()
public void setLEDOn(boolean ledOn)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||