-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show future on color guess submit #17
- Loading branch information
1 parent
226c478
commit c1a824d
Showing
6 changed files
with
134 additions
and
17 deletions.
There are no files selected for viewing
Submodule fxgraph
updated
2 files
+22 −0 | src/main/java/com/fxgraph/graph/CartesianGraph.java | |
+25 −0 | src/main/java/com/fxgraph/graph/MultiplotModel.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
package ogallagher.marketsense.util; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
import java.util.concurrent.Callable; | ||
|
||
import javafx.geometry.Point2D; | ||
|
||
public abstract class PointFilter implements Callable<List<Point2D>> { | ||
protected List<Point2D> input = new ArrayList<>(); | ||
protected double minX, maxX, graphWidth, minY, maxY, graphHeight; | ||
|
||
public PointFilter() { | ||
this(0,0,0,0,0,0); | ||
} | ||
|
||
/** | ||
* @param x Min x. | ||
* @param X Max x. | ||
* @param y Min y. | ||
* @param Y Max y. | ||
* @param w Graph width. | ||
* @param h Graph height. | ||
*/ | ||
public PointFilter(double x, double X, double y, double Y, double w, double h) { | ||
minX = x; | ||
maxX = X; | ||
minY = y; | ||
maxY = Y; | ||
graphWidth = w; | ||
graphHeight = h; | ||
} | ||
|
||
public void setInput(List<Point2D> input) { | ||
this.input.clear(); | ||
this.input.addAll(input); | ||
} | ||
|
||
public void setInput(Point2D input) { | ||
this.input.clear(); | ||
this.input.add(input); | ||
} | ||
|
||
public double getMinX() { | ||
return minX; | ||
} | ||
|
||
public double getMaxX() { | ||
return maxX; | ||
} | ||
|
||
public double getMinY() { | ||
return minY; | ||
} | ||
|
||
public double getMaxY() { | ||
return maxY; | ||
} | ||
|
||
public double getGraphWidth() { | ||
return graphWidth; | ||
} | ||
|
||
public double getGraphHeight() { | ||
return graphHeight; | ||
} | ||
|
||
public List<Point2D> call() throws Exception { | ||
throw new UnsupportedOperationException("must be defined by implementing class"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package ogallagher.marketsense.util; |