Interface AdaptedModelVisualFactoryContext<M extends Model>

    • Method Detail

      • addNode

        <N extends javafx.scene.Node> N addNode​(javafx.scene.layout.Pane parent,
                                                N node)

        Add the Node to the parent Pane returning it.

        This allows for convenient adding new Node instances to Pane.

        Type Parameters:
        N - Node type.
        Parameters:
        parent - Parent Pane.
        node - Node.
        Returns:
        Input Node
      • addIndent

        javafx.scene.layout.Pane addIndent​(javafx.scene.layout.HBox parent)
        Adds an indent Pane.
        Parameters:
        parent - Parent HBox.
        Returns:
        Pane for the indent.
      • createImageWithHover

        javafx.scene.Node createImageWithHover​(java.lang.Class<?> resourceClass,
                                               java.lang.String imageFilePath,
                                               java.lang.String hoverImageFilePath)
        Convenience method to create a Node with Image and hover Image. Typically this is to create button for the action.
        Parameters:
        resourceClass - Class within the class path containing the images.
        imageFilePath - Path to the Image.
        hoverImageFilePath - Path to the hover Image.
        Returns:
        Node for the Image with hover.
        See Also:
        DefaultImages
      • action

        <R extends Model,​O> void action​(ModelAction<R,​O,​M> action)

        Allows ModelAction instances to be actioned via visual.

        This allows custom visuals (e.g. button) tor trigger an action.

        Type Parameters:
        R - Root Model type.
        O - Operations type.
        Parameters:
        action - ModelAction to be actioned.