first commit

This commit is contained in:
2019-08-13 12:23:06 -05:00
commit 916073f43b
337 changed files with 23253 additions and 0 deletions

18
Lab 7/.idea/checkstyle-idea.xml generated Normal file
View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CheckStyle-IDEA">
<option name="configuration">
<map>
<entry key="active-configuration" value="LOCAL_FILE:C:/Users/barnestr/Documents/SE 1021/Spring 2018/SE1021_checkStyle - v3.xml:se" />
<entry key="checkstyle-version" value="8.5" />
<entry key="copy-libs" value="true" />
<entry key="location-0" value="BUNDLED:(bundled):Sun Checks" />
<entry key="location-1" value="BUNDLED:(bundled):Google Checks" />
<entry key="location-2" value="LOCAL_FILE:C:/Users/barnestr/Documents/SE 1021/Spring 2018/SE1021_checkStyle - v3.xml:se" />
<entry key="scan-before-checkin" value="false" />
<entry key="scanscope" value="JavaOnly" />
<entry key="suppress-errors" value="false" />
</map>
</option>
</component>
</project>

Binary file not shown.

View File

@@ -0,0 +1,6 @@
This folder contains libraries copied from the "Lab 7" project.
It is managed by the CheckStyle-IDEA IDE plugin.
Do not modify this folder while the IDE is running.
When the IDE is stopped, you may delete this folder at any time. It will be recreated as needed.
In order to prevent the CheckStyle-IDEA IDE plugin from creating this folder,
uncheck the "Copy libraries from project directory" option in the CheckStyle-IDEA settings dialog.

10
Lab 7/.idea/libraries/libs.xml generated Normal file
View File

@@ -0,0 +1,10 @@
<component name="libraryTable">
<library name="libs">
<CLASSES>
<root url="file://$PROJECT_DIR$/libs" />
</CLASSES>
<JAVADOC />
<SOURCES />
<jarDirectory url="file://$PROJECT_DIR$/libs" recursive="false" />
</library>
</component>

6
Lab 7/.idea/misc.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

8
Lab 7/.idea/modules.xml generated Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/Lab 7.iml" filepath="$PROJECT_DIR$/Lab 7.iml" />
</modules>
</component>
</project>

555
Lab 7/.idea/workspace.xml generated Normal file
View File

@@ -0,0 +1,555 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="b11afcb8-bf6f-4dbd-a54a-0d8dbbe86e03" name="Default" comment="" />
<ignored path="$PROJECT_DIR$/out/" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="CheckStyle-IDEA-workspace">
<option name="configuration">
<map>
<entry key="last-active-plugin-version" value="5.18.4" />
</map>
</option>
</component>
<component name="CoverageDataManager">
<SUITE FILE_PATH="coverage/Lab_7$ShapeLoaderApp.coverage" NAME="ShapeLoaderApp Coverage Results" MODIFIED="1525729571131" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false">
<FILTER>barnestr.*</FILTER>
</SUITE>
</component>
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/barnestr/ShapeLoaderApp.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1564">
<caret line="109" column="46" selection-start-line="109" selection-start-column="46" selection-end-line="109" selection-end-column="46" />
<folding>
<element signature="e#0#4783#0" expanded="true" />
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/barnestr/Shape.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="663">
<caret line="46" selection-start-line="46" selection-end-line="46" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/barnestr/Rectangle.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="204">
<caret line="19" column="13" selection-start-line="19" selection-start-column="13" selection-end-line="19" selection-end-column="13" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/barnestr/LabeledRectangle.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="204">
<caret line="19" column="13" selection-start-line="19" selection-start-column="13" selection-end-line="19" selection-end-column="13" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/barnestr/LabeledTriangle.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="204">
<caret line="19" column="13" selection-start-line="19" selection-start-column="13" selection-end-line="19" selection-end-column="13" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/barnestr/Point.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="578">
<caret line="41" selection-start-line="41" selection-end-line="41" />
<folding>
<element signature="e#0#920#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/sampleInput.txt">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="51">
<caret line="3" selection-start-line="3" selection-end-line="3" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/barnestr/Circle.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="221">
<caret line="20" column="13" selection-start-line="20" selection-start-column="13" selection-end-line="20" selection-end-column="13" />
<folding>
<element signature="e#0#1410#0" expanded="true" />
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="Class" />
</list>
</option>
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/src/barnestr/Triangle.java" />
<option value="$PROJECT_DIR$/libs/WinPlotterFX.jar!/edu/msoe/winplotterfx/WinPlotterFX.class" />
<option value="$PROJECT_DIR$/sampleInput.txt" />
<option value="$PROJECT_DIR$/src/barnestr/ShapeLoaderApp.java" />
</list>
</option>
</component>
<component name="ProjectFrameBounds" extendedState="6">
<option name="x" value="1264" />
<option name="y" value="186" />
<option name="width" value="974" />
<option name="height" value="1047" />
</component>
<component name="ProjectView">
<navigator proportions="" version="1">
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<expand>
<path>
<item name="Lab 7" type="b2602c69:ProjectViewProjectNode" />
<item name="Lab 7" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Lab 7" type="b2602c69:ProjectViewProjectNode" />
<item name="Lab 7" type="462c0819:PsiDirectoryNode" />
<item name="libs" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Lab 7" type="b2602c69:ProjectViewProjectNode" />
<item name="Lab 7" type="462c0819:PsiDirectoryNode" />
<item name="libs" type="462c0819:PsiDirectoryNode" />
<item name="WinPlotterFX.jar" type="ab9368bb:PsiFileNode" />
</path>
<path>
<item name="Lab 7" type="b2602c69:ProjectViewProjectNode" />
<item name="Lab 7" type="462c0819:PsiDirectoryNode" />
<item name="libs" type="462c0819:PsiDirectoryNode" />
<item name="WinPlotterFX.jar" type="ab9368bb:PsiFileNode" />
<item name="winplotterfx" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Lab 7" type="b2602c69:ProjectViewProjectNode" />
<item name="Lab 7" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Lab 7" type="b2602c69:ProjectViewProjectNode" />
<item name="Lab 7" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="barnestr" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
</subPane>
</pane>
<pane id="PackagesPane" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/../../../../2018-2019/SE 2030/Git/project-alexanderr_barnest-boyntonr_burbackt" />
<property name="node.js.detected.package.eslint" value="true" />
<property name="node.js.path.for.package.eslint" value="project" />
<property name="node.js.selected.package.eslint" value="(autodetect)" />
<property name="project.structure.last.edited" value="Modules" />
<property name="project.structure.proportion" value="0.0" />
<property name="project.structure.side.proportion" value="0.2" />
<property name="settings.editor.selected.configurable" value="org.infernus.idea.checkstyle.CheckStyleConfigurable" />
</component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="C:\Users\barnestr\Documents\SE 1021\Spring 2018\Lab 7\src\barnestr" />
</key>
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
</component>
<component name="RunManager">
<configuration default="true" type="Applet">
<option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="ShapeLoaderApp" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="barnestr.ShapeLoaderApp" />
<module name="Lab 7" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="barnestr.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration default="true" type="Application" factoryName="Application">
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration default="true" type="JUnit" factoryName="JUnit">
<option name="TEST_OBJECT" value="class" />
<option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration default="true" type="TestNG">
<option name="TEST_OBJECT" value="CLASS" />
<option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
<properties />
<listeners />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType">
<module name="" />
<option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
<option name="PROGRAM_PARAMETERS" />
<predefined_log_file enabled="true" id="idea.log" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<recent_temporary>
<list>
<item itemvalue="Application.ShapeLoaderApp" />
</list>
</recent_temporary>
</component>
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="b11afcb8-bf6f-4dbd-a54a-0d8dbbe86e03" name="Default" comment="" />
<created>1524681835600</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1524681835600</updated>
<workItem from="1524681840413" duration="4522000" />
<workItem from="1524771199023" duration="1031000" />
<workItem from="1525060041679" duration="650000" />
<workItem from="1525286506260" duration="57000" />
<workItem from="1525316434229" duration="4055000" />
<workItem from="1525394790625" duration="25559000" />
<workItem from="1526337247282" duration="599000" />
<workItem from="1554943188293" duration="642000" />
<workItem from="1555010919082" duration="59000" />
<workItem from="1555011071125" duration="86000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="37260000" />
</component>
<component name="TodoView">
<todo-panel id="selected-file">
<is-autoscroll-to-source value="true" />
</todo-panel>
<todo-panel id="all">
<are-packages-shown value="true" />
<is-autoscroll-to-source value="true" />
</todo-panel>
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="2576" height="1416" extended-state="6" />
<layout>
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.1291733" />
<window_info id="Structure" order="1" weight="0.25" />
<window_info id="Image Layers" order="2" />
<window_info id="Designer" order="3" />
<window_info id="UI Designer" order="4" />
<window_info id="Capture Tool" order="5" />
<window_info id="Favorites" order="6" side_tool="true" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" weight="0.32934782" />
<window_info anchor="bottom" id="Run" order="2" weight="0.32969603" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.4054348" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" weight="0.32934782" />
<window_info anchor="bottom" id="CheckStyle" order="7" weight="0.32934782" />
<window_info anchor="bottom" id="Terminal" order="8" />
<window_info anchor="bottom" id="Event Log" order="9" side_tool="true" />
<window_info anchor="bottom" id="Version Control" order="10" show_stripe_button="false" />
<window_info anchor="bottom" id="Messages" order="11" weight="0.32873806" />
<window_info anchor="bottom" id="Docker" order="12" show_stripe_button="false" />
<window_info anchor="bottom" id="Database Changes" order="13" />
<window_info anchor="right" id="Commander" order="0" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
<window_info anchor="right" id="Palette" order="3" />
<window_info anchor="right" id="Capture Analysis" order="4" />
<window_info anchor="right" id="Theme Preview" order="5" />
<window_info anchor="right" id="Database" order="6" />
<window_info anchor="right" id="Palette&#9;" order="7" />
<window_info anchor="right" id="Maven Projects" order="8" />
<window_info anchor="right" id="Coverage" order="9" side_tool="true" weight="0.3296875" />
<window_info anchor="right" id="Maven" order="10" />
</layout>
<layout-to-restore>
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.123958334" />
<window_info id="Structure" order="1" weight="0.25" />
<window_info id="Capture Tool" order="2" />
<window_info id="Designer" order="3" />
<window_info id="UI Designer" order="4" />
<window_info id="Image Layers" order="5" />
<window_info id="Favorites" order="6" side_tool="true" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" />
<window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.33085898" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.39554614" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
<window_info anchor="bottom" id="Messages" order="8" weight="0.32873806" />
<window_info anchor="bottom" id="Version Control" order="9" show_stripe_button="false" />
<window_info anchor="bottom" id="CheckStyle" order="10" />
<window_info anchor="bottom" id="Terminal" order="11" />
<window_info anchor="right" id="Coverage" order="0" side_tool="true" weight="0.3296875" />
<window_info anchor="right" id="Commander" order="1" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="2" weight="0.25" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="3" weight="0.25" />
<window_info anchor="right" id="Palette" order="4" />
<window_info anchor="right" id="Maven Projects" order="5" />
<window_info anchor="right" id="Database" order="6" />
<window_info anchor="right" id="Palette&#9;" order="7" />
<window_info anchor="right" id="Capture Analysis" order="8" />
<window_info anchor="right" id="Theme Preview" order="9" />
</layout-to-restore>
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
<component name="editorHistoryManager">
<entry file="file://$USER_HOME$/AppData/Local/Temp/Temp1_FileIO.zip/BoardGame.java" />
<entry file="file://$USER_HOME$/AppData/Local/Temp/Temp1_FileIO.zip/ObjectIODriver.java" />
<entry file="file://$PROJECT_DIR$/../Lab 5/src/barnestr/Lab5.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="357">
<caret line="33" column="28" selection-start-line="30" selection-start-column="8" selection-end-line="33" selection-end-column="28" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/barnestr/Triangle.java">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="jar://C:/Program Files/Java/jdk1.8.0_144/javafx-src.zip!/javafx/beans/binding/NumberExpressionBase.java" />
<entry file="jar://C:/Program Files/Java/jdk1.8.0_144/javafx-src.zip!/javafx/beans/binding/DoubleExpression.java" />
<entry file="jar://C:/Program Files/Java/jdk1.8.0_144/javafx-src.zip!/javafx/beans/property/ReadOnlyDoubleProperty.java" />
<entry file="jar://C:/Program Files/Java/jdk1.8.0_144/javafx-src.zip!/javafx/beans/property/DoubleProperty.java" />
<entry file="jar://C:/Program Files/Java/jdk1.8.0_144/javafx-src.zip!/javafx/beans/property/DoublePropertyBase.java" />
<entry file="jar://C:/Program Files/Java/jdk1.8.0_144/javafx-src.zip!/javafx/beans/property/SimpleDoubleProperty.java" />
<entry file="jar://C:/Program Files/Java/jdk1.8.0_144/javafx-src.zip!/javafx/beans/property/ReadOnlyDoubleWrapper.java" />
<entry file="jar://C:/Program Files/Java/jdk1.8.0_144/src.zip!/java/util/Scanner.java" />
<entry file="jar://C:/Program Files/Java/jdk1.8.0_144/javafx-src.zip!/javafx/stage/Stage.java" />
<entry file="jar://C:/Program Files/Java/jdk1.8.0_144/javafx-src.zip!/javafx/stage/Window.java" />
<entry file="file://$PROJECT_DIR$/Lab 7.iml">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="jar://C:/Program Files/Java/jdk1.8.0_144/javafx-src.zip!/javafx/scene/paint/Paint.java" />
<entry file="jar://C:/Program Files/Java/jdk1.8.0_144/javafx-src.zip!/javafx/scene/canvas/GraphicsContext.java" />
<entry file="jar://C:/Program Files/Java/jdk1.8.0_144/javafx-src.zip!/javafx/scene/canvas/Canvas.java" />
<entry file="jar://C:/Program Files/Java/jdk1.8.0_144/javafx-src.zip!/javafx/scene/paint/Color.java" />
<entry file="jar://$PROJECT_DIR$/libs/WinPlotterFX.jar!/edu/msoe/winplotterfx/WinPlotterFX.class">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="765">
<caret line="59" selection-start-line="59" selection-end-line="59" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/barnestr/ShapeLoaderApp.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1564">
<caret line="109" column="46" selection-start-line="109" selection-start-column="46" selection-end-line="109" selection-end-column="46" />
<folding>
<element signature="e#0#4783#0" expanded="true" />
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/barnestr/Shape.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="663">
<caret line="46" selection-start-line="46" selection-end-line="46" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/barnestr/Rectangle.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="204">
<caret line="19" column="13" selection-start-line="19" selection-start-column="13" selection-end-line="19" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/barnestr/LabeledRectangle.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="204">
<caret line="19" column="13" selection-start-line="19" selection-start-column="13" selection-end-line="19" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/barnestr/Point.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="578">
<caret line="41" selection-start-line="41" selection-end-line="41" />
<folding>
<element signature="e#0#920#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/sampleInput.txt">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="51">
<caret line="3" selection-start-line="3" selection-end-line="3" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/barnestr/Circle.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="221">
<caret line="20" column="13" selection-start-line="20" selection-start-column="13" selection-end-line="20" selection-end-column="13" />
<folding>
<element signature="e#0#1410#0" expanded="true" />
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/barnestr/LabeledTriangle.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="204">
<caret line="19" column="13" selection-start-line="19" selection-start-column="13" selection-end-line="19" selection-end-column="13" />
</state>
</provider>
</entry>
</component>
<component name="masterDetails">
<states>
<state key="ArtifactsStructureConfigurable.UI">
<settings>
<artifact-editor />
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="FacetStructureConfigurable.UI">
<settings>
<last-edited>No facets are configured</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="GlobalLibrariesConfigurable.UI">
<settings>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="JdkListConfigurable.UI">
<settings>
<last-edited>1.8</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="ModuleStructureConfigurable.UI">
<settings>
<last-edited>Lab 7</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="ProjectLibrariesConfigurable.UI">
<settings>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
</states>
</component>
</project>

12
Lab 7/Lab 7.iml Normal file
View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="libs" level="project" />
</component>
</module>

BIN
Lab 7/libs/WinPlotterFX.jar Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

9
Lab 7/sampleInput.txt Normal file
View File

@@ -0,0 +1,9 @@
Demonstration Picture
800 600
#F0F0F0
P: 35 35 #000000
C: 40 40 #FF0000 30
T: 60 60 #00FF00 100 50
R: 160 160 #0000FF 50 150
LT: 360 360 #00FF00 100 50 Tri
LR: 460 460 #0000FF 150 100 Reck Tangle Angle Rangle

View File

@@ -0,0 +1,53 @@
/*
* SE1021
* Spring 2018
* Lab 4 - Inheritance
* Name: Trevor Barnes
* Created: 3/28/18
*/
package barnestr;
import edu.msoe.winplotterfx.WinPlotterFX;
import javafx.scene.paint.Color;
/**
* This class represents a circle extension of the Shape Class
*
* @author barnestr
* @version 2.0
*/
public class Circle extends Shape {
protected double radius;
/**
* Constructor - creates the circle with the passed in parameters
*
* @param x x-coordinate location of the circle
* @param y y-coordinate location of the circle
* @param radius radius of the circle
* @param color the JavaFX color of the outline of the circle
*/
public Circle(double x, double y, double radius, Color color) {
super(x, y, color);
this.radius = radius;
}
/**
* Draws the circle in the WinPlotterFX window
*
* @param plotter the current WinPlotterFX being used
*/
public void draw(WinPlotterFX plotter) {
final int CIRCLE_DEGREES = 360;
setPenColor(plotter);
for (int i = 0; i < CIRCLE_DEGREES; i++) {
plotter.moveTo(x + radius * Math.cos(Math.toRadians(i)),
y + radius * Math.sin(Math.toRadians(i)));
plotter.drawTo(x + radius * Math.cos(Math.toRadians(i + 1)),
y + radius * Math.sin(Math.toRadians(i + 1)));
}
}
}

View File

@@ -0,0 +1,49 @@
/*
* SE1021
* Spring 2018
* Lab 4 - Inheritance
* Name: Trevor Barnes
* Created: 3/28/18
*/
package barnestr;
import edu.msoe.winplotterfx.WinPlotterFX;
import javafx.scene.paint.Color;
/**
* This class represents a LabeledRectangle extension of the Rectangle Class
*
* @author barnestr
* @version 2.0
*/
public class LabeledRectangle extends Rectangle {
String name;
/**
* Constructor - creates the LabeledRectangle with the passed in parameters
*
* @param x x-coordinate location of the LabeledRectangle
* @param y y-coordinate location of the LabeledRectangle
* @param width the width of the LabeledRectangle
* @param height the height of the LabeledRectangle
* @param color the JavaFX color of the LabeledRectangle's outline
* @param name the label placed on the LabeledRectangle as text
*/
public LabeledRectangle(double x, double y, double width, double height, Color color,
String name) {
super(x, y, width, height, color);
this.name = name;
}
/**
* Draws the LabeledRectangle in the current WinPlotterFX window
*
* @param plotter the current WinPlotterFX being used
*/
public void draw(WinPlotterFX plotter) {
super.draw(plotter);
plotter.printAt(x + width / 2, y + height / 2, name);
}
}

View File

@@ -0,0 +1,49 @@
/*
* SE1021
* Spring 2018
* Lab 4 - Inheritance
* Name: Trevor Barnes
* Created: 3/28/18
*/
package barnestr;
import edu.msoe.winplotterfx.WinPlotterFX;
import javafx.scene.paint.Color;
/**
* This class represents a LabeledTriangle extension of the Triangle Class
*
* @author barnestr
* @version 2.0
*/
public class LabeledTriangle extends Triangle {
String name;
/**
* Constructor - creates the LabeledTriangle with the passed in parameters
*
* @param x x-coordinate location of the LabeledTriangle
* @param y y-coordinate location of the LabeledTriangle
* @param base the bottom side length of the LabeledTriangle
* @param height the height of the LabeledTriangle
* @param color the JavaFX color of the LabeledTriangle's outline
* @param name the label placed on the LabeledTriangle as text
*/
public LabeledTriangle(double x, double y, double base, double height, Color color,
String name) {
super(x, y, base, height, color);
this.name = name;
}
/**
* Draws the LabeledTriangle in the current WinPlotterFX window
*
* @param plotter the current WinPlotterFX being used
*/
public void draw(WinPlotterFX plotter) {
super.draw(plotter);
plotter.printAt(x + base / 3, y + height / 4, name);
}
}

View File

@@ -0,0 +1,43 @@
/*
* SE1021
* Spring 2018
* Lab 4 - Inheritance
* Name: Trevor Barnes
* Created: 3/28/18
*/
package barnestr;
import edu.msoe.winplotterfx.WinPlotterFX;
import javafx.scene.paint.Color;
/**
* This class represents a Point extension of the Shape Class
*
* @author barnestr
* @version 2.0
*/
public class Point extends Shape {
/**
* Constructor - creates the Point with passed in parameters
*
* @param x x-coordinate of the Point
* @param y y-coordinate of the Point
* @param color the JavaFX color of the point
*/
public Point(double x, double y, Color color) {
super(x, y, color);
}
/**
* Draws the Point in the current WinPlotterFX window
*
* @param plotter the current WinPlotterFX window being used
*/
public void draw(WinPlotterFX plotter) {
setPenColor(plotter);
plotter.drawPoint(x, y);
}
}

View File

@@ -0,0 +1,53 @@
/*
* SE1021
* Spring 2018
* Lab 4 - Inheritance
* Name: Trevor Barnes
* Created: 3/28/18
*/
package barnestr;
import edu.msoe.winplotterfx.WinPlotterFX;
import javafx.scene.paint.Color;
/**
* This class represents a Rectangle extension of the Shape Class
*
* @author barnestr
* @version 2.0
*/
public class Rectangle extends Shape {
protected double height;
protected double width;
/**
* Constructor - creates the Rectangle with the passed in parameters
*
* @param x x-coordinate location of the Rectangle
* @param y y-coordinate location of the Rectangle
* @param width the width of the Rectangle
* @param height the height of the Rectangle
* @param color the JavaFX color of the Rectangle's outline
*/
public Rectangle(double x, double y, double width, double height, Color color) {
super(x, y, color);
this.width = width;
this.height = height;
}
/**
* Draws the Rectangle in the current WinPlotterFX window
*
* @param plotter the current WinPlotterFX being used
*/
public void draw(WinPlotterFX plotter) {
setPenColor(plotter);
plotter.moveTo(x, y);
plotter.drawTo(x + width, y);
plotter.drawTo(x + width, y + height);
plotter.drawTo(x, y + height);
plotter.drawTo(x, y);
}
}

View File

@@ -0,0 +1,59 @@
/*
* SE1021
* Spring 2018
* Lab 4 - Inheritance
* Name: Trevor Barnes
* Created: 3/28/18
*/
package barnestr;
import edu.msoe.winplotterfx.WinPlotterFX;
import javafx.scene.paint.Color;
/**
* This class represents a generic graphical shape
*
* @author barnestr
* @version 2.0
*/
public abstract class Shape {
private Color color;
protected double x;
protected double y;
/**
* Constructor - initializes Shape attributes
*
* @param x x-coordinate of the shape
* @param y y-coordinate of the shape
* @param color the outlined JavaFX color of the shape
*/
public Shape(double x, double y, Color color) {
this.x = x;
this.y = y;
this.color = color;
}
/**
* Sets the pen color on the WinPlotter object to match the current outline color of the shape
*
* @param plotter the current WinPlotterFX being used
*/
public void setPenColor(WinPlotterFX plotter) {
plotter.setPenColor(color.getRed(), color.getGreen(), color.getBlue());
}
public abstract void draw(WinPlotterFX plotter);
/**
* Sets the JavaFX color of the shape
*
* @param color the JavaFX color of the shape outline
*/
public void setColor(Color color) {
this.color = color;
}
}

View File

@@ -0,0 +1,154 @@
/*
* SE1021
* Spring 2018
* Lab 7 - Shapes Revisited
* Name: Trevor Barnes
* Created: 4/25/18
*/
package barnestr;
import edu.msoe.winplotterfx.WinPlotterFX;
import javafx.application.Application;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.InputMismatchException;
import java.util.List;
import java.util.Scanner;
/**
* This class loads a WinPlotter window and draws shapes that are read from a text file into said
* winPlotterFX window
*
* @author Trevor Barnes
* @version 2.0
*/
public class ShapeLoaderApp extends Application {
private Scanner in;
private WinPlotterFX winPlotterFX;
private List<Shape> shapes;
/**
* This constructor initializes the shapes ArrayList and winPlotterFX WinPlotterFX.
*/
public ShapeLoaderApp() {
shapes = new ArrayList();
winPlotterFX = new WinPlotterFX();
}
/**
* Reads the shapes described in the given text file.
*/
private void readShapes() {
try {
in.nextLine();
while (in.hasNextLine()) {
shapes.add(parseShape(in.nextLine()));
}
} catch (InputMismatchException e) {
System.out.println("line is null");
}
}
/**
* Draws, in the winPlotterFX, the shapes read from the text file.
*/
private void drawShapes() {
for (Shape shape : shapes) {
shape.draw(winPlotterFX);
}
}
/**
* Creates a shape from the line String that was passed in.
*
* @param line of the described shape
* @return a type of Shape with the given attributes
*/
private Shape parseShape(String line) {
Scanner lineScanner = new Scanner(line);
String type = lineScanner.next();
int x = lineScanner.nextInt();
int y = lineScanner.nextInt();
String colorString = lineScanner.next();
int radius;
int width;
int height;
StringBuilder label = new StringBuilder();
switch (type) {
case "P:": {
return new Point(x, y, stringToColor(colorString));
}
case "C:": {
radius = lineScanner.nextInt();
return new Circle(x, y, radius, stringToColor(colorString));
}
case "T:": {
width = lineScanner.nextInt();
height = lineScanner.nextInt();
return new Triangle(x, y, width, height, stringToColor(colorString));
}
case "R:": {
width = lineScanner.nextInt();
height = lineScanner.nextInt();
return new Rectangle(x, y, width, height, stringToColor(colorString));
}
case "LT:": {
width = lineScanner.nextInt();
height = lineScanner.nextInt();
do {
label.append(lineScanner.next());
if (lineScanner.hasNext()) {
label.append(" ");
}
} while (lineScanner.hasNext());
return new LabeledTriangle(x, y, width, height, stringToColor(colorString), label.toString());
}
default: {
width = lineScanner.nextInt();
height = lineScanner.nextInt();
do {
label.append(lineScanner.next());
if (lineScanner.hasNext()) {
label.append(" ");
}
} while (lineScanner.hasNext());
return new LabeledRectangle(x, y, width, height, stringToColor(colorString), label.toString());
}
}
}
private Color stringToColor(String hex) throws InputMismatchException {
return Color.web(hex);
}
/**
* Starts the primary stage and winPlotterFX after defining the winPlotterFX window.
*
* @param primaryStage the base stage
* @throws IOException due to IO behavior
*/
@Override
public void start(Stage primaryStage) throws IOException {
in = new Scanner(new File("sampleInput.txt"));
//try {
winPlotterFX.setWindowTitle(in.nextLine());
winPlotterFX.setWindowSize(Double.parseDouble(in.next()), Double.parseDouble(in.next()));
in.nextLine();
Color background = stringToColor(in.next());
winPlotterFX.setBackgroundColor(background.getRed(), background.getGreen(), background.getBlue());
readShapes();
drawShapes();
winPlotterFX.showPlotter();
}
public static void main(String[] args) {
launch(args);
}
}

View File

@@ -0,0 +1,52 @@
/*
* SE1021
* Spring 2018
* Lab 4 - Inheritance
* Name: Trevor Barnes
* Created: 3/28/18
*/
package barnestr;
import edu.msoe.winplotterfx.WinPlotterFX;
import javafx.scene.paint.Color;
/**
* This class represents a Triangle extension of the Shape Class
*
* @author barnestr
* @version 2.0
*/
public class Triangle extends Shape {
protected double base;
protected double height;
/**
* Constructor - creates the Triangle with the passed in parameters
*
* @param x x-coordinate location of the Triangle
* @param y y-coordinate location of the Triangle
* @param base the bottom side length of the Triangle
* @param height the height of the Triangle
* @param color the JavaFX color of the Triangle's outline
*/
public Triangle(double x, double y, double base, double height, Color color) {
super(x, y, color);
this.base = base;
this.height = height;
}
/**
* Draws the Triangle in the current WinPlotterFX window
*
* @param plotter the current WinPlotterFX being used
*/
public void draw(WinPlotterFX plotter) {
setPenColor(plotter);
plotter.moveTo(x, y);
plotter.drawTo(x + base, y);
plotter.drawTo(x + base / 2, y + height);
plotter.drawTo(x, y);
}
}

Binary file not shown.