Newer
Older
MagnetRON / src / org / ntlab / deltaViewer / VertexObject.java
Aki Hongo on 3 Mar 2020 989 bytes first commit
package org.ntlab.deltaViewer;

import java.util.ArrayList;
import java.util.List;

import com.mxgraph.model.mxICell;

/**
 * Object vertex.
 * 
 * @author Nitta Lab.
 */
public class VertexObject extends Vertex {
	protected List<VertexMethodExecution> methodExecutions = new ArrayList<>();

	public VertexObject(String label, Object cell) {
		super(label, cell);
	}

	public VertexObject(String label, Object cell, double initialX, double initialY) {
		super(label, cell, initialX, initialY);
	}
	
	public VertexObject(String label, Object cell, double x, double y, double width, double height) {
		super(label, cell, x, y, width, height);
	}

	public List<VertexMethodExecution> getMethodExecutions() {
		return methodExecutions;
	}

	public void setMethodExecutions(List<VertexMethodExecution> methodExecutions) {
		this.methodExecutions = methodExecutions;
	}

	public void addMethodExecution(VertexMethodExecution methodExecution) {
		this.methodExecutions.add(methodExecution);
	}
}