Interface AdaptedParentBuilder<R extends Model,​O,​M extends Model,​E extends java.lang.Enum<E>>

    • Method Detail

      • create

        void create​(ModelAction<R,​O,​M> provideParentAction)
        Configures creating the Model.
        Parameters:
        provideParentAction - ModelAction to provide parent.
      • area

        <AM extends Model,​AE extends java.lang.Enum<AE>,​RE extends java.lang.Enum<RE>> AdaptedAreaBuilder<R,​O,​AM,​AE> area​(AM areaPrototype,
                                                                                                                                                        java.util.function.Function<M,​java.util.List<AM>> getAreas,
                                                                                                                                                        java.util.function.Function<AM,​org.eclipse.gef.geometry.planar.Dimension> getDimension,
                                                                                                                                                        java.util.function.BiConsumer<AM,​org.eclipse.gef.geometry.planar.Dimension> setDimension,
                                                                                                                                                        E... changeAreaEvents)
        Adds an AdaptedArea.
        Type Parameters:
        AM - Model type.
        AE - Model event type.
        RE - Root Model event type.
        Parameters:
        areaPrototype - Prototype of area Model to obtain the Model class.
        getAreas - Function to obtain the area Model instances.
        getDimension - Obtains the Dimension of the area from the Model.
        setDimension - Loads the Dimension of the area onto the Model.
        changeAreaEvents - Enum events on parent Model about change in area Model listing.
        Returns:
        AdaptedAreaBuilder to build the AdaptedArea over the Model.