Example usage for javax.swing SwingConstants NORTH

List of usage examples for javax.swing SwingConstants NORTH

Introduction

In this page you can find the example usage for javax.swing SwingConstants NORTH.

Prototype

int NORTH

To view the source code for javax.swing SwingConstants NORTH.

Click Source Link

Document

Compass-direction North (up).

Usage

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();
}