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