1 32 33 package it.businesslogic.ireport; 34 35 public class Band 36 { 37 38 private Report parent; 39 private String name = ""; 40 private String printWhenExpression = ""; 41 private int height = 0; 42 private boolean splitAllowed = true; 43 44 51 public Band(Report parent, String name, int height) 52 { 53 this.parent = parent; 54 this.name = name; 55 this.height = height; 56 this.splitAllowed = true; 57 } 58 59 64 public String toString() 65 { 66 67 return this.name; 68 } 69 70 75 public int getBandYLocation() 76 { 77 78 return parent.getBandYLocation(this); 79 } 80 81 86 public int getUsableWidth() 87 { 88 89 return parent.getWidth() - parent.getLeftMargin() - 90 parent.getRightMargin(); 91 } 92 93 98 public int getHeight() 99 { 100 101 return height; 102 } 103 104 109 public void setHeight(int height) 110 { 111 this.height = height; 112 } 113 114 119 public java.lang.String getName() 120 { 121 122 return name; 123 } 124 125 130 public void setName(java.lang.String name) 131 { 132 this.name = name; 133 } 134 135 140 public it.businesslogic.ireport.Report getParent() 141 { 142 143 return parent; 144 } 145 146 151 public void setParent(it.businesslogic.ireport.Report parent) 152 { 153 this.parent = parent; 154 } 155 156 161 public java.lang.String getPrintWhenExpression() 162 { 163 164 return printWhenExpression; 165 } 166 167 172 public void setPrintWhenExpression(java.lang.String printWhenExpression) 173 { 174 this.printWhenExpression = printWhenExpression; 175 } 176 177 182 public boolean isSplitAllowed() 183 { 184 185 return splitAllowed; 186 } 187 188 193 public void setSplitAllowed(boolean splitAllowed) 194 { 195 this.splitAllowed = splitAllowed; 196 } 197 } 198 | Popular Tags |