Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/chart/ChartStyle.java @ 657:af3f56758f59
merged gnv-artifacts/0.5
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:53 +0200 |
parents | 7fb9441dd8af |
children |
comparison
equal
deleted
inserted
replaced
590:5f5f273c8566 | 657:af3f56758f59 |
---|---|
1 /* Copyright (C) 2007 con terra GmbH (http://www.conterra.de) | |
2 * All rights reserved | |
3 * | |
4 * $Id: ChartStyle.java,v 1.2 2007/12/21 12:31:15 blume Exp $ | |
5 * | |
6 * created by: drewnak | |
7 * created at : 10.12.2007 | |
8 * created at : 13:07:44 | |
9 * | |
10 * modified by: $Author: blume $ | |
11 * modified at: $Date: 2007/12/21 12:31:15 $ | |
12 */ | |
13 package de.intevation.gnv.chart; | |
14 | |
15 import java.awt.Color; | |
16 import java.awt.Dimension; | |
17 | |
18 /** | |
19 * @author drewnak | |
20 */ | |
21 public class ChartStyle { | |
22 | |
23 private Color mCanvasColor; | |
24 private Color mPlotBackgroundColor; | |
25 private Color mDomainGridlineColor; | |
26 private Color mRangeGridlineColor; | |
27 private boolean mDomainCrosshairVisible; | |
28 private boolean mRangeCrosshairVisible; | |
29 private Insets mAxisOffset; | |
30 private boolean mOverrideDefaultChartWidth = false; | |
31 private Dimension mChartSize; | |
32 | |
33 private boolean mUseUpperDataLevel = false; | |
34 private boolean mUseLowerDataLevel = false; | |
35 private int mUpperLevel; | |
36 private int mLowerLevel; | |
37 | |
38 /** | |
39 * @param pCanvasColor | |
40 * @param pPlotBackgroundColor | |
41 * @param pDomainGridlineColor | |
42 * @param pRangeGridlineColor | |
43 * @param pDomainCrosshairVisible | |
44 * @param pRangeCrosshairVisible | |
45 * @param pAxisOffset | |
46 */ | |
47 public ChartStyle(Color pCanvasColor, Color pPlotBackgroundColor, | |
48 Color pDomainGridlineColor, Color pRangeGridlineColor, | |
49 boolean pDomainCrosshairVisible, | |
50 boolean pRangeCrosshairVisible, Insets pAxisOffset, | |
51 Dimension pChartSize) { | |
52 super(); | |
53 mCanvasColor = pCanvasColor; | |
54 mPlotBackgroundColor = pPlotBackgroundColor; | |
55 mDomainGridlineColor = pDomainGridlineColor; | |
56 mRangeGridlineColor = pRangeGridlineColor; | |
57 mDomainCrosshairVisible = pDomainCrosshairVisible; | |
58 mRangeCrosshairVisible = pRangeCrosshairVisible; | |
59 mAxisOffset = pAxisOffset; | |
60 mChartSize = pChartSize; | |
61 } | |
62 | |
63 public Color getCanvasColor() { | |
64 return mCanvasColor; | |
65 } | |
66 | |
67 public void setCanvasColor(Color pCanvasColor) { | |
68 mCanvasColor = pCanvasColor; | |
69 } | |
70 | |
71 public Color getDomainGridlineColor() { | |
72 return mDomainGridlineColor; | |
73 } | |
74 | |
75 public void setDomainGridlineColor(Color pDomainGridlineColor) { | |
76 mDomainGridlineColor = pDomainGridlineColor; | |
77 } | |
78 | |
79 public Color getRangeGridlineColor() { | |
80 return mRangeGridlineColor; | |
81 } | |
82 | |
83 public void setRangeGridlineColor(Color pRangeGridlineColor) { | |
84 mRangeGridlineColor = pRangeGridlineColor; | |
85 } | |
86 | |
87 public boolean isDomainCrosshairVisible() { | |
88 return mDomainCrosshairVisible; | |
89 } | |
90 | |
91 public void setDomainCrosshairVisible(boolean pDomainCrosshairVisible) { | |
92 mDomainCrosshairVisible = pDomainCrosshairVisible; | |
93 } | |
94 | |
95 public boolean isRangeCrosshairVisible() { | |
96 return mRangeCrosshairVisible; | |
97 } | |
98 | |
99 public void setRangeCrosshairVisible(boolean pRangeCrosshairVisible) { | |
100 mRangeCrosshairVisible = pRangeCrosshairVisible; | |
101 } | |
102 | |
103 public Insets getAxisOffset() { | |
104 return mAxisOffset; | |
105 } | |
106 | |
107 public void setAxisOffset(Insets pAxisOffset) { | |
108 mAxisOffset = pAxisOffset; | |
109 } | |
110 | |
111 public Color getPlotBackgroundColor() { | |
112 return mPlotBackgroundColor; | |
113 } | |
114 | |
115 public void setPlotBackgroundColor(Color pPlotBackgroundColor) { | |
116 mPlotBackgroundColor = pPlotBackgroundColor; | |
117 } | |
118 | |
119 public Dimension getChartSize() { | |
120 return mChartSize; | |
121 } | |
122 | |
123 public void setChartSize(Dimension pChartSize) { | |
124 mChartSize = pChartSize; | |
125 } | |
126 | |
127 public boolean isOverrideDefaultChartWidth() { | |
128 return mOverrideDefaultChartWidth; | |
129 } | |
130 | |
131 public void setOverrideDefaultChartWidth(boolean pOverrideDefaultChartWidth) { | |
132 mOverrideDefaultChartWidth = pOverrideDefaultChartWidth; | |
133 } | |
134 | |
135 public void setNewChartWidth(int pNewChartWidth) { | |
136 mChartSize.setSize(pNewChartWidth, mChartSize.getHeight()); | |
137 } | |
138 | |
139 public boolean isUseUpperDataLevel() { | |
140 return mUseUpperDataLevel; | |
141 } | |
142 | |
143 public void setUseUpperDataLevel(boolean pUseUpperDataLevel) { | |
144 mUseUpperDataLevel = pUseUpperDataLevel; | |
145 } | |
146 | |
147 public boolean isUseLowerDataLevel() { | |
148 return mUseLowerDataLevel; | |
149 } | |
150 | |
151 public void setUseLowerDataLevel(boolean pUseLowerDataLevel) { | |
152 mUseLowerDataLevel = pUseLowerDataLevel; | |
153 } | |
154 | |
155 public int getUpperLevel() { | |
156 return mUpperLevel; | |
157 } | |
158 | |
159 public void setUpperLevel(int pUpperLevel) { | |
160 mUpperLevel = pUpperLevel; | |
161 } | |
162 | |
163 public int getLowerLevel() { | |
164 return mLowerLevel; | |
165 } | |
166 | |
167 public void setLowerLevel(int pLowerLevel) { | |
168 mLowerLevel = pLowerLevel; | |
169 } | |
170 } |