1 20 package org.openi.analysis; 21 22 import java.io.*; 23 24 25 31 public class Analysis implements Serializable { 32 36 private String analysisTitle = null; 37 private String mdxQuery = null; 38 private String dataSourceName = null; 39 private String colorPaletteName = null; 40 41 44 private double foregroundAlpha = 1.0; private boolean showPareto = false; 46 private boolean showChart = true; 47 private boolean showTable = true; 48 49 private String chartTitle = ""; 51 private int chartType = 1; private int chartHeight = 300; 53 private int chartWidth = 500; 54 private String fontName = "SansSerif"; 55 private int fontStyle = 1; private int fontSize = 18; 57 private boolean useChartSize = false; 59 private boolean showLegend = true; 61 private String legendFontName = "SansSerif"; 62 private int legendFontStyle = 0; private int legendFontSize = 10; 64 private int legendPosition = 2; 66 private boolean showSlicer = true; 68 private int slicerPosition = 1; private int slicerAlignment = 4; private String slicerFontName = "SansSerif"; 71 private int slicerFontStyle = 0; private int slicerFontSize = 12; 73 74 private String axisFontName = "SansSerif"; 76 private int axisFontStyle = 0; private int axisFontSize = 12; 78 private String horizAxisLabel = ""; 79 private String vertAxisLabel = ""; 80 private String axisTickFontName = "SansSerif"; 81 private int axisTickFontStyle = 0; private int axisTickFontSize = 10; 83 private boolean drillThroughEnabled = false; 84 private int tickLabelRotate = 30; private int bgColorR = 255; 86 private int bgColorG = 255; 87 private int bgColorB = 255; 88 89 private boolean levelStyle = false; 91 92 private boolean hideSpans = false; 94 95 private String drillthroughSQL = ""; 97 private String drillthroughDatasource = ""; 98 private String description; 99 100 public Analysis() { 101 } 102 103 107 public String getAnalysisTitle() { 108 return analysisTitle; 109 } 110 111 115 public String getAxisFontName() { 116 return axisFontName; 117 } 118 119 123 public int getAxisFontSize() { 124 return axisFontSize; 125 } 126 127 131 public int getAxisFontStyle() { 132 return axisFontStyle; 133 } 134 135 140 141 145 public int getChartHeight() { 146 return chartHeight; 147 } 148 149 153 public String getChartTitle() { 154 return chartTitle; 155 } 156 157 161 public int getChartType() { 162 return chartType; 163 } 164 165 169 public int getChartWidth() { 170 return chartWidth; 171 } 172 173 177 public boolean isDrillThroughEnabled() { 178 return drillThroughEnabled; 179 } 180 181 185 public String getFontName() { 186 return fontName; 187 } 188 189 193 public int getFontSize() { 194 return fontSize; 195 } 196 197 201 public int getFontStyle() { 202 return fontStyle; 203 } 204 205 209 public String getHorizAxisLabel() { 210 return horizAxisLabel; 211 } 212 213 217 public String getLegendFontName() { 218 return legendFontName; 219 } 220 221 225 public int getLegendFontSize() { 226 return legendFontSize; 227 } 228 229 233 public int getLegendFontStyle() { 234 return legendFontStyle; 235 } 236 237 241 public int getLegendPosition() { 242 return legendPosition; 243 } 244 245 249 public String getMdxQuery() { 250 return mdxQuery; 251 } 252 253 257 public boolean isShowLegend() { 258 return showLegend; 259 } 260 261 265 public boolean isShowSlicer() { 266 return showSlicer; 267 } 268 269 273 public int getSlicerAlignment() { 274 return slicerAlignment; 275 } 276 277 281 public String getSlicerFontName() { 282 return slicerFontName; 283 } 284 285 289 public int getSlicerFontSize() { 290 return slicerFontSize; 291 } 292 293 297 public int getSlicerFontStyle() { 298 return slicerFontStyle; 299 } 300 301 305 public int getSlicerPosition() { 306 return slicerPosition; 307 } 308 309 313 public int getTickLabelRotate() { 314 return tickLabelRotate; 315 } 316 317 321 public String getVertAxisLabel() { 322 return vertAxisLabel; 323 } 324 325 329 public String getDataSourceName() { 330 return dataSourceName; 331 } 332 333 338 339 343 public void setAnalysisTitle(String analysisTitle) { 344 this.analysisTitle = analysisTitle; 345 } 346 347 351 public void setAxisFontName(String axisFontName) { 352 this.axisFontName = axisFontName; 353 } 354 355 359 public void setAxisFontSize(int axisFontSize) { 360 this.axisFontSize = axisFontSize; 361 } 362 363 367 public void setAxisFontStyle(int axisFontStyle) { 368 this.axisFontStyle = axisFontStyle; 369 } 370 371 376 377 381 public void setChartHeight(int chartHeight) { 382 this.chartHeight = chartHeight; 383 } 384 385 389 public void setChartTitle(String chartTitle) { 390 this.chartTitle = chartTitle; 391 } 392 393 397 public void setChartType(int chartType) { 398 this.chartType = chartType; 399 } 400 401 405 public void setChartWidth(int chartWidth) { 406 this.chartWidth = chartWidth; 407 } 408 409 413 public void setDrillThroughEnabled(boolean drillThroughEnabled) { 414 this.drillThroughEnabled = drillThroughEnabled; 415 } 416 417 421 public void setFontName(String fontName) { 422 this.fontName = fontName; 423 } 424 425 429 public void setFontSize(int fontSize) { 430 this.fontSize = fontSize; 431 } 432 433 437 public void setFontStyle(int fontStyle) { 438 this.fontStyle = fontStyle; 439 } 440 441 445 public void setHorizAxisLabel(String horizAxisLabel) { 446 this.horizAxisLabel = horizAxisLabel; 447 } 448 449 453 public void setLegendFontName(String legendFontName) { 454 this.legendFontName = legendFontName; 455 } 456 457 461 public void setLegendFontSize(int legendFontSize) { 462 this.legendFontSize = legendFontSize; 463 } 464 465 469 public void setLegendFontStyle(int legendFontStyle) { 470 this.legendFontStyle = legendFontStyle; 471 } 472 473 477 public void setLegendPosition(int legendPosition) { 478 this.legendPosition = legendPosition; 479 } 480 481 485 public void setMdxQuery(String mdxQuery) { 486 this.mdxQuery = mdxQuery; 487 } 488 489 493 public void setShowLegend(boolean showLegend) { 494 this.showLegend = showLegend; 495 } 496 497 501 public void setShowSlicer(boolean showSlicer) { 502 this.showSlicer = showSlicer; 503 } 504 505 509 public void setSlicerAlignment(int slicerAlignment) { 510 this.slicerAlignment = slicerAlignment; 511 } 512 513 517 public void setSlicerFontName(String slicerFontName) { 518 this.slicerFontName = slicerFontName; 519 } 520 521 525 public void setSlicerFontSize(int slicerFontSize) { 526 this.slicerFontSize = slicerFontSize; 527 } 528 529 533 public void setSlicerFontStyle(int slicerFontStyle) { 534 this.slicerFontStyle = slicerFontStyle; 535 } 536 537 541 public void setSlicerPosition(int slicerPosition) { 542 this.slicerPosition = slicerPosition; 543 } 544 545 549 public void setTickLabelRotate(int tickLabelRotate) { 550 this.tickLabelRotate = tickLabelRotate; 551 } 552 553 557 public void setVertAxisLabel(String vertAxisLabel) { 558 this.vertAxisLabel = vertAxisLabel; 559 } 560 561 565 public void setDataSourceName(String dataSourceName) { 566 this.dataSourceName = dataSourceName; 567 } 568 569 574 575 578 public String getColorPaletteName() { 579 return colorPaletteName; 580 } 581 582 585 public void setColorPaletteName(String colorPaletteName) { 586 this.colorPaletteName = colorPaletteName; 587 } 588 589 592 public boolean getShowPareto() { 593 return showPareto; 594 } 595 596 600 public String getAxisTickFontName() { 601 return axisTickFontName; 602 } 603 604 608 public int getAxisTickFontSize() { 609 return axisTickFontSize; 610 } 611 612 616 public int getAxisTickFontStyle() { 617 return axisTickFontStyle; 618 } 619 620 624 public boolean isShowChart() { 625 return showChart; 626 } 627 628 632 public boolean isShowTable() { 633 return showTable; 634 } 635 636 640 public double getForegroundAlpha() { 641 return foregroundAlpha; 642 } 643 644 648 public boolean isUseChartSize() { 649 return useChartSize; 650 } 651 652 656 public int getBgColorB() { 657 return bgColorB; 658 } 659 660 664 public int getBgColorG() { 665 return bgColorG; 666 } 667 668 672 public int getBgColorR() { 673 return bgColorR; 674 } 675 676 680 public boolean isHideSpans() { 681 return hideSpans; 682 } 683 684 688 public boolean isLevelStyle() { 689 return levelStyle; 690 } 691 692 public String getDrillthroughSQL() { 693 return drillthroughSQL; 694 } 695 696 public String getDrillthroughDatasource() { 697 return drillthroughDatasource; 698 } 699 700 703 public void setShowPareto(boolean showPareto) { 704 this.showPareto = showPareto; 705 } 706 707 711 public void setAxisTickFontName(String axisTickFontName) { 712 this.axisTickFontName = axisTickFontName; 713 } 714 715 719 public void setAxisTickFontSize(int axisTickFontSize) { 720 this.axisTickFontSize = axisTickFontSize; 721 } 722 723 727 public void setAxisTickFontStyle(int axisTickFontStyle) { 728 this.axisTickFontStyle = axisTickFontStyle; 729 } 730 731 735 public void setShowChart(boolean showChart) { 736 this.showChart = showChart; 737 } 738 739 743 public void setShowTable(boolean showTable) { 744 this.showTable = showTable; 745 } 746 747 751 public void setForegroundAlpha(double foregroundAlpha) { 752 this.foregroundAlpha = foregroundAlpha; 753 } 754 755 759 public void setUseChartSize(boolean useChartSize) { 760 this.useChartSize = useChartSize; 761 } 762 763 767 public void setBgColorB(int bgColorB) { 768 this.bgColorB = bgColorB; 769 } 770 771 775 public void setBgColorG(int bgColorG) { 776 this.bgColorG = bgColorG; 777 } 778 779 783 public void setBgColorR(int bgColorR) { 784 this.bgColorR = bgColorR; 785 } 786 787 791 public void setHideSpans(boolean hideSpans) { 792 this.hideSpans = hideSpans; 793 } 794 795 799 public void setLevelStyle(boolean levelStyle) { 800 this.levelStyle = levelStyle; 801 } 802 803 public void setDrillthroughSQL(String drillthroughSQL) { 804 this.drillthroughSQL = drillthroughSQL; 805 } 806 807 public void setDrillthroughDatasource(String drillthroughDatasource) { 808 this.drillthroughDatasource = drillthroughDatasource; 809 } 810 811 public String getDescription() { 812 return description; 813 } 814 815 public void setDescription(String description) { 816 this.description = description; 817 } 818 } 819 | Popular Tags |