|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.gui.beans.BeanConnection
Class for encapsulating a connection between two beans. Also maintains a list of all connections
Field Summary | |
static java.util.Vector |
CONNECTIONS
The list of connections |
private java.lang.String |
m_eventName
The name of the event for this connection |
private BeanInstance |
m_source
|
private BeanInstance |
m_target
|
Constructor Summary | |
BeanConnection(BeanInstance source,
BeanInstance target,
java.beans.EventSetDescriptor esd)
Creates a new BeanConnection instance. |
Method Summary | |
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 |
protected BeanInstance |
getSource()
returns the source BeanInstance for this connection |
protected java.beans.EventSetDescriptor |
getSourceEventSetDescriptor()
Returns the event set descriptor for the event generated by the source for this connection |
protected BeanInstance |
getTarget()
Returns the target BeanInstance for this connection |
static void |
paintConnections(java.awt.Graphics gx)
Renders the connections and their names on the supplied graphics context |
private static boolean |
previousLink(BeanInstance source,
BeanInstance target,
int index)
Returns true if there is a link between the supplied source and target BeanInstances at an earlier index than the supplied index |
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 setConnections method here. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.util.Vector CONNECTIONS
private BeanInstance m_source
private BeanInstance m_target
private java.lang.String m_eventName
Constructor Detail |
public BeanConnection(BeanInstance source, BeanInstance target, java.beans.EventSetDescriptor esd)
BeanConnection
instance.
source
- the source beantarget
- the target beanesd
- the EventSetDescriptor for the connectionMethod Detail |
public static void reset()
public static java.util.Vector getConnections()
public static void setConnections(java.util.Vector connections)
setConnections
method here.
connections
- a Vector
valueprivate static boolean previousLink(BeanInstance source, BeanInstance target, int index)
source
- the source BeanInstancetarget
- the target BeanInstanceindex
- the index to compare to
public 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 point
public static void removeConnections(BeanInstance instance)
instance
- the bean to remove connections to/frompublic void remove()
protected BeanInstance getSource()
BeanInstance
valueprotected BeanInstance getTarget()
BeanInstance
valueprotected java.beans.EventSetDescriptor getSourceEventSetDescriptor()
EventSetDescriptor
value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |