Download JGraph User Manual
Transcript
JGraph User Manual 7.3.1.1.1 Alignment Alignment refers to which part of vertices will be aligned for all vertices on a given level. Using the setAlignment() method you can set the alignment of the graph to SwingConstants.TOP, SwingConstants.CENTER or SwingConstants.BOTTOM. The literal values of these constants are 1, 0 and 3 respectively at the time of writing, but the variable names should always be used. Illustration 50 : SwingConstants.TOP Illustration 51 : SwingConstants.CENTER Page 107