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 theConnectionModel
within theModel
structure.AdaptedConnector<M>
getAdaptedConnector(java.lang.Class<? extends ConnectionModel> connectionClass, AdaptedConnectorRole type)
Obtains theAdaptedConnectorImpl
.java.util.List<AdaptedConnector<M>>
getAdaptedConnectors()
Obtains theAdaptedConnectorImpl
instances.java.util.List<AdaptedConnection<?>>
getConnections()
Obtains theAdaptedConnection
instances of thisAdaptedConnectable
and all itsAdaptedConnectable
instances.int
getDragLatency()
Obtains the the drag latency.AdaptedErrorHandler
getErrorHandler()
Obtains theAdaptedErrorHandler
.<T extends Model>
AdaptedPotentialConnectiongetPotentialConnection(AdaptedConnectable<T> target)
Obtains theAdaptedPotentialConnection
to the target.SelectOnly
getSelectOnly()
Obtains whetherSelectOnly
.javafx.beans.property.Property<java.lang.String>
getStylesheet()
Obtains theProperty
to the style sheet for thisAdaptedConnectable
.javafx.beans.property.ReadOnlyProperty<java.net.URL>
getStylesheetUrl()
Obtains theProperty
to 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 theAdaptedConnectorImpl
instances.- Returns:
AdaptedConnectorImpl
instances.
-
getAdaptedConnector
AdaptedConnector<M> getAdaptedConnector(java.lang.Class<? extends ConnectionModel> connectionClass, AdaptedConnectorRole type)
Obtains theAdaptedConnectorImpl
.- Parameters:
connectionClass
-ConnectionModel
Class
.type
-AdaptedConnectorRole
.- Returns:
AdaptedConnectorImpl
.
-
getConnections
java.util.List<AdaptedConnection<?>> getConnections()
Obtains theAdaptedConnection
instances of thisAdaptedConnectable
and all itsAdaptedConnectable
instances.- Returns:
AdaptedConnection
instances.
-
getPotentialConnection
<T extends Model> AdaptedPotentialConnection getPotentialConnection(AdaptedConnectable<T> target)
Obtains theAdaptedPotentialConnection
to the target.- Type Parameters:
T
- TargetModel
type.- Parameters:
target
- TargetAdaptedConnectable
,- Returns:
AdaptedPotentialConnection
to the target ornull
if no means to connect to target.
-
createConnection
<T extends Model> void createConnection(AdaptedConnectable<T> target, AdaptedConnectorRole sourceRole)
Creates theConnectionModel
within theModel
structure.- Type Parameters:
T
- TargetModel
type.- Parameters:
target
- TargetAdaptedConnectable
.sourceRole
-AdaptedConnectorRole
of the this sourceAdaptedConnectable
.
-
getStylesheet
javafx.beans.property.Property<java.lang.String> getStylesheet()
Obtains theProperty
to the style sheet for thisAdaptedConnectable
.- Returns:
Property
to the style sheet for thisAdaptedConnectable
.
-
getStylesheetUrl
javafx.beans.property.ReadOnlyProperty<java.net.URL> getStylesheetUrl()
Obtains the
Property
to the style sheet URL for this visual of thisAdaptedConnectable
.May be
null
to indicate no specific styling.- Returns:
ReadOnlyProperty
to the style sheetURL
. May benull
.
-
action
<R extends Model,O> void action(ModelAction<R,O,M> action)
Undertakes theModelAction
.- Type Parameters:
R
- RootModel
type.O
- Operations type.- Parameters:
action
-ModelAction
.
-
getErrorHandler
AdaptedErrorHandler getErrorHandler()
Obtains theAdaptedErrorHandler
.- Specified by:
getErrorHandler
in interfaceAdaptedModel<M extends Model>
- Returns:
AdaptedErrorHandler
.
-
getDragLatency
int getDragLatency()
Obtains the the drag latency.- Returns:
- Drag latency.
-
getSelectOnly
SelectOnly getSelectOnly()
Obtains whetherSelectOnly
.- Returns:
SelectOnly
ornull
to allow functionality.
-
-