Package net.officefloor.gef.editor
Interface AdaptedConnectable<M extends Model>
-
- All Superinterfaces:
AdaptedModel<M>
- All Known Subinterfaces:
AdaptedArea<M>,AdaptedChild<M>,AdaptedParent<M>
- All Known Implementing Classes:
AbstractAdaptedConnectableFactory.AbstractAdaptedConnectable,AdaptedAreaFactory.AdaptedAreaImpl,AdaptedChildFactory.AdaptedChildImpl,AdaptedParentFactory.AdaptedParentImpl
public interface AdaptedConnectable<M extends Model> extends AdaptedModel<M>
AdaptedModel.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <R extends Model,O>
voidaction(ModelAction<R,O,M> action)Undertakes theModelAction.<T extends Model>
voidcreateConnection(AdaptedConnectable<T> target, AdaptedConnectorRole sourceRole)Creates theConnectionModelwithin theModelstructure.AdaptedConnector<M>getAdaptedConnector(java.lang.Class<? extends ConnectionModel> connectionClass, AdaptedConnectorRole type)Obtains theAdaptedConnectorImpl.java.util.List<AdaptedConnector<M>>getAdaptedConnectors()Obtains theAdaptedConnectorImplinstances.java.util.List<AdaptedConnection<?>>getConnections()Obtains theAdaptedConnectioninstances of thisAdaptedConnectableand all itsAdaptedConnectableinstances.intgetDragLatency()Obtains the the drag latency.AdaptedErrorHandlergetErrorHandler()Obtains theAdaptedErrorHandler.<T extends Model>
AdaptedPotentialConnectiongetPotentialConnection(AdaptedConnectable<T> target)Obtains theAdaptedPotentialConnectionto the target.SelectOnlygetSelectOnly()Obtains whetherSelectOnly.javafx.beans.property.Property<java.lang.String>getStylesheet()Obtains thePropertyto the style sheet for thisAdaptedConnectable.javafx.beans.property.ReadOnlyProperty<java.net.URL>getStylesheetUrl()Obtains thePropertyto the style sheet URL for this visual of thisAdaptedConnectable.-
Methods inherited from interface net.officefloor.gef.editor.AdaptedModel
getModel, getParent
-
-
-
-
Method Detail
-
getAdaptedConnectors
java.util.List<AdaptedConnector<M>> getAdaptedConnectors()
Obtains theAdaptedConnectorImplinstances.- Returns:
AdaptedConnectorImplinstances.
-
getAdaptedConnector
AdaptedConnector<M> getAdaptedConnector(java.lang.Class<? extends ConnectionModel> connectionClass, AdaptedConnectorRole type)
Obtains theAdaptedConnectorImpl.- Parameters:
connectionClass-ConnectionModelClass.type-AdaptedConnectorRole.- Returns:
AdaptedConnectorImpl.
-
getConnections
java.util.List<AdaptedConnection<?>> getConnections()
Obtains theAdaptedConnectioninstances of thisAdaptedConnectableand all itsAdaptedConnectableinstances.- Returns:
AdaptedConnectioninstances.
-
getPotentialConnection
<T extends Model> AdaptedPotentialConnection getPotentialConnection(AdaptedConnectable<T> target)
Obtains theAdaptedPotentialConnectionto the target.- Type Parameters:
T- TargetModeltype.- Parameters:
target- TargetAdaptedConnectable,- Returns:
AdaptedPotentialConnectionto the target ornullif no means to connect to target.
-
createConnection
<T extends Model> void createConnection(AdaptedConnectable<T> target, AdaptedConnectorRole sourceRole)
Creates theConnectionModelwithin theModelstructure.- Type Parameters:
T- TargetModeltype.- Parameters:
target- TargetAdaptedConnectable.sourceRole-AdaptedConnectorRoleof the this sourceAdaptedConnectable.
-
getStylesheet
javafx.beans.property.Property<java.lang.String> getStylesheet()
Obtains thePropertyto the style sheet for thisAdaptedConnectable.- Returns:
Propertyto the style sheet for thisAdaptedConnectable.
-
getStylesheetUrl
javafx.beans.property.ReadOnlyProperty<java.net.URL> getStylesheetUrl()
Obtains the
Propertyto the style sheet URL for this visual of thisAdaptedConnectable.May be
nullto indicate no specific styling.- Returns:
ReadOnlyPropertyto the style sheetURL. May benull.
-
action
<R extends Model,O> void action(ModelAction<R,O,M> action)
Undertakes theModelAction.- Type Parameters:
R- RootModeltype.O- Operations type.- Parameters:
action-ModelAction.
-
getErrorHandler
AdaptedErrorHandler getErrorHandler()
Obtains theAdaptedErrorHandler.- Specified by:
getErrorHandlerin interfaceAdaptedModel<M extends Model>- Returns:
AdaptedErrorHandler.
-
getDragLatency
int getDragLatency()
Obtains the the drag latency.- Returns:
- Drag latency.
-
getSelectOnly
SelectOnly getSelectOnly()
Obtains whetherSelectOnly.- Returns:
SelectOnlyornullto allow functionality.
-
-