public class BeanConnection
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description | 
|---|---|
| static java.util.Vector | CONNECTIONSThe list of connections | 
| Constructor and Description | 
|---|
| BeanConnection(BeanInstance source,
              BeanInstance target,
              java.beans.EventSetDescriptor esd)Creates a new  BeanConnectioninstance. | 
| Modifier and Type | Method and Description | 
|---|---|
| static java.util.Vector | associatedConnections(java.util.Vector subFlow)Returns a vector of BeanConnections associated with
 the supplied vector of BeanInstances, i.e. | 
| static void | doMetaConnection(BeanInstance source,
                BeanInstance target,
                java.beans.EventSetDescriptor esd,
                javax.swing.JComponent displayComponent) | 
| static java.util.Vector | getClosestConnections(java.awt.Point pt,
                     int delta)Return a list of connections within some delta of a point | 
| static java.util.Vector | getConnections()Returns the list of connections | 
| java.lang.String | getEventName()Returns the name of the event for this conncetion | 
| BeanInstance | getSource()returns the source BeanInstance for this connection | 
| BeanInstance | getTarget()Returns the target BeanInstance for this connection | 
| static java.util.Vector | inputs(java.util.Vector subset)Returns a vector of BeanInstances that can be considered
 as inputs (or the left-hand side of a sub-flow) | 
| boolean | isHidden()Returns true if this connection is invisible | 
| static java.util.Vector | outputs(java.util.Vector subset)Returns a vector of BeanInstances that can be considered
 as outputs (or the right-hand side of a sub-flow) | 
| static void | paintConnections(java.awt.Graphics gx)Renders the connections and their names on the supplied graphics
 context | 
| void | remove()Remove this connection | 
| static void | removeConnections(BeanInstance instance)Remove all connections for a bean. | 
| static void | reset()Reset the list of connections | 
| static void | setConnections(java.util.Vector connections)Describe  setConnectionsmethod here. | 
| void | setHidden(boolean hidden)Make this connection invisible on the display | 
public BeanConnection(BeanInstance source, BeanInstance target, java.beans.EventSetDescriptor esd)
BeanConnection instance.source - the source beantarget - the target beanesd - the EventSetDescriptor for the connection
 be displayedpublic static void reset()
public static java.util.Vector getConnections()
public static void setConnections(java.util.Vector connections)
setConnections method here.connections - a Vector valuepublic static java.util.Vector associatedConnections(java.util.Vector subFlow)
subFlow - a Vector of BeanInstancespublic static java.util.Vector inputs(java.util.Vector subset)
subset - the sub-flow to examinepublic static java.util.Vector outputs(java.util.Vector subset)
subset - the sub-flow to examinepublic static void paintConnections(java.awt.Graphics gx)
gx - a Graphics valuepublic static java.util.Vector getClosestConnections(java.awt.Point pt,
                                                     int delta)
pt - the point at which to look for connectionsdelta - connections have to be within this delta of the pointpublic static void removeConnections(BeanInstance instance)
instance - the bean to remove connections to/frompublic static void doMetaConnection(BeanInstance source, BeanInstance target, java.beans.EventSetDescriptor esd, javax.swing.JComponent displayComponent)
public void setHidden(boolean hidden)
hidden - true to make the connection invisiblepublic boolean isHidden()
public void remove()
public BeanInstance getSource()
BeanInstance valuepublic BeanInstance getTarget()
BeanInstance valuepublic java.lang.String getEventName()