KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openbravo > erpCommon > utility > BandStyleVO


1 /*
2  *************************************************************************
3  * The contents of this file are subject to the Openbravo Public License
4  * Version 1.0 (the "License"), being the Mozilla Public License
5  * Version 1.1 with a permitted attribution clause; you may not use this
6  * file except in compliance with the License. You may obtain a copy of
7  * the License at http://www.openbravo.com/legal/license.html
8  * Software distributed under the License is distributed on an "AS IS"
9  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
10  * License for the specific language governing rights and limitations
11  * under the License.
12  * The Original Code is Openbravo ERP.
13  * The Initial Developer of the Original Code is Openbravo SL
14  * All portions are Copyright (C) 2007 Openbravo SL
15  * All Rights Reserved.
16  * Contributor(s): ______________________________________.
17  ************************************************************************
18 */

19 package org.openbravo.erpCommon.utility;
20
21 import java.awt.Color JavaDoc;
22
23 public class BandStyleVO {
24   private String JavaDoc fontName;
25
26   private int fontSize;
27
28   private Color JavaDoc foreColor;
29
30   private boolean bold;
31
32   private boolean italic;
33
34   private boolean underline;
35
36   public BandStyleVO() {
37     this(null, new Color JavaDoc(0, 0, 0), 9, false, false, false);
38   }
39
40   public BandStyleVO(String JavaDoc fontName, Color JavaDoc foreColor, int fontSize,
41       boolean bold, boolean italic, boolean underline) {
42     super();
43     this.fontName = fontName;
44     this.foreColor = foreColor;
45     this.bold = bold;
46     this.italic = italic;
47     this.underline = underline;
48     this.fontSize = fontSize;
49   }
50
51   public String JavaDoc getFontName() {
52     return fontName;
53   }
54
55   public int getFontSize() {
56     return fontSize;
57   }
58
59   public Color JavaDoc getForeColor() {
60     return foreColor;
61   }
62
63   public boolean isBold() {
64     return bold;
65   }
66
67   public boolean isItalic() {
68     return italic;
69   }
70
71   public boolean isUnderline() {
72     return underline;
73   }
74
75   public void setBold(boolean bold) {
76     this.bold = bold;
77   }
78
79   public void setFontName(String JavaDoc fontName) {
80     this.fontName = fontName;
81   }
82
83   public void setFontSize(int size) {
84     this.fontSize = size;
85   }
86
87   public void setForeColor(Color JavaDoc foreColor) {
88     this.foreColor = foreColor;
89   }
90
91   public void setItalic(boolean italic) {
92     this.italic = italic;
93   }
94
95   public void setUnderline(boolean underline) {
96     this.underline = underline;
97   }
98
99 }
100
Popular Tags