|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.gui.beans.BeanConnection
public class BeanConnection
Class for encapsulating a connection between two beans. Also maintains a list of all connections
| Constructor Summary | |
|---|---|
BeanConnection(BeanInstance source,
BeanInstance target,
EventSetDescriptor esd,
Integer... tab)
Creates a new BeanConnection instance. |
|
| Method Summary | |
|---|---|
static void |
addConnections(Vector connections)
Add the supplied collection of connections to the end of the list. |
static void |
appendConnections(Vector connections,
int tab)
Append the supplied connections to the list for the given tab index |
static Vector |
associatedConnections(Vector 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 |
getClosestConnections(Point pt,
int delta,
Integer... tab)
Return a list of connections within some delta of a point |
static Vector |
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 |
inputs(Vector 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 |
outputs(Vector 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 connections,
Integer... tab)
Describe setConnections method here. |
void |
setHidden(boolean hidden)
Make this connection invisible on the display |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 displayed| Method Detail |
|---|
public static void init()
public static Vector getConnections(Integer... tab)
public static void setConnections(Vector connections,
Integer... tab)
setConnections method here.
connections - a Vector valuepublic static void addConnections(Vector connections)
connections - the connections to add
public static void appendConnections(Vector connections,
int tab)
connections - the connections to appendtab - the index of the list to append to
public static Vector associatedConnections(Vector subFlow,
Integer... tab)
subFlow - a Vector of BeanInstances
public static Vector inputs(Vector subset,
Integer... tab)
subset - the sub-flow to examine
public static Vector outputs(Vector subset,
Integer... tab)
subset - the sub-flow to examine
public static void paintConnections(Graphics gx,
Integer... tab)
gx - a Graphics value
public static Vector 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 point
public 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 remove
public static void removeConnections(BeanInstance instance,
Integer... tab)
instance - the bean to remove connections to/from
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||