public class BeanConnection extends Object implements Serializable
| Constructor and Description |
|---|
BeanConnection(BeanInstance source,
BeanInstance target,
EventSetDescriptor esd,
Integer... tab)
Creates a new
BeanConnection instance. |
| Modifier and Type | Method and Description |
|---|---|
static void |
addConnections(Vector<BeanConnection> connections)
Add the supplied collection of connections to the end of the list.
|
static void |
appendConnections(Vector<BeanConnection> connections,
int tab)
Append the supplied connections to the list for the given tab index
|
static Vector<BeanConnection> |
associatedConnections(Vector<Object> subFlow,
Integer... tab)
Returns a vector of BeanConnections associated with the supplied vector of
BeanInstances, i.e.
|
static void |
doMetaConnection(BeanInstance source,
BeanInstance target,
EventSetDescriptor esd,
JComponent displayComponent,
int tab) |
static Vector<BeanConnection> |
getClosestConnections(Point pt,
int delta,
Integer... tab)
Return a list of connections within some delta of a point
|
static Vector<BeanConnection> |
getConnections(Integer... tab)
Returns the list of connections
|
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 Vector<Object> |
inputs(Vector<Object> subset,
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 Vector<Object> |
outputs(Vector<Object> subset,
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(Graphics gx,
Integer... tab)
Renders the connections and their names on the supplied graphics context
|
void |
remove(Integer... tab)
Remove this connection
|
static void |
removeConnectionList(Integer tab)
Remove the list of connections at the supplied index
|
static void |
removeConnections(BeanInstance instance,
Integer... tab)
Remove all connections for a bean.
|
static void |
setConnections(Vector<BeanConnection> connections,
Integer... tab)
Describe
setConnections method here. |
void |
setHidden(boolean hidden)
Make this connection invisible on the display
|
public BeanConnection(BeanInstance source, BeanInstance target, EventSetDescriptor esd, Integer... tab)
BeanConnection instance.source - the source beantarget - the target beanesd - the EventSetDescriptor for the connection be displayedpublic static void init()
public static Vector<BeanConnection> getConnections(Integer... tab)
public static void setConnections(Vector<BeanConnection> connections, Integer... tab)
setConnections method here.connections - a Vector valuepublic static void addConnections(Vector<BeanConnection> connections)
connections - the connections to addpublic static void appendConnections(Vector<BeanConnection> connections, int tab)
connections - the connections to appendtab - the index of the list to append topublic static Vector<BeanConnection> associatedConnections(Vector<Object> subFlow, Integer... tab)
subFlow - a Vector of BeanInstancespublic static Vector<Object> inputs(Vector<Object> subset, Integer... tab)
subset - the sub-flow to examinepublic static Vector<Object> outputs(Vector<Object> subset, Integer... tab)
subset - the sub-flow to examinepublic static void paintConnections(Graphics gx, Integer... tab)
gx - a Graphics valuepublic static Vector<BeanConnection> getClosestConnections(Point pt, int delta, Integer... tab)
pt - the point at which to look for connectionsdelta - connections have to be within this delta of the pointpublic static void removeConnectionList(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, Integer... tab)
instance - the bean to remove connections to/frompublic static void doMetaConnection(BeanInstance source, BeanInstance target, EventSetDescriptor esd, JComponent displayComponent, int tab)
public void setHidden(boolean hidden)
hidden - true to make the connection invisiblepublic boolean isHidden()
public void remove(Integer... tab)
public BeanInstance getSource()
BeanInstance valuepublic BeanInstance getTarget()
BeanInstance valuepublic String getEventName()
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.