Mercurial > dive4elements > river
annotate flys-artifacts/src/main/java/de/intevation/flys/jfree/Function2DAdapter.java @ 3165:6b13d7e7b403
FixA: Added more debug output.
flys-artifacts/trunk@4778 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 25 Jun 2012 14:36:46 +0000 |
parents | 842502b3913a |
children |
rev | line source |
---|---|
3034
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
1 package de.intevation.flys.jfree; |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
2 |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
3 import de.intevation.flys.artifacts.math.Function; |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
4 |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
5 import org.jfree.data.function.Function2D; |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
6 |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
7 public class Function2DAdapter |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
8 implements Function2D |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
9 { |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
10 protected Function function; |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
11 |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
12 public Function2DAdapter() { |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
13 } |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
14 |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
15 public Function2DAdapter(Function function) { |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
16 this.function = function; |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
17 } |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
18 |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
19 public Function getFunction() { |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
20 return function; |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
21 } |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
22 |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
23 public void setFunction(Function function) { |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
24 this.function = function; |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
25 } |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
26 |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
27 @Override |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
28 public double getValue(double x) { |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
29 return function.value(x); |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
30 } |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
31 } |
842502b3913a
JFreeChart: Added adapter class to bridge de.intevation.flys.artifacts.math.Function to org.jfree.data.function.Function2D.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
32 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |