public class PrepopulatedTutorial extends Object
Modifier and Type | Method and Description |
---|---|
void |
bogusLayout(MutableGraphModel model,
AppContext context)
This is the first thing you'd probably think of, but this
happens to be bogus, because the layout
is applied to the nodes before the window is showing,
meaning that the nodes are layed out in a 0x0 frame,
and are all clustered in the upper-left corner.
|
void |
layoutPostDisplay(MutableGraphModel model,
AppContext context)
In this version you construct the graph widget with
the model, and apply a layout to the graph once
the window is showing.
|
static void |
main(String[] argv) |
void |
setModelPostDisplay(MutableGraphModel model,
AppContext context)
In this version you construct the graph widget with
the default constructor (giving it an empty graph),
and then set the model once the window is showing.
|
public static void main(String[] argv)
public void bogusLayout(MutableGraphModel model, AppContext context)
public void layoutPostDisplay(MutableGraphModel model, AppContext context)
public void setModelPostDisplay(MutableGraphModel model, AppContext context)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.