org.abego.treelayout.Configuration Java Examples

The following examples show how to use org.abego.treelayout.Configuration. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TreePostScriptGenerator.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public TreePostScriptGenerator(List<String> ruleNames, Tree root,
							   String fontName, int fontSize)
{
	this.root = root;
	setTreeTextProvider(new TreeViewer.DefaultTreeTextProvider(ruleNames));
	doc = new PostScriptDocument(fontName, fontSize);
	boolean compareNodeIdentities = true;
	this.treeLayout =
		new TreeLayout<Tree>(getTreeLayoutAdaptor(root),
							 new VariableExtentProvide(),
							 new DefaultConfiguration<Tree>(gapBetweenLevels,
															gapBetweenNodes,
															Configuration.Location.Bottom),
                                compareNodeIdentities);
}
 
Example #2
Source File: AbegoTreeLayoutForNetbeans.java    From treelayout with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
public AbegoTreeLayoutForNetbeans(N rootNode, int originX, int originY,
		Configuration<N> configuration) {
	this.rootNode = rootNode;
	this.originX = originX;
	this.originY = originY;
	this.configuration = configuration;
}
 
Example #3
Source File: AbegoTreeLayout.java    From fxgraph with Do What The F*ck You Want To Public License 4 votes vote down vote up
public AbegoTreeLayout(Configuration<ICell> configuration) {
	this.configuration = configuration;
}
 
Example #4
Source File: AbegoTreeLayoutForNetbeans.java    From treelayout with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
public Configuration<N> getConfiguration() {
	return this.configuration;
}