Skip to content

Commit

Permalink
Move resources back to resources folder
Browse files Browse the repository at this point in the history
  • Loading branch information
notmattlythgoe committed Nov 8, 2018
1 parent 7c539d3 commit 02d9e32
Show file tree
Hide file tree
Showing 5 changed files with 3,550 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
<attribute name="gradle_used_by_scope" value="main,test"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="bin/main" path="src/main/resources">
<attributes>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin/default"/>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/team319/ui/Plotter.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void plotChezyTrajectory(Path path, SrxTranslatorConfig config) {

Group root = new Group();
try {
ImageView iv1 = new ImageView(new Image(getClass().getResourceAsStream("field.png"), 648, 648, true, true));
ImageView iv1 = new ImageView(new Image(getClass().getResourceAsStream("/field.png"), 648, 648, true, true));
root.getChildren().add(iv1);
} catch(Exception e) { }

Expand All @@ -121,7 +121,7 @@ public void plotChezyTrajectory(Path path, SrxTranslatorConfig config) {
Scene scene = new Scene(pane);
scene.getStylesheets().clear();
try {
scene.getStylesheets().add(getClass().getResource("Plotter.css").toExternalForm());
scene.getStylesheets().add(getClass().getResource("/Plotter.css").toExternalForm());
} catch (Exception e) { }
stage.setScene(scene);
stage.setResizable(false);
Expand Down
19 changes: 19 additions & 0 deletions src/main/resources/Plotter.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.default-color0.chart-symbol { /* solid circle */
-fx-stroke: orangered;
-fx-background-color: orangered, orangered;
-fx-background-radius: 2px;
-fx-padding: 1px;
}

.default-color1.chart-symbol { /* solid circle */
-fx-stroke: blue;
-fx-background-color: blue, blue;
-fx-background-radius: 2px;
-fx-padding: 1px;
}
.default-color2.chart-symbol { /* solid circle */
-fx-stroke: purple;
-fx-background-color: purple, purple;
-fx-background-radius: 2px;
-fx-padding: 1px;
}
Loading

0 comments on commit 02d9e32

Please sign in to comment.