1 51 package org.apache.fop.fo; 52 53 56 public abstract class Status { 57 58 public static final int OK = 1; 59 public static final int AREA_FULL_NONE = 2; 60 public static final int AREA_FULL_SOME = 3; 61 public static final int FORCE_PAGE_BREAK = 4; 62 public static final int FORCE_PAGE_BREAK_EVEN = 5; 63 public static final int FORCE_PAGE_BREAK_ODD = 6; 64 public static final int FORCE_COLUMN_BREAK = 7; 65 public static final int KEEP_WITH_NEXT = 8; 66 67 public static boolean isIncomplete(int code) { 68 return ((code != OK) && (code != KEEP_WITH_NEXT)); 69 } 70 71 public static boolean laidOutNone(int code) { 72 return (code == AREA_FULL_NONE); 73 } 74 75 public static boolean isPageBreak(int code) { 76 switch( code) { 77 case FORCE_PAGE_BREAK: 78 case FORCE_PAGE_BREAK_EVEN: 79 case FORCE_PAGE_BREAK_ODD: 80 return true; 81 } 82 return false; 83 } 84 } 85 | Popular Tags |