Class ProxyAdaptedConnection<R extends Model,O>
- java.lang.Object
-
- net.officefloor.gef.editor.internal.models.ProxyAdaptedConnection<R,O>
-
- All Implemented Interfaces:
AdaptedConnection<ConnectionModel>,AdaptedModel<ConnectionModel>
public class ProxyAdaptedConnection<R extends Model,O> extends java.lang.Object implements AdaptedConnection<ConnectionModel>
ProxyAdaptedConnectionto enable creating connections.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ProxyAdaptedConnection(AdaptedConnector<?> sourceConnector)Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanRemove()Indicates whether able to remove theConnectionModel.AdaptedErrorHandlergetErrorHandler()Obtains theAdaptedErrorHandler.ConnectionModelgetModel()Obtains theModel.AdaptedModel<?>getParent()Obtains the parentAdaptedModel.AdaptedChild<?>getSource()Obtains the sourceAdaptedConnectable.AdaptedConnector<?>getSourceAdaptedConnector()Obtains the sourceAdaptedConnector.AdaptedChild<?>getTarget()Obtains the targetAdaptedConnectable.org.eclipse.gef.mvc.fx.parts.IBendableContentPart.BendPointgetTargetBendPoint()Obtains the targetIBendableContentPart.BendPoint.voidremove()Removes theConnectionModel.voidsetBendPoints(java.util.List<org.eclipse.gef.mvc.fx.parts.IBendableContentPart.BendPoint> bendPoints)Specifies theIBendableContentPart.BendPointinstances.
-
-
-
Constructor Detail
-
ProxyAdaptedConnection
public ProxyAdaptedConnection(AdaptedConnector<?> sourceConnector)
Instantiate.- Parameters:
sourceConnector- SourceAdaptedConnector.
-
-
Method Detail
-
getSourceAdaptedConnector
public AdaptedConnector<?> getSourceAdaptedConnector()
Obtains the sourceAdaptedConnector.- Returns:
- Source
AdaptedConnector.
-
setBendPoints
public void setBendPoints(java.util.List<org.eclipse.gef.mvc.fx.parts.IBendableContentPart.BendPoint> bendPoints)
Specifies theIBendableContentPart.BendPointinstances.- Parameters:
bendPoints-IBendableContentPart.BendPointinstances.
-
getTargetBendPoint
public org.eclipse.gef.mvc.fx.parts.IBendableContentPart.BendPoint getTargetBendPoint()
Obtains the targetIBendableContentPart.BendPoint.- Returns:
- Target
IBendableContentPart.BendPoint.
-
getModel
public ConnectionModel getModel()
Description copied from interface:AdaptedModelObtains theModel.- Specified by:
getModelin interfaceAdaptedModel<R extends Model>- Returns:
Model.
-
getParent
public AdaptedModel<?> getParent()
Description copied from interface:AdaptedModelObtains the parentAdaptedModel.- Specified by:
getParentin interfaceAdaptedModel<R extends Model>- Returns:
- Parent
AdaptedModelornullifAdaptedParent.
-
getErrorHandler
public AdaptedErrorHandler getErrorHandler()
Description copied from interface:AdaptedModelObtains theAdaptedErrorHandler.- Specified by:
getErrorHandlerin interfaceAdaptedModel<R extends Model>- Returns:
AdaptedErrorHandler.
-
getSource
public AdaptedChild<?> getSource()
Description copied from interface:AdaptedConnectionObtains the sourceAdaptedConnectable.- Specified by:
getSourcein interfaceAdaptedConnection<R extends Model>- Returns:
- Source
AdaptedConnectable.
-
getTarget
public AdaptedChild<?> getTarget()
Description copied from interface:AdaptedConnectionObtains the targetAdaptedConnectable.- Specified by:
getTargetin interfaceAdaptedConnection<R extends Model>- Returns:
- Target
AdaptedConnectable.
-
canRemove
public boolean canRemove()
Description copied from interface:AdaptedConnectionIndicates whether able to remove theConnectionModel.- Specified by:
canRemovein interfaceAdaptedConnection<R extends Model>- Returns:
trueif able to remove theConnectionModel.
-
remove
public void remove()
Description copied from interface:AdaptedConnectionRemoves theConnectionModel.- Specified by:
removein interfaceAdaptedConnection<R extends Model>
-
-