1 16 17 package org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements; 18 19 20 21 27 public class Direction 28 { 29 public static final int DIRECTION_UNKNOWN = -1; 30 public static final int DIRECTION_UP_RIGHT = 0; 31 public static final int DIRECTION_UP_LEFT = 1; 32 public static final int DIRECTION_DOWN_RIGHT = 16; 33 public static final int DIRECTION_DOWN_LEFT = 17; 34 35 private Direction() { 36 } 37 38 45 46 public static boolean isValid(final int val) { 47 switch (val) { 48 case DIRECTION_UNKNOWN : 49 case DIRECTION_UP_RIGHT : 50 case DIRECTION_UP_LEFT : 51 case DIRECTION_DOWN_RIGHT : 52 case DIRECTION_DOWN_LEFT : 53 return true; 54 default : 55 return false; 56 } 57 } 58 } | Popular Tags |