View Javadoc

1   /***
2    * 
3    */
4   package org.kite9.diagram.position;
5   
6   public enum HPos {
7   	LEFT, RIGHT;
8   
9   	public Direction getDirection() {
10  		if (this.ordinal() == 0) {
11  			return Direction.LEFT;
12  		} else {
13  			return Direction.RIGHT;
14  		}
15  	}
16  }