01: /*
02: * To change this template, choose Tools | Templates
03: * and open the template in the editor.
04: */
05:
06: package it.businesslogic.ireport;
07:
08: import java.awt.Color;
09:
10: /**
11: *
12: * @author gtoffoli
13: */
14: public class Pen {
15:
16: private float lineWidth = 0f;
17: private String lineStyle = null; //"Solid";
18: private Color lineColor = null;
19:
20: public float getLineWidth() {
21: return lineWidth;
22: }
23:
24: public void setLineWidth(float lineWidth) {
25: this .lineWidth = lineWidth;
26: }
27:
28: public String getLineStyle() {
29: return lineStyle;
30: }
31:
32: public Color getLineColor() {
33: return lineColor;
34: }
35:
36: public void setLineStyle(String lineStyle) {
37: this .lineStyle = lineStyle;
38: }
39:
40: public void setLineColor(Color lineColor) {
41: this .lineColor = lineColor;
42: }
43:
44: public Pen cloneMe() {
45: Pen pen = new Pen();
46: pen.setLineColor(getLineColor());
47: pen.setLineStyle(getLineStyle());
48: pen.setLineWidth(getLineWidth());
49: return pen;
50: }
51:
52: public String toString() {
53: return getLineWidth() + " " + getLineStyle() + " "
54: + getLineColor();
55: }
56:
57: }
|