use of prefuse.Display in project qi4j-sdk by Qi4j.
the class StackedLayout method run.
@Override
public void run(double frac) {
// setup
NodeItem root = getLayoutRoot();
layout(root, 0, 0);
Rectangle2D bounds = root.getBounds();
Display display = this.getVisualization().getDisplay(0);
Dimension size = new Dimension((int) bounds.getWidth(), (int) bounds.getHeight());
display.setSize(size);
if (!display.isValid()) {
display.validate();
}
}
Aggregations