1 package com.calipso.reportgenerator.userinterface; 2 3 4 import org.jfree.data.category.CategoryDataset; 5 6 import javax.swing.*; 7 import java.awt.*; 8 9 16 public class Charts extends JPanel{ 17 protected String tittle; 18 protected Color color; 19 protected boolean legend; 20 protected boolean toolTips; 21 protected Dimension size; 22 protected CategoryDataset dataset; 23 private boolean multipleAxis; 24 25 public Charts(CategoryDataset dataset, String tittle, Color color, boolean legend, boolean toolTips, Dimension size, boolean multipleAxis) { 26 this.tittle = tittle; 27 this.color = color; 28 this.legend = legend; 29 this.toolTips = toolTips; 30 this.size = size; 31 this.dataset = dataset; 32 this.multipleAxis = multipleAxis; 33 } 34 35 public String getTittle() { 36 return tittle; 37 } 38 39 public Color getColor() { 40 return color; 41 } 42 43 public boolean isLegend() { 44 return legend; 45 } 46 47 public boolean isToolTips() { 48 return toolTips; 49 } 50 51 public Dimension getSize() { 52 return size; 53 } 54 55 public CategoryDataset getDataset() { 56 return dataset; 57 } 58 59 public boolean isMultipleAxis() { 60 return multipleAxis; 61 } 62 } 63 | Popular Tags |