simtools.diagram
Interface DiagramConnector

All Known Implementing Classes:
TestComponent.TestShape

public interface DiagramConnector

An interface for diagram elements that can be connected by other elements named DiagramConnection

Version:
1.0 1999
Author:
Claude Cazenave

Method Summary
 boolean allowsInputConnection(DiagramConnector out)
          Checks if this connector can be connected with an output connector
 boolean allowsOutputConnection(DiagramConnector in)
          Checks if this connector can be connected with an input connector
 DiagramConnector connectorOwner()
          Returns the connector owner of this connector if any
 java.util.Enumeration getConnections()
          Gets the list of DiagramConnection connected with this connector
 

Method Detail

getConnections

java.util.Enumeration getConnections()
Gets the list of DiagramConnection connected with this connector

Returns:
the list of DiagramConnection

allowsInputConnection

boolean allowsInputConnection(DiagramConnector out)
Checks if this connector can be connected with an output connector

Parameters:
out - the output connector
Returns:
true if it can

allowsOutputConnection

boolean allowsOutputConnection(DiagramConnector in)
Checks if this connector can be connected with an input connector

Parameters:
in - the input connector
Returns:
true if it can

connectorOwner

DiagramConnector connectorOwner()
Returns the connector owner of this connector if any

Returns:
the owner or null if the owner is not a connector