Skip to content

Commit

Permalink
commit3
Browse files Browse the repository at this point in the history
  • Loading branch information
tainfante committed Nov 11, 2017
1 parent 5fce7f6 commit 4af606a
Show file tree
Hide file tree
Showing 20 changed files with 358 additions and 207 deletions.
269 changes: 173 additions & 96 deletions .idea/workspace.xml

Large diffs are not rendered by default.

Binary file modified out/production/RealTimeSerialPlotter/application/Main.class
Binary file not shown.
Binary file modified out/production/RealTimeSerialPlotter/mainwindow/COMPort.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
24 changes: 24 additions & 0 deletions out/production/RealTimeSerialPlotter/mainwindow/channel.fxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>

<AnchorPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="mainwindow.Channel"
prefHeight="400.0" prefWidth="600.0">
<children>
<TextField layoutX="46.0" layoutY="118.0" />
<TextField layoutX="217.0" layoutY="118.0" />
<ColorPicker layoutX="396.0" layoutY="118.0" />
<Button layoutX="45.0" layoutY="149.0" mnemonicParsing="false" text="Set" />
<ChoiceBox layoutX="45.0" layoutY="53.0" prefWidth="150.0" />
<Label layoutX="48.0" layoutY="26.0" prefHeight="17.0" prefWidth="149.0" text="Choose channel" />
<Label layoutX="45.0" layoutY="91.0" prefHeight="17.0" prefWidth="152.0" text="Set curve name" />
<Label layoutX="217.0" layoutY="91.0" prefHeight="17.0" prefWidth="151.0" text="Set units" />
<Label layoutX="396.0" layoutY="91.0" prefHeight="17.0" prefWidth="127.0" text="Set color" />
</children>
</AnchorPane>
29 changes: 27 additions & 2 deletions out/production/RealTimeSerialPlotter/mainwindow/chart.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,34 @@
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>

<?import javafx.scene.chart.LineChart?>
<?import javafx.scene.chart.CategoryAxis?>
<?import javafx.scene.chart.NumberAxis?>
<AnchorPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="mainwindow.Chart"
prefHeight="400.0" prefWidth="600.0">

prefHeight="180.0" prefWidth="200.0">
<children>
<LineChart layoutY="37.0" prefHeight="226.0" prefWidth="455.0">
<xAxis>
<CategoryAxis side="BOTTOM" />
</xAxis>
<yAxis>
<NumberAxis side="LEFT" />
</yAxis>
</LineChart>
<RadioButton layoutX="474.0" layoutY="87.0" mnemonicParsing="false" text="Channel 3" />
<RadioButton layoutX="474.0" layoutY="104.0" mnemonicParsing="false" text="Channel 4" />
<RadioButton layoutX="474.0" layoutY="121.0" mnemonicParsing="false" text="Channel 5" />
<RadioButton layoutX="474.0" layoutY="142.0" mnemonicParsing="false" text="Channel 6" />
<RadioButton layoutX="474.0" layoutY="161.0" mnemonicParsing="false" text="Channel 7" />
<RadioButton layoutX="474.0" layoutY="178.0" mnemonicParsing="false" text="Channel 8" />
<RadioButton layoutX="474.0" layoutY="53.0" mnemonicParsing="false" text="Channel 1" />
<RadioButton layoutX="474.0" layoutY="70.0" mnemonicParsing="false" text="Channel 2" />
<Button layoutX="114.0" layoutY="263.0" mnemonicParsing="false" text="START" />
<Button layoutX="176.0" layoutY="263.0" mnemonicParsing="false" text="STOP" />
<CheckBox layoutX="475.0" layoutY="205.0" mnemonicParsing="false" text="CheckBox" />
</children>
</AnchorPane>


14 changes: 14 additions & 0 deletions out/production/RealTimeSerialPlotter/mainwindow/export.fxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>

<AnchorPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="mainwindow.Export"
prefHeight="400.0" prefWidth="600.0">

</AnchorPane>
14 changes: 14 additions & 0 deletions out/production/RealTimeSerialPlotter/mainwindow/log.fxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>

<AnchorPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="mainwindow.Log"
prefHeight="400.0" prefWidth="600.0">

</AnchorPane>
58 changes: 6 additions & 52 deletions out/production/RealTimeSerialPlotter/mainwindow/mainwindow.fxml
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.chart.CategoryAxis?>
<?import javafx.scene.chart.LineChart?>
<?import javafx.scene.chart.NumberAxis?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.CheckBox?>
<?import javafx.scene.control.ChoiceBox?>
<?import javafx.scene.control.ColorPicker?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Menu?>
<?import javafx.scene.control.MenuBar?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.ProgressBar?>
<?import javafx.scene.control.RadioButton?>
<?import javafx.scene.control.Tab?>
<?import javafx.scene.control.TabPane?>
<?import javafx.scene.control.TextField?>
Expand Down Expand Up @@ -45,72 +39,32 @@
</Menu>
</menus>
</MenuBar>
<TabPane layoutY="76.0" prefHeight="326.0" prefWidth="600.0" tabClosingPolicy="UNAVAILABLE">
<TabPane layoutY="52.0" prefHeight="350.0" prefWidth="600.0" tabClosingPolicy="UNAVAILABLE">
<tabs>
<Tab text="Chart">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
<children>
<LineChart layoutY="37.0" prefHeight="226.0" prefWidth="455.0">
<xAxis>
<CategoryAxis side="BOTTOM" />
</xAxis>
<yAxis>
<NumberAxis side="LEFT" />
</yAxis>
</LineChart>
<RadioButton layoutX="474.0" layoutY="87.0" mnemonicParsing="false" text="Channel 3" />
<RadioButton layoutX="474.0" layoutY="104.0" mnemonicParsing="false" text="Channel 4" />
<RadioButton layoutX="474.0" layoutY="121.0" mnemonicParsing="false" text="Channel 5" />
<RadioButton layoutX="474.0" layoutY="142.0" mnemonicParsing="false" text="Channel 6" />
<RadioButton layoutX="474.0" layoutY="161.0" mnemonicParsing="false" text="Channel 7" />
<RadioButton layoutX="474.0" layoutY="178.0" mnemonicParsing="false" text="Channel 8" />
<RadioButton layoutX="474.0" layoutY="53.0" mnemonicParsing="false" text="Channel 1" />
<RadioButton layoutX="474.0" layoutY="70.0" mnemonicParsing="false" text="Channel 2" />
<Button layoutX="114.0" layoutY="263.0" mnemonicParsing="false" text="START" />
<Button layoutX="176.0" layoutY="263.0" mnemonicParsing="false" text="STOP" />
<CheckBox layoutX="475.0" layoutY="205.0" mnemonicParsing="false" text="CheckBox" />
</children>
</AnchorPane>
<fx:include source="chart.fxml" />
</content>
</Tab>
<Tab text="Channel settings">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
<children>
<TextField layoutX="46.0" layoutY="118.0" />
<TextField layoutX="217.0" layoutY="118.0" />
<ColorPicker layoutX="396.0" layoutY="118.0" />
<Button layoutX="45.0" layoutY="149.0" mnemonicParsing="false" text="Set" />
<ChoiceBox layoutX="45.0" layoutY="53.0" prefWidth="150.0" />
<Label layoutX="48.0" layoutY="26.0" prefHeight="17.0" prefWidth="149.0" text="Choose channel" />
<Label layoutX="45.0" layoutY="91.0" prefHeight="17.0" prefWidth="152.0" text="Set curve name" />
<Label layoutX="217.0" layoutY="91.0" prefHeight="17.0" prefWidth="151.0" text="Set units" />
<Label layoutX="396.0" layoutY="91.0" prefHeight="17.0" prefWidth="127.0" text="Set color" />
</children></AnchorPane>
<fx:include source="channel.fxml" />
</content>
</Tab>
<Tab text="Export">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0" />
<fx:include source="export.fxml" />
</content>
</Tab>
<Tab text="Log">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0" />
<fx:include source="log.fxml" />
</content>
</Tab>
</tabs>
</TabPane>
<HBox layoutY="27.0" prefHeight="25.0" prefWidth="600.0">
<children>
<Button mnemonicParsing="false" text="Button" />
<ProgressBar prefHeight="25.0" prefWidth="200.0" progress="0.0" />
<Label prefHeight="25.0" prefWidth="348.0" text="Label" />
</children></HBox>
<HBox layoutY="52.0" prefHeight="25.0" prefWidth="600.0" >
<fx:include source="comport.fxml"/>

<fx:include source="comport.fxml" />
</HBox>
</children>
</AnchorPane>
6 changes: 3 additions & 3 deletions src/application/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ public class Main extends Application {

@Override
public void start(Stage primaryStage) throws Exception{
Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
primaryStage.setTitle("Hello World");
primaryStage.setScene(new Scene(root, 300, 275));
Parent root = FXMLLoader.load(getClass().getResource("/mainwindow/mainwindow.fxml"));
primaryStage.setTitle("Real Time Serial Plotter");
primaryStage.setScene(new Scene(root, 600, 400));
primaryStage.show();
}

Expand Down
4 changes: 4 additions & 0 deletions src/mainwindow/Channel.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package mainwindow;

public class Channel {
}
4 changes: 4 additions & 0 deletions src/mainwindow/Export.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package mainwindow;

public class Export {
}
4 changes: 4 additions & 0 deletions src/mainwindow/Log.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package mainwindow;

public class Log {
}
24 changes: 24 additions & 0 deletions src/mainwindow/channel.fxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>

<AnchorPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="mainwindow.Channel"
prefHeight="400.0" prefWidth="600.0">
<children>
<TextField layoutX="46.0" layoutY="118.0" />
<TextField layoutX="217.0" layoutY="118.0" />
<ColorPicker layoutX="396.0" layoutY="118.0" />
<Button layoutX="45.0" layoutY="149.0" mnemonicParsing="false" text="Set" />
<ChoiceBox layoutX="45.0" layoutY="53.0" prefWidth="150.0" />
<Label layoutX="48.0" layoutY="26.0" prefHeight="17.0" prefWidth="149.0" text="Choose channel" />
<Label layoutX="45.0" layoutY="91.0" prefHeight="17.0" prefWidth="152.0" text="Set curve name" />
<Label layoutX="217.0" layoutY="91.0" prefHeight="17.0" prefWidth="151.0" text="Set units" />
<Label layoutX="396.0" layoutY="91.0" prefHeight="17.0" prefWidth="127.0" text="Set color" />
</children>
</AnchorPane>
29 changes: 27 additions & 2 deletions src/mainwindow/chart.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,34 @@
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>

<?import javafx.scene.chart.LineChart?>
<?import javafx.scene.chart.CategoryAxis?>
<?import javafx.scene.chart.NumberAxis?>
<AnchorPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="mainwindow.Chart"
prefHeight="400.0" prefWidth="600.0">

prefHeight="180.0" prefWidth="200.0">
<children>
<LineChart layoutY="37.0" prefHeight="226.0" prefWidth="455.0">
<xAxis>
<CategoryAxis side="BOTTOM" />
</xAxis>
<yAxis>
<NumberAxis side="LEFT" />
</yAxis>
</LineChart>
<RadioButton layoutX="474.0" layoutY="87.0" mnemonicParsing="false" text="Channel 3" />
<RadioButton layoutX="474.0" layoutY="104.0" mnemonicParsing="false" text="Channel 4" />
<RadioButton layoutX="474.0" layoutY="121.0" mnemonicParsing="false" text="Channel 5" />
<RadioButton layoutX="474.0" layoutY="142.0" mnemonicParsing="false" text="Channel 6" />
<RadioButton layoutX="474.0" layoutY="161.0" mnemonicParsing="false" text="Channel 7" />
<RadioButton layoutX="474.0" layoutY="178.0" mnemonicParsing="false" text="Channel 8" />
<RadioButton layoutX="474.0" layoutY="53.0" mnemonicParsing="false" text="Channel 1" />
<RadioButton layoutX="474.0" layoutY="70.0" mnemonicParsing="false" text="Channel 2" />
<Button layoutX="114.0" layoutY="263.0" mnemonicParsing="false" text="START" />
<Button layoutX="176.0" layoutY="263.0" mnemonicParsing="false" text="STOP" />
<CheckBox layoutX="475.0" layoutY="205.0" mnemonicParsing="false" text="CheckBox" />
</children>
</AnchorPane>


14 changes: 14 additions & 0 deletions src/mainwindow/export.fxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>

<AnchorPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="mainwindow.Export"
prefHeight="400.0" prefWidth="600.0">

</AnchorPane>
14 changes: 14 additions & 0 deletions src/mainwindow/log.fxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>

<AnchorPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="mainwindow.Log"
prefHeight="400.0" prefWidth="600.0">

</AnchorPane>
Loading

0 comments on commit 4af606a

Please sign in to comment.