01: /*
02: * TestMain2.java
03: *
04: * Created on June 17, 2004, 11:52 AM
05: */
06:
07: package org.netbeans.test.freeformlib;
08:
09: /**
10: *
11: * @author mkubec
12: */
13: public class Divider {
14: private double x = 0;
15: private double y = 1;
16:
17: public Divider() {
18: }
19:
20: public Divider(double x, double y) {
21: this .x = x;
22: this .y = y;
23: }
24:
25: public double getDivision() {
26: return x / y;
27: }
28:
29: public double getX() {
30: return x;
31: }
32:
33: public void setX(double x) {
34: this .x = x;
35: }
36:
37: public double getY() {
38: return y;
39: }
40:
41: public void setY(double y) {
42: this.y = y;
43: }
44: }
|