|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.stanford.hci.dtools.DeviceConfiguration
public class DeviceConfiguration
Class maintaining global configuration of the inputs and outputs available to the device. To add a new component or remove an old one, do it here.
This software is distributed under the BSD License.
| Constructor Summary | |
|---|---|
DeviceConfiguration()
|
|
DeviceConfiguration(org.eclipse.draw2d.geometry.Dimension defaultSize)
|
|
| Method Summary | |
|---|---|
void |
addInputComponent(InputComponent input)
Add a new InputComponent to the configuration |
void |
addOutputComponent(OutputComponent output)
|
org.eclipse.draw2d.geometry.Dimension |
getDefaultDeviceDimensions()
|
java.util.List<InputComponent> |
getInputArray()
Get an ArrayList of all InputComponents in the device configuration. |
InputComponent |
getInputComponentForHardwareAddress(java.lang.String address)
|
InputComponent |
getInputForName(java.lang.String name)
Returns the InputComponent for the given component name |
InputComponent |
getInputForPrivateName(java.lang.String name)
Returns the InputComponent for the given private component name |
int |
getInputIndexForComponent(InputComponent c)
called by inputpair |
java.lang.String[] |
getInputNames()
|
java.util.List<OutputComponent> |
getOutputArray()
Get an array list of all output components in the configuration |
OutputComponent |
getOutputForName(java.lang.String name)
Given a name, return the output component with that name. |
OutputComponent |
getOutputForPrivateName(java.lang.String name)
Returns the OutputComponent for the given private component name |
java.lang.String[] |
getOutputNames()
|
java.lang.String[] |
getPrivateInputNames()
|
java.lang.String[] |
getPrivateOutputNames()
|
java.lang.String |
getStateBackground()
Get a string corresponding to the image which renders as the state background |
void |
setStateBackground(java.lang.String imagefile)
Set the string corresponding to the image rendering as the state background |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeviceConfiguration()
public DeviceConfiguration(org.eclipse.draw2d.geometry.Dimension defaultSize)
| Method Detail |
|---|
public void addInputComponent(InputComponent input)
public java.util.List<InputComponent> getInputArray()
public java.lang.String[] getInputNames()
public InputComponent getInputComponentForHardwareAddress(java.lang.String address)
public java.lang.String[] getPrivateInputNames()
public InputComponent getInputForName(java.lang.String name)
name -
public int getInputIndexForComponent(InputComponent c)
public InputComponent getInputForPrivateName(java.lang.String name)
name -
public void addOutputComponent(OutputComponent output)
public java.util.List<OutputComponent> getOutputArray()
public java.lang.String[] getOutputNames()
public java.lang.String[] getPrivateOutputNames()
public OutputComponent getOutputForName(java.lang.String name)
name -
public OutputComponent getOutputForPrivateName(java.lang.String name)
name -
public org.eclipse.draw2d.geometry.Dimension getDefaultDeviceDimensions()
public void setStateBackground(java.lang.String imagefile)
imagefile - public java.lang.String getStateBackground()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||