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>
ProxyAdaptedConnection
to 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 boolean
canRemove()
Indicates whether able to remove theConnectionModel
.AdaptedErrorHandler
getErrorHandler()
Obtains theAdaptedErrorHandler
.ConnectionModel
getModel()
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.BendPoint
getTargetBendPoint()
Obtains the targetIBendableContentPart.BendPoint
.void
remove()
Removes theConnectionModel
.void
setBendPoints(java.util.List<org.eclipse.gef.mvc.fx.parts.IBendableContentPart.BendPoint> bendPoints)
Specifies theIBendableContentPart.BendPoint
instances.
-
-
-
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.BendPoint
instances.- Parameters:
bendPoints
-IBendableContentPart.BendPoint
instances.
-
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:AdaptedModel
Obtains theModel
.- Specified by:
getModel
in interfaceAdaptedModel<R extends Model>
- Returns:
Model
.
-
getParent
public AdaptedModel<?> getParent()
Description copied from interface:AdaptedModel
Obtains the parentAdaptedModel
.- Specified by:
getParent
in interfaceAdaptedModel<R extends Model>
- Returns:
- Parent
AdaptedModel
ornull
ifAdaptedParent
.
-
getErrorHandler
public AdaptedErrorHandler getErrorHandler()
Description copied from interface:AdaptedModel
Obtains theAdaptedErrorHandler
.- Specified by:
getErrorHandler
in interfaceAdaptedModel<R extends Model>
- Returns:
AdaptedErrorHandler
.
-
getSource
public AdaptedChild<?> getSource()
Description copied from interface:AdaptedConnection
Obtains the sourceAdaptedConnectable
.- Specified by:
getSource
in interfaceAdaptedConnection<R extends Model>
- Returns:
- Source
AdaptedConnectable
.
-
getTarget
public AdaptedChild<?> getTarget()
Description copied from interface:AdaptedConnection
Obtains the targetAdaptedConnectable
.- Specified by:
getTarget
in interfaceAdaptedConnection<R extends Model>
- Returns:
- Target
AdaptedConnectable
.
-
canRemove
public boolean canRemove()
Description copied from interface:AdaptedConnection
Indicates whether able to remove theConnectionModel
.- Specified by:
canRemove
in interfaceAdaptedConnection<R extends Model>
- Returns:
true
if able to remove theConnectionModel
.
-
remove
public void remove()
Description copied from interface:AdaptedConnection
Removes theConnectionModel
.- Specified by:
remove
in interfaceAdaptedConnection<R extends Model>
-
-