SEdit
Class SComponent

java.lang.Object
  extended bySEdit.SElement
      extended bySEdit.SNode
          extended bySEdit.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".


Field Summary
 
Fields inherited from class SEdit.SElement
comment, descriptor, element, id, label, persistent, structure
 
Constructor Summary
SComponent()
           
 
Method Summary
 void addConnector(String s)
           
protected  void addInArrow(SArrow a)
           
protected  void addInConnect(String n, SInConnect a)
           
protected  void addOutArrow(SArrow a)
           
protected  void addOutConnect(String n, SOutConnect a)
           
 void computeConnectorsPositions()
           
 void delete()
           
 void deleteConnector(String remove)
           
 Vector getInArrows()
           
 SInConnect getInConnect(int index)
           
 SInConnect getInConnect(String s)
           
 Enumeration getInConnectors()
           
 Enumeration getInNames()
           
 Vector getOutArrows()
           
 SOutConnect getOutConnect(int index)
           
 SOutConnect getOutConnect(String s)
           
 Enumeration getOutConnectors()
           
 Enumeration getOutNames()
           
protected  boolean isConnectable(SArrow s, boolean isTarget)
           
protected  void removeConnector(SConnect a)
           
protected  void removeInConnect(SInConnect a)
           
protected  void removeOutConnect(SOutConnect a)
           
 String toString()
           
 
Methods inherited from class SEdit.SNode
activate, deleteInArrow, deleteOutArrow, initGraphics, reInstall
 
Methods inherited from class SEdit.SElement
dump, getComment, getDescriptor, getGObject, getID, getLabel, getStructure, init, inspect, setComment, setDescriptor, setGObject, setID, setLabel, setStructure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SComponent

public SComponent()
Method Detail

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.