Class OfficeFloorContentPartFactory<R extends Model,​O>

    • Field Detail

      • DEFAULT_DRAG_LATENCY

        public static final int DEFAULT_DRAG_LATENCY
        Default drag latency.
        See Also:
        Constant Field Values
    • Constructor Detail

      • OfficeFloorContentPartFactory

        public OfficeFloorContentPartFactory()
    • Method Detail

      • createFeedbackParts

        public static java.util.List<org.eclipse.gef.mvc.fx.parts.IFeedbackPart<? extends javafx.scene.Node>> createFeedbackParts​(java.util.List<? extends org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node>> targets,
                                                                                                                                  java.util.function.Function<java.util.List<org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node>>,​java.util.List<org.eclipse.gef.mvc.fx.parts.IFeedbackPart<? extends javafx.scene.Node>>> createFeedbackParts)
        Indicates if contains an ConnectionModel.
        Parameters:
        targets - Target IVisualPart instances.
        createFeedbackParts - Function to create the IFeedbackPart instances from the filtered list of targets.
        Returns:
        Filtered targets.
      • init

        public void init​(com.google.inject.Injector injector,
                         javafx.scene.layout.Pane editorPane,
                         org.eclipse.gef.mvc.fx.viewer.IViewer content,
                         javafx.scene.layout.Pane paletteIndicator,
                         org.eclipse.gef.mvc.fx.viewer.IViewer palette,
                         AdaptedErrorHandler errorHandler,
                         ChangeExecutor changeExecutor,
                         StyleRegistry styleRegistry,
                         int dragLatency,
                         SelectOnly selectOnly)
        Initialises.
        Parameters:
        injector - Injector.
        editorPane - Editor Pane.
        content - IViewer content.
        paletteIndicator - Palette indicator Pane.
        palette - IViewer palette.
        errorHandler - AdaptedErrorHandler.
        changeExecutor - ChangeExecutor.
        styleRegistry - StyleRegistry.
        dragLatency - Drag latency. Higher provides better drag performance, while lower provides better responsiveness.
        selectOnly - SelectOnly.
      • isCreateParent

        public boolean isCreateParent()
        Indicates if able to create an AdaptedParent.
        Returns:
        true if able to create an AdaptedParent.
      • loadRootModel

        public javafx.beans.property.Property<R> loadRootModel​(R rootModel)
        Loads the root Model.
        Parameters:
        rootModel - Root Model.
      • loadContentModels

        public void loadContentModels()
        Loads the content Model instances into the content IViewer.
      • getDragLatency

        public int getDragLatency()
        Obtains the drag latency.
        Returns:
        Drag latency.
      • getEditor

        public javafx.scene.Parent getEditor()
        Description copied from interface: EditorStyler

        Obtains the root Parent for the editor.

        This allows for interrogating the structure of the editor.

        Specified by:
        getEditor in interface EditorStyler
        Returns:
        Editor Parent.
      • getGridModel

        public org.eclipse.gef.mvc.fx.models.GridModel getGridModel()
        Description copied from interface: EditorStyler
        Obtains the GridModel to configure the content grid.
        Specified by:
        getGridModel in interface EditorStyler
        Returns:
        GridModel to configure the content grid.
      • editorStyle

        public javafx.beans.property.Property<java.lang.String> editorStyle()
        Description copied from interface: EditorStyler
        Obtains the Property to the style sheet rules for the Scene.
        Specified by:
        editorStyle in interface EditorStyler
        Returns:
        Property to specify the style sheet rules for the Scene.
      • getPaletteIndicator

        public javafx.scene.Node getPaletteIndicator()
        Description copied from interface: PaletteIndicatorStyler

        Obtains the palette indicator.

        This allows for interrogating the structure of the palette indicator.

        Specified by:
        getPaletteIndicator in interface PaletteIndicatorStyler
        Returns:
        Palette indicator.
      • getPalette

        public javafx.scene.Node getPalette()
        Description copied from interface: PaletteStyler

        Obtains the palette.

        This allows for interrogating the structure of the palette.

        Specified by:
        getPalette in interface PaletteStyler
        Returns:
        Palette.
      • paletteStyle

        public javafx.beans.property.Property<java.lang.String> paletteStyle()
        Description copied from interface: AdaptedRootBuilder
        Obtains the Property to the style sheet rules for the palette.
        Specified by:
        paletteStyle in interface AdaptedRootBuilder<R extends Model,​O>
        Specified by:
        paletteStyle in interface PaletteStyler
        Returns:
        Property to specify the style sheet rules for the palette.
      • createContentPart

        public org.eclipse.gef.mvc.fx.parts.IContentPart<? extends javafx.scene.Node> createContentPart​(java.lang.Object content,
                                                                                                        java.util.Map<java.lang.Object,​java.lang.Object> contextMap)
        Specified by:
        createContentPart in interface org.eclipse.gef.mvc.fx.parts.IContentPartFactory