Coverage Report - ar.com.fdvs.dj.domain.DJChartOptions
 
Classes in this File Line Coverage Branch Coverage Complexity
DJChartOptions
46%
30/64
N/A
1
 
 1  
 /*
 2  
  * DynamicJasper: A library for creating reports dynamically by specifying
 3  
  * columns, groups, styles, etc. at runtime. It also saves a lot of development
 4  
  * time in many cases! (http://sourceforge.net/projects/dynamicjasper)
 5  
  *
 6  
  * Copyright (C) 2008  FDV Solutions (http://www.fdvsolutions.com)
 7  
  *
 8  
  * This library is free software; you can redistribute it and/or
 9  
  * modify it under the terms of the GNU Lesser General Public
 10  
  *
 11  
  * License as published by the Free Software Foundation; either
 12  
  *
 13  
  * version 2.1 of the License, or (at your option) any later version.
 14  
  *
 15  
  * This library is distributed in the hope that it will be useful,
 16  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 17  
  *
 18  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 19  
  *
 20  
  * Lesser General Public License for more details.
 21  
  *
 22  
  * You should have received a copy of the GNU Lesser General Public
 23  
  * License along with this library; if not, write to the Free Software
 24  
  *
 25  
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 26  
  *
 27  
  *
 28  
  */
 29  
 
 30  
 package ar.com.fdvs.dj.domain;
 31  
 
 32  
 import java.awt.Color;
 33  
 import java.util.List;
 34  
 
 35  
 import ar.com.fdvs.dj.domain.entities.Entity;
 36  
 
 37  
 /**
 38  
  * @deprecated
 39  
  */
 40  
 public class DJChartOptions extends DJBaseElement {
 41  
 
 42  
         private static final long serialVersionUID = Entity.SERIAL_VERSION_UID;
 43  
 
 44  
         public static final byte POSITION_FOOTER = 1;
 45  
 
 46  
         public static final byte POSITION_HEADER = 2;
 47  
 
 48  
         private Color backColor;
 49  
         private int height;
 50  
         private int width;
 51  
         private boolean centered;
 52  
         private byte position;
 53  
         private int y;
 54  
         private int x;
 55  
         private boolean showLegend;
 56  
         private boolean showLabels;
 57  
         private byte border;
 58  
         private List colors;
 59  8
         private boolean useColumnsAsCategorie = false;
 60  
 
 61  0
         public DJChartOptions() {
 62  0
                 this.showLegend = true;
 63  0
                 this.backColor = Color.WHITE;
 64  0
                 this.height = 200;
 65  0
                 this.width = 200;
 66  0
                 this.centered = true;
 67  0
                 this.position = POSITION_FOOTER;
 68  0
                 this.x = 0;
 69  0
                 this.y = 0;
 70  0
                 this.showLabels = true;
 71  0
                 this.border = 1;
 72  0
                 this.colors = DJChartColors.simpleColors();
 73  0
                 this.useColumnsAsCategorie = false;
 74  0
         }
 75  
 
 76  
         public DJChartOptions(boolean showLegend, Color backColor, int height,
 77  
                         int width, boolean centered, byte position, int y, int x,
 78  8
                         boolean showLabels, byte border, List colors) {
 79  8
                 this.showLegend = showLegend;
 80  8
                 this.backColor = backColor;
 81  8
                 this.height = height;
 82  8
                 this.width = width;
 83  8
                 this.centered = centered;
 84  8
                 this.position = position;
 85  8
                 this.x = x;
 86  8
                 this.y = y;
 87  8
                 this.showLabels = showLabels;
 88  8
                 this.border = border;
 89  8
                 this.colors = colors;
 90  8
         }
 91  
 
 92  
         public Color getBackColor() {
 93  8
                 return backColor;
 94  
         }
 95  
 
 96  
         public void setBackColor(Color backColor) {
 97  0
                 this.backColor = backColor;
 98  0
         }
 99  
 
 100  
         public boolean isCentered() {
 101  8
                 return centered;
 102  
         }
 103  
 
 104  
         public void setCentered(boolean centered) {
 105  0
                 this.centered = centered;
 106  0
         }
 107  
 
 108  
         public int getHeight() {
 109  8
                 return height;
 110  
         }
 111  
 
 112  
         public void setHeight(int height) {
 113  5
                 this.height = height;
 114  5
         }
 115  
 
 116  
         public byte getPosition() {
 117  8
                 return position;
 118  
         }
 119  
 
 120  
         public void setPosition(byte position) {
 121  6
                 this.position = position;
 122  6
         }
 123  
 
 124  
         public boolean isShowLabels() {
 125  6
                 return showLabels;
 126  
         }
 127  
 
 128  
         public void setShowLabels(boolean showLabels) {
 129  6
                 this.showLabels = showLabels;
 130  6
         }
 131  
 
 132  
         public boolean isShowLegend() {
 133  8
                 return showLegend;
 134  
         }
 135  
 
 136  
         public void setShowLegend(boolean showLegend) {
 137  0
                 this.showLegend = showLegend;
 138  0
         }
 139  
 
 140  
         public int getWidth() {
 141  0
                 return width;
 142  
         }
 143  
 
 144  
         public void setWidth(int width) {
 145  0
                 this.width = width;
 146  0
         }
 147  
 
 148  
         public int getX() {
 149  8
                 return x;
 150  
         }
 151  
 
 152  
         public void setX(int x) {
 153  0
                 this.x = x;
 154  0
         }
 155  
 
 156  
         public int getY() {
 157  8
                 return y;
 158  
         }
 159  
 
 160  
         public void setY(int y) {
 161  0
                 this.y = y;
 162  0
         }
 163  
 
 164  
         public byte getBorder() {
 165  0
                 return border;
 166  
         }
 167  
 
 168  
         public void setBorder(byte border) {
 169  0
                 this.border = border;
 170  0
         }
 171  
 
 172  
         public List getColors() {
 173  16
                 return colors;
 174  
         }
 175  
 
 176  
         public void setColors(List colors) {
 177  0
                 this.colors = colors;
 178  0
         }
 179  
 
 180  
         public boolean isUseColumnsAsCategorie() {
 181  8
                 return useColumnsAsCategorie;
 182  
         }
 183  
 
 184  
         public void setUseColumnsAsCategorie(boolean useColumnsAsCategorie) {
 185  0
                 this.useColumnsAsCategorie = useColumnsAsCategorie;
 186  0
         }
 187  
 }