jmri.jmrix.jinput
Class UsbNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
jmri.jmrix.jinput.UsbNode
- All Implemented Interfaces:
- Serializable, Cloneable, MutableTreeNode, TreeNode
public class UsbNode
- extends DefaultMutableTreeNode
UsbNode represents the USB controllers or component.
Generally accessed via the TreeModel.
Can be connected to a JMRI Sensor or Memory.
- See Also:
- Serialized Form
|
Constructor Summary |
UsbNode(String name,
net.java.games.input.Controller controller,
net.java.games.input.Component component)
|
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString |
name
String name
controller
net.java.games.input.Controller controller
component
net.java.games.input.Component component
val
float val
attachedSensor
String attachedSensor
attachedMemory
String attachedMemory
log
static org.slf4j.Logger log
UsbNode
UsbNode(String name,
net.java.games.input.Controller controller,
net.java.games.input.Component component)
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
getController
public net.java.games.input.Controller getController()
getComponent
public net.java.games.input.Component getComponent()
equals
public boolean equals(Object a)
- Overrides:
equals in class Object
setValue
public void setValue(float val)
getValue
public float getValue()
setAttachedSensor
public void setAttachedSensor(String sensor)
getAttachedSensor
public String getAttachedSensor()
setAttachedMemory
public void setAttachedMemory(String memory)
getAttachedMemory
public String getAttachedMemory()
getName
public String getName()
getNode
public static UsbNode getNode(String name,
net.java.games.input.Controller controller,
net.java.games.input.Component component)
- Get a specific node. This is used instead of a ctor
to ensure that node objects for a given
USB object are unique.
Copyright © 1997-2013 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: