1 22 23 package de.laures.cewolf.example; 24 25 import de.laures.cewolf.WebConstants; 26 27 31 public class ParamBean implements java.io.Serializable , WebConstants { 32 33 34 private int width = 300; 35 36 37 private int height = 300; 38 39 40 private boolean antialias = true; 41 42 43 private String title = ""; 44 45 46 private int minVal = -100; 47 48 49 private int maxVal = 100; 50 51 52 private String colorColor = "#FFFFFF"; 53 54 55 private String paint = "color"; 56 57 58 private String gradientColor1 = "#FFFFFF"; 59 60 61 private int gradientX1; 62 63 64 private int gradientX2; 65 66 67 private String gradientColor2 = "#FFFFFF"; 68 69 70 private int gradientY2; 71 72 73 private int gradientY1; 74 75 76 private String textureImage = ""; 77 78 79 private int textureWidth = 50; 80 81 82 private int textureHeight = 50; 83 84 85 private boolean cyclic; 86 87 88 private boolean legend; 89 90 91 private String legendAnchor = "south"; 92 93 94 private String extraTitle; 95 96 private String mimeType = MIME_PNG; 97 98 102 public int getWidth() { 103 return this.width; 104 } 105 106 110 public void setWidth(int width) { 111 this.width = width; 112 } 113 114 118 public int getHeight() { 119 return this.height; 120 } 121 122 126 public void setHeight(int height) { 127 this.height = height; 128 } 129 130 134 public void setAntialias(boolean antialias) { 135 this.antialias = antialias; 137 } 138 139 public boolean getAntialias() { 140 return antialias; 141 } 142 143 147 public String getTitle() { 148 return this.title; 149 } 150 151 155 public void setTitle(String title) { 156 this.title = title; 157 } 158 159 163 public int getMinVal() { 164 return this.minVal; 165 } 166 167 171 public void setMinVal(int minVal) { 172 this.minVal = minVal; 173 } 174 175 179 public int getMaxVal() { 180 return this.maxVal; 181 } 182 183 187 public void setMaxVal(int maxVal) { 188 this.maxVal = maxVal; 189 } 190 191 195 public String getColorColor() { 196 return this.colorColor; 197 } 198 199 203 public void setColorColor(String colorColor) { 204 this.colorColor = colorColor; 205 } 206 207 211 public String getPaint() { 212 return this.paint; 213 } 214 215 219 public void setPaint(String selectedPaint) { 220 this.paint = selectedPaint; 221 } 222 223 public boolean isSelectedPaint(String p) { 224 return paint.equalsIgnoreCase(p); 225 } 226 227 231 public String getGradientColor1() { 232 return this.gradientColor1; 233 } 234 235 239 public void setGradientColor1(String gradientColor1) { 240 this.gradientColor1 = gradientColor1; 241 } 242 243 247 public int getGradientX1() { 248 return this.gradientX1; 249 } 250 251 255 public void setGradientX1(int gradientX1) { 256 this.gradientX1 = gradientX1; 257 } 258 259 263 public int getGradientX2() { 264 return this.gradientX2; 265 } 266 267 271 public void setGradientX2(int gradientX2) { 272 this.gradientX2 = gradientX2; 273 } 274 275 279 public String getGradientColor2() { 280 return this.gradientColor2; 281 } 282 283 287 public void setGradientColor2(String gradientColor2) { 288 this.gradientColor2 = gradientColor2; 289 } 290 291 295 public int getGradientY2() { 296 return this.gradientY2; 297 } 298 299 303 public void setGradientY2(int gradientY2) { 304 this.gradientY2 = gradientY2; 305 } 306 307 311 public int getGradientY1() { 312 return this.gradientY1; 313 } 314 315 319 public void setGradientY1(int gradientY1) { 320 this.gradientY1 = gradientY1; 321 } 322 323 327 public String getTextureImage() { 328 return this.textureImage; 329 } 330 331 335 public void setTextureImage(String textureImage) { 336 this.textureImage = textureImage; 337 } 338 339 343 public int getTextureWidth() { 344 return this.textureWidth; 345 } 346 347 351 public void setTextureWidth(int textureWidth) { 352 this.textureWidth = textureWidth; 353 } 354 355 359 public int getTextureHeight() { 360 return this.textureHeight; 361 } 362 363 367 public void setTextureHeight(int textureHeight) { 368 this.textureHeight = textureHeight; 369 } 370 371 375 public boolean getCyclic() { 376 return this.cyclic; 377 } 378 379 383 public void setCyclic(boolean cyclic) { 384 this.cyclic = cyclic; 385 } 386 387 391 public boolean isLegend() { 392 return this.legend; 393 } 394 395 399 public void setLegend(boolean legend) { 400 this.legend = legend; 401 } 402 403 407 public String getLegendAnchor() { 408 return this.legendAnchor; 409 } 410 411 415 public void setLegendAnchor(String legendAnchor) { 416 this.legendAnchor = legendAnchor; 417 } 418 419 public boolean isLegendAnchorSelected(String anchor) { 420 return this.legendAnchor.equalsIgnoreCase(anchor); 421 } 422 423 427 public String getExtraTitle() { 428 return (extraTitle == null? "" : extraTitle); 429 } 430 431 435 public void setExtraTitle(String extraTitle) { 436 this.extraTitle = extraTitle; 437 } 438 439 443 public String getMimeType() { 444 return mimeType; 445 } 446 447 451 public void setMimeType(String mimeType) { 452 this.mimeType = mimeType; 453 } 454 455 } 456 | Popular Tags |