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

com.patternity.graphic.svg.Link Maven / Gradle / Ivy

Go to download

Extensions of the RestFixture. An extension is a RestFixture with some specific/bespoke behaviour not generic enough to make it to the RestFixture itself.

There is a newer version: 3.1
Show newest version
package com.patternity.graphic.svg;

import com.patternity.graphic.Style;
import com.patternity.graphic.Styled;

/**
 * Represents a link between two boxes, with a style.
 * 
 * @author cyrille martraire
 */
public final class Link implements Styled {

	private final Object from;
	private final Object to;
	private final LinkStyle style;

	public Link(Object from, Object to, LinkStyle style) {
		this.from = from;
		this.to = to;
		this.style = style;
	}

	public Object getFrom() {
		return from;
	}

	public Object getTo() {
		return to;
	}

	public Style getStyle() {
		return style;
	}

	public String toString() {
		return "Link: " + from + " " + to + " " + style;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy