All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ikasan.designer.builder.DiagramBuilder Maven / Gradle / Ivy

package org.ikasan.designer.builder;

import java.util.ArrayList;

public class DiagramBuilder {

    private ArrayList items = new ArrayList<>();

    public ImageBuilder getImageBuilder() {
        return new ImageBuilder();
    }

    public CircleBuilder getCircleBuilder() {
        return new CircleBuilder();
    }

    public PortBuilder getPortBuilder() {
        return new PortBuilder();
    }

    public RectangleBuilder getRectangleBuilder() {
        return new RectangleBuilder();
    }

    public ConnectionBuilder getConnectionBuilder() {
        return new ConnectionBuilder();
    }

    public ConnectionDetailsBuilder getConnectionDetailsBuilder() {
        return new ConnectionDetailsBuilder();
    }

    public void addItem(Object item) {
        this.items.add(item);
    }

    public ArrayList build() {
        return this.items;
    }
}