List of usage examples for javax.swing SwingConstants NORTH
int NORTH
To view the source code for javax.swing SwingConstants NORTH.
Click Source Link
From source file:unikn.dbis.univis.visualization.graph.VGraph.java
public void rotateRight() { if ((SwingConstants.NORTH) == getLayoutOrientation()) { setLayoutOrientation(SwingConstants.EAST); } else if ((SwingConstants.EAST) == getLayoutOrientation()) { setLayoutOrientation(SwingConstants.SOUTH); } else if ((SwingConstants.SOUTH) == getLayoutOrientation()) { setLayoutOrientation(SwingConstants.WEST); } else if ((SwingConstants.WEST) == getLayoutOrientation()) { setLayoutOrientation(SwingConstants.NORTH); }/*from w w w . j a va 2s . co m*/ rotateGraph(); }
From source file:unikn.dbis.univis.visualization.graph.VGraph.java
public void rotateLeft() { if ((SwingConstants.NORTH) == getLayoutOrientation()) { setLayoutOrientation(SwingConstants.WEST); } else if ((SwingConstants.WEST) == getLayoutOrientation()) { setLayoutOrientation(SwingConstants.SOUTH); } else if ((SwingConstants.SOUTH) == getLayoutOrientation()) { setLayoutOrientation(SwingConstants.EAST); } else if ((SwingConstants.EAST) == getLayoutOrientation()) { setLayoutOrientation(SwingConstants.NORTH); }//from w w w .ja va 2 s .c o m rotateGraph(); }