Revision 9775 trunk/libraries/libUI/src/org/gvsig/gui/beans/textBoxWithCalendar/JCalendarDateDialog.java
JCalendarDateDialog.java | ||
---|---|---|
189 | 189 |
} |
190 | 190 |
|
191 | 191 |
/** |
192 |
* Sets the maximum width for this component, according a percentage of the width of the screen |
|
192 |
* Sets the maximum width for this component, according a percentage of the width resolution of the screen
|
|
193 | 193 |
* (If the parameter isn't > 0.0 neither -1.0 neither <= 1.0, this method doesn't apply the changes) |
194 | 194 |
* |
195 | 195 |
* @param max_width_screen_percentage A float number > 0, or -1 if there is no limit |
196 | 196 |
*/ |
197 |
public void setMaximumWidthScreenPercentage(double max_width_screen_percentage) { |
|
197 |
public void setMaximumWidthScreenResolutionPercentage(double max_width_screen_percentage) {
|
|
198 | 198 |
int max_width = (int) Math.ceil(Toolkit.getDefaultToolkit().getScreenSize().width * max_width_screen_percentage); |
199 | 199 |
|
200 | 200 |
if ((max_width > 0) || (max_width == -1)) { |
... | ... | |
203 | 203 |
} |
204 | 204 |
|
205 | 205 |
/** |
206 |
* Sets the minimum width for this component, according a percentage of the width of the screen |
|
206 |
* Sets the minimum width for this component, according a percentage of the width resolution of the screen
|
|
207 | 207 |
* (If the parameter isn't > 0.0 neither -1.0 neither <= 1.0, this method doesn't apply the changes) |
208 | 208 |
* |
209 | 209 |
* @param min_width_screen_percentage A float number > 0.0 neither -1.0 neither <= 1.0, or -1 if there is no limit |
210 | 210 |
*/ |
211 |
public void setMinimumWidthScreenPercentage(double min_width_screen_percentage) { |
|
211 |
public void setMinimumWidthScreenResolutionPercentage(double min_width_screen_percentage) {
|
|
212 | 212 |
int min_width = (int) Math.ceil(Toolkit.getDefaultToolkit().getScreenSize().width * min_width_screen_percentage); |
213 | 213 |
|
214 | 214 |
if ((min_width > 0) || (min_width == -1)) |
... | ... | |
216 | 216 |
} |
217 | 217 |
|
218 | 218 |
/** |
219 |
* Sets the maximum height for this component, according a percentage of the height of the screen |
|
219 |
* Sets the maximum height for this component, according a percentage of the height resolution of the screen
|
|
220 | 220 |
* (If the parameter isn't > 0.0 neither -1.0 neither <= 1.0, this method doesn't apply the changes) |
221 | 221 |
* |
222 | 222 |
* @param max_width_screen_percentage A float number > 0.0 neither -1.0 neither <= 1.0, or -1 if there is no limit |
223 | 223 |
*/ |
224 |
public void setMaximumHeightScreenPercentage(double max_height_screen_percentage) { |
|
224 |
public void setMaximumHeightScreenResolutionPercentage(double max_height_screen_percentage) {
|
|
225 | 225 |
if (((max_height_screen_percentage > 0.0) && (max_height_screen_percentage <= 1.0)) || (max_height_screen_percentage == -1.0)) { |
226 | 226 |
int max_height = (int) Math.ceil(Toolkit.getDefaultToolkit().getScreenSize().height * max_height_screen_percentage); |
227 | 227 |
this.maxDimensionOfJDialog.height = max_height; |
... | ... | |
229 | 229 |
} |
230 | 230 |
|
231 | 231 |
/** |
232 |
* Sets the minimum height for this component, according a percentage of the height of the screen |
|
232 |
* Sets the minimum height for this component, according a percentage of the height resolution of the screen
|
|
233 | 233 |
* (If the parameter isn't > 0.0 neither -1.0 neither <= 1.0, this method doesn't apply the changes) |
234 | 234 |
* |
235 | 235 |
* @param min_width_screen_percentage A float number > 0.0 neither -1.0 neither <= 1.0, or -1 if there is no limit |
236 | 236 |
*/ |
237 |
public void setMinimumHeightScreenPercentage(double min_height_screen_percentage) { |
|
237 |
public void setMinimumHeightScreenResolutionPercentage(double min_height_screen_percentage) {
|
|
238 | 238 |
if (((min_height_screen_percentage > 0.0) && (min_height_screen_percentage <= 1.0)) || (min_height_screen_percentage == -1.0)) { |
239 | 239 |
int min_height = (int) Math.ceil(Toolkit.getDefaultToolkit().getScreenSize().height * min_height_screen_percentage); |
240 | 240 |
this.minDimensionOfJDialog.height = min_height; |
Also available in: Unified diff