|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pnp.xfeature.models.AbstractComponentModel
com.pnp.xfeature.models.FeatureConnectionModel
public class FeatureConnectionModel
Model of the connections between feature nodes.
| Constructor Summary | |
|---|---|
FeatureConnectionModel()
|
|
| Method Summary | |
|---|---|
void |
attachSource()
attaches the connection to its source |
void |
attachTarget()
attaches the connection to its target |
void |
disconnect()
Disconnect this connection from the shapes it is attached to. |
FeatureNodeModel |
getSource()
getter method |
FeatureNodeModel |
getTarget()
getter method |
void |
reconnect()
Reconnect this connection. |
void |
reconnect(FeatureNodeModel newSource,
FeatureNodeModel newTarget)
Reconnect to a different source and/or target shape. |
void |
setSource(FeatureNodeModel source)
sets the "source" property and attached the connection to it source via call of attachSource() |
void |
setTarget(FeatureNodeModel target)
sets the "target" property and attached the connection to it source via call of attacTarget() |
java.lang.String |
toString()
|
| Methods inherited from class com.pnp.xfeature.models.AbstractComponentModel |
|---|
addPropertyChangeListener, firePropertyChange, getEditableValue, getPropertyDescriptors, getPropertyValue, isPropertySet, removePropertyChangeListener, resetPropertyValue, setPropertyValue |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FeatureConnectionModel()
| Method Detail |
|---|
public void attachSource()
public void attachTarget()
public FeatureNodeModel getSource()
public FeatureNodeModel getTarget()
public void setSource(FeatureNodeModel source)
public void setTarget(FeatureNodeModel target)
public void disconnect()
public void reconnect()
public void reconnect(FeatureNodeModel newSource,
FeatureNodeModel newTarget)
newSource - a new source endpoint for this connection (non null)newTarget - a new target endpoint for this connection (non null)
java.lang.IllegalArgumentException - if any of the paramers are null or newSource == newTargetpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||