public class BeanConnection
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
BeanConnection(BeanInstance source,
BeanInstance target,
java.beans.EventSetDescriptor esd,
java.lang.Integer... tab)
Creates a new
BeanConnection instance. |
| Modifier and Type | Method and Description |
|---|---|
static void |
addConnections(java.util.Vector<BeanConnection> connections)
Add the supplied collection of connections to the end of the list.
|
static void |
appendConnections(java.util.Vector<BeanConnection> connections,
int tab)
Append the supplied connections to the list for the given tab index
|
static java.util.Vector<BeanConnection> |
associatedConnections(java.util.Vector<java.lang.Object> subFlow,
java.lang.Integer... tab)
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,
int tab) |
static java.util.Vector<BeanConnection> |
getClosestConnections(java.awt.Point pt,
int delta,
java.lang.Integer... tab)
Return a list of connections within some delta of a point
|
static java.util.Vector<BeanConnection> |
getConnections(java.lang.Integer... tab)
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 void |
init()
Sets up just a single collection of bean connections in the first element
of the list.
|
static java.util.Vector<java.lang.Object> |
inputs(java.util.Vector<java.lang.Object> subset,
java.lang.Integer... tab)
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<java.lang.Object> |
outputs(java.util.Vector<java.lang.Object> subset,
java.lang.Integer... tab)
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,
java.lang.Integer... tab)
Renders the connections and their names on the supplied graphics context
|
void |
remove(java.lang.Integer... tab)
Remove this connection
|
static void |
removeConnectionList(java.lang.Integer tab)
Remove the list of connections at the supplied index
|
static void |
removeConnections(BeanInstance instance,
java.lang.Integer... tab)
Remove all connections for a bean.
|
static void |
setConnections(java.util.Vector<BeanConnection> connections,
java.lang.Integer... tab)
Describe
setConnections method here. |
void |
setHidden(boolean hidden)
Make this connection invisible on the display
|
public BeanConnection(BeanInstance source, BeanInstance target, java.beans.EventSetDescriptor esd, java.lang.Integer... tab)
BeanConnection instance.source - the source beantarget - the target beanesd - the EventSetDescriptor for the connection be displayedpublic static void init()
public static java.util.Vector<BeanConnection> getConnections(java.lang.Integer... tab)
public static void setConnections(java.util.Vector<BeanConnection> connections, java.lang.Integer... tab)
setConnections method here.connections - a Vector valuepublic static void addConnections(java.util.Vector<BeanConnection> connections)
connections - the connections to addpublic static void appendConnections(java.util.Vector<BeanConnection> connections, int tab)
connections - the connections to appendtab - the index of the list to append topublic static java.util.Vector<BeanConnection> associatedConnections(java.util.Vector<java.lang.Object> subFlow, java.lang.Integer... tab)
subFlow - a Vector of BeanInstancespublic static java.util.Vector<java.lang.Object> inputs(java.util.Vector<java.lang.Object> subset,
java.lang.Integer... tab)
subset - the sub-flow to examinepublic static java.util.Vector<java.lang.Object> outputs(java.util.Vector<java.lang.Object> subset,
java.lang.Integer... tab)
subset - the sub-flow to examinepublic static void paintConnections(java.awt.Graphics gx,
java.lang.Integer... tab)
gx - a Graphics valuepublic static java.util.Vector<BeanConnection> getClosestConnections(java.awt.Point pt, int delta, java.lang.Integer... tab)
pt - the point at which to look for connectionsdelta - connections have to be within this delta of the pointpublic static void removeConnectionList(java.lang.Integer tab)
tab - the index of the list to remove (correspods to a tab in the
Knowledge Flow UI)tab - the index of the list of connections to removepublic static void removeConnections(BeanInstance instance, java.lang.Integer... tab)
instance - the bean to remove connections to/frompublic static void doMetaConnection(BeanInstance source, BeanInstance target, java.beans.EventSetDescriptor esd, javax.swing.JComponent displayComponent, int tab)
public void setHidden(boolean hidden)
hidden - true to make the connection invisiblepublic boolean isHidden()
public void remove(java.lang.Integer... tab)
public BeanInstance getSource()
BeanInstance valuepublic BeanInstance getTarget()
BeanInstance valuepublic java.lang.String getEventName()