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

jadex.bpmn.editor.model.visual.VLane Maven / Gradle / Ivy

There is a newer version: 4.0.267
Show newest version
package jadex.bpmn.editor.model.visual;

import com.mxgraph.view.mxGraph;

public class VLane extends VNamedNode
{
	/** Width of the text field of the associated pool. */
	protected double pooltextfieldwidth;
	
	/** Height of the lane. */
	protected int laneheight;
	
	/**
	 * Creates a new lane.
	 * 
	 * @param graph The graph where this element is used.
	 */
	public VLane(mxGraph graph)
	{
		super(graph, VLane.class.getSimpleName());
		setValue("Lane");
		setConnectable(false);
	}
	
	/**
	 *  Returns the pool of the lane.
	 *  
	 *  @return The pool.
	 */
	public VPool getPool()
	{
		VElement pool = this;
		while (!(pool instanceof VPool))
		{
			pool = (VElement) pool.getParent();
		}
		
		return (VPool) pool;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy