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

org.atemsource.atem.utility.doc.dot.ConnectionBuilder Maven / Gradle / Ivy

package org.atemsource.atem.utility.doc.dot;

public class ConnectionBuilder
{
	private String arrowType;

	private boolean constraint = true;

	private String label;

	private String source;

	private String target;

	public void arrowType(String arrowType)
	{
		this.arrowType = arrowType;
	}

	public void constraint(boolean constraint)
	{
		this.constraint = constraint;

	}

	public void create(StringBuilder builder)
	{
		builder.append(source);
		builder.append(" -> ");
		builder.append(target);
		builder.append(" [label=\"");
		builder.append(label);
		builder.append("\"");
		if (arrowType != null)
		{
			builder.append(",arrowhead=\"");
			builder.append(arrowType);
			builder.append("\"");
		}
		builder.append(",constraint=");
		builder.append(constraint);
		builder.append("]\r\n");
	}

	public void label(String label)
	{
		this.label = label;
	}

	public void source(String source)
	{
		this.source = source;
	}

	public void target(String target)
	{
		this.target = target;

	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy