Class AbstractAdaptedConnectablePart<M extends Model,​A extends AdaptedConnectable<M>>

  • All Implemented Interfaces:
    AdaptedModelStyler, org.eclipse.gef.common.activate.IActivatable, org.eclipse.gef.common.adapt.IAdaptable, org.eclipse.gef.common.adapt.IAdaptable.Bound<org.eclipse.gef.mvc.fx.viewer.IViewer>, org.eclipse.gef.common.dispose.IDisposable, org.eclipse.gef.mvc.fx.parts.IContentPart<javafx.scene.Node>, org.eclipse.gef.mvc.fx.parts.IVisualPart<javafx.scene.Node>
    Direct Known Subclasses:
    AdaptedAreaPart, AdaptedChildPart

    public abstract class AbstractAdaptedConnectablePart<M extends Model,​A extends AdaptedConnectable<M>>
    extends AbstractAdaptedPart<M,​A,​javafx.scene.Node>
    implements AdaptedModelStyler
    IContentPart for the AdaptedConnectable.
    Author:
    Daniel Sagenschneider
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.gef.common.adapt.IAdaptable

        org.eclipse.gef.common.adapt.IAdaptable.Bound<A extends org.eclipse.gef.common.adapt.IAdaptable>
      • Nested classes/interfaces inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound

        org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl<T extends org.eclipse.gef.common.adapt.IAdaptable>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean isPalettePrototype
      Indicates whether a Palette prototype.
      • Fields inherited from interface org.eclipse.gef.common.activate.IActivatable

        ACTIVE_PROPERTY
      • Fields inherited from interface org.eclipse.gef.common.adapt.IAdaptable

        ADAPTERS_PROPERTY
      • Fields inherited from interface org.eclipse.gef.mvc.fx.parts.IContentPart

        CONTENT_ANCHORAGES_PROPERTY, CONTENT_CHILDREN_PROPERTY, CONTENT_PROPERTY
      • Fields inherited from interface org.eclipse.gef.mvc.fx.parts.IVisualPart

        ANCHORAGES_PROPERTY, ANCHOREDS_PROPERTY, CHILDREN_PROPERTY, PARENT_PROPERTY, REFRESH_VISUAL_PROPERTY
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract javafx.scene.Node createVisualNode()
      Creates the visual Node.
      protected void doAddChildVisual​(org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node> child, int index)  
      protected void doAttachToAnchorageVisual​(org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node> anchorage, java.lang.String role)  
      javafx.scene.Node doCreateVisual()  
      protected void doDetachFromAnchorageVisual​(org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node> anchorage, java.lang.String role)  
      protected com.google.common.collect.SetMultimap<? extends java.lang.Object,​java.lang.String> doGetContentAnchorages()  
      protected java.util.List<java.lang.Object> doGetContentChildren()  
      protected void doRefreshVisual​(javafx.scene.Node visual)  
      protected void doRemoveChildVisual​(org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node> child, int index)  
      javafx.scene.layout.Region getAdaptedConnectorNode​(AdaptedConnector<?> connector)
      Obtains the GeometryNode for the AdaptedConnector.
      protected AdaptedModelVisualFactoryContextImpl.ConnectorLoader<M> getConnectorLoader()
      AdaptedErrorHandler getErrorHandler()
      Obtains the AdaptedErrorHandler.
      Model getModel()
      Obtains the Model.
      static void loadStyling​(javafx.scene.Node visualNode, java.lang.Class<? extends Model> modelClass, javafx.beans.property.ReadOnlyProperty<java.net.URL> stylesheetUrl)
      Loads the styling for the child Pane.
      javafx.beans.property.Property<java.lang.String> style()
      Obtains the Property to style the AdaptedModel.
      • Methods inherited from class org.eclipse.gef.mvc.fx.parts.AbstractContentPart

        addContentChild, attachToContentAnchorage, contentAnchoragesUnmodifiableProperty, contentChildrenUnmodifiableProperty, contentProperty, detachFromContentAnchorage, doAddContentChild, doAttachToContentAnchorage, doDetachFromContentAnchorage, doRemoveContentChild, doReorderContentChild, getContentAnchoragesUnmodifiable, getContentChildrenUnmodifiable, isFocusable, isSelectable, refreshContentAnchorages, refreshContentChildren, register, registerAtContentPartMap, removeContentChild, reorderContentChild, unregister, unregisterFromContentPartMap
      • Methods inherited from class org.eclipse.gef.mvc.fx.parts.AbstractVisualPart

        activate, activateAdapters, activateChildren, activeProperty, adaptableProperty, adaptersProperty, addChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenUnmodifiableProperty, deactivate, deactivateAdapters, deactivateChildren, detachAnchored, detachFromAnchorage, detachFromAnchorage, determineViewer, dispose, doActivate, doDeactivate, getAdaptable, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getHandlers, getParent, getPolicies, getRoot, getVisual, isActive, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, registerAtVisualPartMap, removeChild, removeChildren, reorderChild, setAdaptable, setAdapter, setAdapter, setAdapter, setAdapter, setParent, setRefreshVisual, unregisterFromVisualPartMap, unsetAdapter
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.eclipse.gef.common.activate.IActivatable

        activate, activeProperty, deactivate, isActive
      • Methods inherited from interface org.eclipse.gef.common.adapt.IAdaptable

        adaptersProperty, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, setAdapter, unsetAdapter
      • Methods inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound

        adaptableProperty, getAdaptable, setAdaptable
      • Methods inherited from interface org.eclipse.gef.common.dispose.IDisposable

        dispose
      • Methods inherited from interface org.eclipse.gef.mvc.fx.parts.IVisualPart

        addChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenUnmodifiableProperty, detachAnchored, detachFromAnchorage, detachFromAnchorage, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getHandlers, getParent, getPolicies, getRoot, getViewer, getVisual, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, removeChild, removeChildren, reorderChild, setParent, setRefreshVisual
    • Field Detail

      • isPalettePrototype

        protected boolean isPalettePrototype
        Indicates whether a Palette prototype.
    • Constructor Detail

      • AbstractAdaptedConnectablePart

        public AbstractAdaptedConnectablePart()
    • Method Detail

      • loadStyling

        public static void loadStyling​(javafx.scene.Node visualNode,
                                       java.lang.Class<? extends Model> modelClass,
                                       javafx.beans.property.ReadOnlyProperty<java.net.URL> stylesheetUrl)
        Loads the styling for the child Pane.
        Parameters:
        visualNode - Child visual Node.
        modelClass - Class of the Model.
        stylesheetUrl - ReadOnlyProperty to specific styling URL.
      • doGetContentAnchorages

        protected com.google.common.collect.SetMultimap<? extends java.lang.Object,​java.lang.String> doGetContentAnchorages()
        Specified by:
        doGetContentAnchorages in class org.eclipse.gef.mvc.fx.parts.AbstractContentPart<javafx.scene.Node>
      • doAttachToAnchorageVisual

        protected void doAttachToAnchorageVisual​(org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node> anchorage,
                                                 java.lang.String role)
        Overrides:
        doAttachToAnchorageVisual in class org.eclipse.gef.mvc.fx.parts.AbstractVisualPart<javafx.scene.Node>
      • doDetachFromAnchorageVisual

        protected void doDetachFromAnchorageVisual​(org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node> anchorage,
                                                   java.lang.String role)
        Overrides:
        doDetachFromAnchorageVisual in class org.eclipse.gef.mvc.fx.parts.AbstractVisualPart<javafx.scene.Node>
      • doGetContentChildren

        protected java.util.List<java.lang.Object> doGetContentChildren()
        Specified by:
        doGetContentChildren in class org.eclipse.gef.mvc.fx.parts.AbstractContentPart<javafx.scene.Node>
      • doAddChildVisual

        protected void doAddChildVisual​(org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node> child,
                                        int index)
        Overrides:
        doAddChildVisual in class org.eclipse.gef.mvc.fx.parts.AbstractVisualPart<javafx.scene.Node>
      • doRemoveChildVisual

        protected void doRemoveChildVisual​(org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node> child,
                                           int index)
        Overrides:
        doRemoveChildVisual in class org.eclipse.gef.mvc.fx.parts.AbstractVisualPart<javafx.scene.Node>
      • createVisualNode

        protected abstract javafx.scene.Node createVisualNode()
        Creates the visual Node.
        Returns:
        Visual Node.
      • doCreateVisual

        public javafx.scene.Node doCreateVisual()
        Specified by:
        doCreateVisual in class org.eclipse.gef.mvc.fx.parts.AbstractVisualPart<javafx.scene.Node>
      • doRefreshVisual

        protected void doRefreshVisual​(javafx.scene.Node visual)
        Specified by:
        doRefreshVisual in class org.eclipse.gef.mvc.fx.parts.AbstractVisualPart<javafx.scene.Node>