SEdit
Class SComponent
java.lang.Object
SEdit.SElement
SEdit.SNode
SEdit.SComponent
- Direct Known Subclasses:
- SLogicalComponent
- public class SComponent
- extends SNode
CLASSE SComponent
Decrit un noeud qui comporte un ensemble
de connecteurs en entrée et en sortie
(reprend la structure de SModule d'une manière générale...)
Les différences avec SModule sont indiquées en commentaire..
La grande différence vient des connecteurs: SInConnect et SOutConnect
qui fonctionne différemment des "pins".
Methods inherited from class SEdit.SElement |
dump, getComment, getDescriptor, getGObject, getID, getLabel, getStructure, init, inspect, setComment, setDescriptor, setGObject, setID, setLabel, setStructure |
SComponent
public SComponent()
getInArrows
public Vector getInArrows()
- Specified by:
getInArrows
in class SNode
getOutArrows
public Vector getOutArrows()
- Specified by:
getOutArrows
in class SNode
addOutArrow
protected void addOutArrow(SArrow a)
- Specified by:
addOutArrow
in class SNode
addInArrow
protected void addInArrow(SArrow a)
- Specified by:
addInArrow
in class SNode
addConnector
public void addConnector(String s)
addInConnect
protected void addInConnect(String n,
SInConnect a)
addOutConnect
protected void addOutConnect(String n,
SOutConnect a)
removeInConnect
protected void removeInConnect(SInConnect a)
removeOutConnect
protected void removeOutConnect(SOutConnect a)
removeConnector
protected void removeConnector(SConnect a)
getInConnect
public SInConnect getInConnect(int index)
getOutConnect
public SOutConnect getOutConnect(int index)
getInConnect
public SInConnect getInConnect(String s)
getOutConnect
public SOutConnect getOutConnect(String s)
getInNames
public Enumeration getInNames()
getOutNames
public Enumeration getOutNames()
getInConnectors
public Enumeration getInConnectors()
getOutConnectors
public Enumeration getOutConnectors()
deleteConnector
public void deleteConnector(String remove)
delete
public void delete()
- Overrides:
delete
in class SNode
computeConnectorsPositions
public void computeConnectorsPositions()
isConnectable
protected boolean isConnectable(SArrow s,
boolean isTarget)
- Specified by:
isConnectable
in class SNode
toString
public String toString()
Copyright © J. Ferber, O. Gutknecht All Rights Reserved.