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

com.patternity.graphic.svg.Box 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;
import com.patternity.graphic.dag.Node;

/**
 * Represents a box and its style.
 * 
 * @author cyrille martraire
 */
public final class Box implements Styled {

	private final Node node;
	private final BoxStyle style;

	public Box(Node node, BoxStyle style) {
		this.node = node;
		this.style = style;
	}

	public Style getStyle() {
		return style;
	}

	public Node getNode() {
		return node;
	}

	public String toString() {
		return "Box: " + node + " " + style;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy