Using JGoSubGraph class


I have a jgo view displaying two or more jgo subgraphs. I would like to split my subgraphs inside the view in a way that view canvas is fill with the subgraphs evenly.


Well, the size of a JGoArea is going to be as big as the union of its children. So if a child is moved (either interactively or programmatically) too far, its parent subgraph will extend too far, possibly overlapping the adjacent subgraph. So you’ll need to make sure this isn’t a problem.
JGoSubGraph supports an Insets property that lets you add extra space on the top/left/bottom/right, and you can increase these values in order to fit into the particular size that your view is displaying.