public class PrepopulatedTutorial
extends java.lang.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(java.lang.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(java.lang.String[] argv)
public void bogusLayout(MutableGraphModel model, AppContext context)
public void layoutPostDisplay(MutableGraphModel model, AppContext context)
public void setModelPostDisplay(MutableGraphModel model, AppContext context)