first commit
This commit is contained in:
18
Lab 4/.idea/checkstyle-idea.xml
generated
Normal file
18
Lab 4/.idea/checkstyle-idea.xml
generated
Normal 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>
|
||||
BIN
Lab 4/.idea/checkstyleidea-libs/libs/WinPlotterFX.jar
generated
Normal file
BIN
Lab 4/.idea/checkstyleidea-libs/libs/WinPlotterFX.jar
generated
Normal file
Binary file not shown.
6
Lab 4/.idea/checkstyleidea-libs/readme.txt
generated
Normal file
6
Lab 4/.idea/checkstyleidea-libs/readme.txt
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
This folder contains libraries copied from the "Lab 4" 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 4/.idea/libraries/libs.xml
generated
Normal file
10
Lab 4/.idea/libraries/libs.xml
generated
Normal 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 4/.idea/misc.xml
generated
Normal file
6
Lab 4/.idea/misc.xml
generated
Normal 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 4/.idea/modules.xml
generated
Normal file
8
Lab 4/.idea/modules.xml
generated
Normal 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 4.iml" filepath="$PROJECT_DIR$/Lab 4.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
495
Lab 4/.idea/workspace.xml
generated
Normal file
495
Lab 4/.idea/workspace.xml
generated
Normal file
@@ -0,0 +1,495 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="4e52200a-c601-474f-b656-2225cfc1a0eb" 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="FileEditorManager">
|
||||
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/src/barnestr/LabeledTriangle.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="459">
|
||||
<caret line="34" column="27" selection-start-line="34" selection-start-column="27" selection-end-line="34" selection-end-column="27" />
|
||||
<folding>
|
||||
<element signature="e#0#1378#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/Point.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="493">
|
||||
<caret line="36" column="64" selection-start-line="36" selection-start-column="64" selection-end-line="36" selection-end-column="64" />
|
||||
<folding>
|
||||
<element signature="e#0#920#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/LabeledRectangle.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="459">
|
||||
<caret line="34" column="28" selection-start-line="34" selection-start-column="28" selection-end-line="34" selection-end-column="28" />
|
||||
<folding>
|
||||
<element signature="e#0#1382#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="561">
|
||||
<caret line="40" column="98" selection-start-line="40" selection-start-column="98" selection-end-line="40" selection-end-column="98" />
|
||||
<folding>
|
||||
<element signature="e#0#1322#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/Triangle.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="408">
|
||||
<caret line="31" column="45" selection-start-line="31" selection-start-column="45" selection-end-line="31" selection-end-column="45" />
|
||||
<folding>
|
||||
<element signature="e#0#1335#0" expanded="true" />
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="true">
|
||||
<entry file="file://$PROJECT_DIR$/src/barnestr/Circle.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="119">
|
||||
<caret line="7" selection-end-line="7" />
|
||||
<folding>
|
||||
<element signature="e#0#1410#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/Rectangle.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="561">
|
||||
<caret line="40" column="17" selection-start-line="40" selection-start-column="17" selection-end-line="40" selection-end-column="17" />
|
||||
<folding>
|
||||
<element signature="e#0#1373#0" expanded="true" />
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
</leaf>
|
||||
</component>
|
||||
<component name="IdeDocumentHistory">
|
||||
<option name="CHANGED_PATHS">
|
||||
<list>
|
||||
<option value="$PROJECT_DIR$/src/barnestr/ShapeCreatorApp.java" />
|
||||
<option value="$PROJECT_DIR$/src/barnestr/Point.java" />
|
||||
<option value="$PROJECT_DIR$/src/barnestr/Rectangle.java" />
|
||||
<option value="$PROJECT_DIR$/src/barnestr/Triangle.java" />
|
||||
<option value="$PROJECT_DIR$/src/barnestr/Shape.java" />
|
||||
<option value="$PROJECT_DIR$/src/barnestr/LabeledRectangle.java" />
|
||||
<option value="$PROJECT_DIR$/src/barnestr/LabeledTriangle.java" />
|
||||
<option value="$PROJECT_DIR$/src/barnestr/Circle.java" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectFrameBounds">
|
||||
<option name="x" value="355" />
|
||||
<option name="y" value="221" />
|
||||
<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="PackagesPane" />
|
||||
<pane id="Scope" />
|
||||
<pane id="ProjectPane">
|
||||
<subPane>
|
||||
<expand>
|
||||
<path>
|
||||
<item name="Lab 4" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="Lab 4" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="Lab 4" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="Lab 4" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="src" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="Lab 4" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="Lab 4" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="src" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="barnestr" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
</expand>
|
||||
<select />
|
||||
</subPane>
|
||||
</pane>
|
||||
</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$/../Lab 7" />
|
||||
<property name="project.structure.last.edited" value="Modules" />
|
||||
<property name="project.structure.proportion" value="0.15" />
|
||||
<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="MoveFile.RECENT_KEYS">
|
||||
<recent name="C:\Users\barnestr\Documents\SE 1021\Spring 2018\Lab 4\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="ShapeCreatorApp" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
|
||||
<option name="MAIN_CLASS_NAME" value="barnestr.ShapeCreatorApp" />
|
||||
<module name="Lab 4" />
|
||||
<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.ShapeCreatorApp" />
|
||||
</list>
|
||||
</recent_temporary>
|
||||
</component>
|
||||
<component name="SvnConfiguration">
|
||||
<configuration />
|
||||
</component>
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="4e52200a-c601-474f-b656-2225cfc1a0eb" name="Default" comment="" />
|
||||
<created>1522260796070</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1522260796070</updated>
|
||||
<workItem from="1522260799474" duration="1532000" />
|
||||
<workItem from="1522262340726" duration="1960000" />
|
||||
<workItem from="1524076816702" duration="140000" />
|
||||
<workItem from="1524681346728" duration="833000" />
|
||||
<workItem from="1525315872384" duration="6000" />
|
||||
<workItem from="1525315889941" duration="443000" />
|
||||
<workItem from="1555011025376" duration="45000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TimeTrackingManager">
|
||||
<option name="totallyTimeSpent" value="4959000" />
|
||||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<frame x="355" y="221" width="974" height="1047" extended-state="0" />
|
||||
<layout>
|
||||
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.2308534" />
|
||||
<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="Database Changes" />
|
||||
<window_info anchor="bottom" id="Docker" show_stripe_button="false" />
|
||||
<window_info anchor="bottom" id="Message" order="0" />
|
||||
<window_info anchor="bottom" id="Find" order="1" />
|
||||
<window_info anchor="bottom" id="Run" order="2" weight="0.33832976" />
|
||||
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
|
||||
<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="CheckStyle" order="7" />
|
||||
<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" />
|
||||
<window_info anchor="right" id="Maven" />
|
||||
<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	" order="7" />
|
||||
<window_info anchor="right" id="Maven Projects" order="8" />
|
||||
</layout>
|
||||
<layout-to-restore>
|
||||
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.26096034" />
|
||||
<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" weight="0.33297643" />
|
||||
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
|
||||
<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" />
|
||||
<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="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="Maven Projects" order="4" />
|
||||
<window_info anchor="right" id="Database" order="5" />
|
||||
<window_info anchor="right" id="Palette	" order="6" />
|
||||
<window_info anchor="right" id="Capture Analysis" order="7" />
|
||||
<window_info anchor="right" id="Theme Preview" order="8" />
|
||||
</layout-to-restore>
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
<option name="version" value="1" />
|
||||
</component>
|
||||
<component name="editorHistoryManager">
|
||||
<entry file="file://$PROJECT_DIR$/src/barnestr/ShapeCreatorApp.java" />
|
||||
<entry file="file://$PROJECT_DIR$/src/barnestr/LabeledTriangle.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="459">
|
||||
<caret line="34" column="27" selection-start-line="34" selection-start-column="27" selection-end-line="34" selection-end-column="27" />
|
||||
<folding>
|
||||
<element signature="e#0#1378#0" expanded="true" />
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/barnestr/Point.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="493">
|
||||
<caret line="36" column="64" selection-start-line="36" selection-start-column="64" selection-end-line="36" selection-end-column="64" />
|
||||
<folding>
|
||||
<element signature="e#0#920#0" expanded="true" />
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/barnestr/LabeledRectangle.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="459">
|
||||
<caret line="34" column="28" selection-start-line="34" selection-start-column="28" selection-end-line="34" selection-end-column="28" />
|
||||
<folding>
|
||||
<element signature="e#0#1382#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="561">
|
||||
<caret line="40" column="98" selection-start-line="40" selection-start-column="98" selection-end-line="40" selection-end-column="98" />
|
||||
<folding>
|
||||
<element signature="e#0#1322#0" expanded="true" />
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/barnestr/Triangle.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="408">
|
||||
<caret line="31" column="45" selection-start-line="31" selection-start-column="45" selection-end-line="31" selection-end-column="45" />
|
||||
<folding>
|
||||
<element signature="e#0#1335#0" expanded="true" />
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/barnestr/Rectangle.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="561">
|
||||
<caret line="40" column="17" selection-start-line="40" selection-start-column="17" selection-end-line="40" selection-end-column="17" />
|
||||
<folding>
|
||||
<element signature="e#0#1373#0" expanded="true" />
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/barnestr/Circle.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="119">
|
||||
<caret line="7" selection-end-line="7" />
|
||||
<folding>
|
||||
<element signature="e#0#1410#0" expanded="true" />
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
</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 4</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 4/Lab 4.iml
Normal file
12
Lab 4/Lab 4.iml
Normal 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 4/libs/WinPlotterFX.jar
Normal file
BIN
Lab 4/libs/WinPlotterFX.jar
Normal file
Binary file not shown.
BIN
Lab 4/out/production/Lab 4/barnestr.zip
Normal file
BIN
Lab 4/out/production/Lab 4/barnestr.zip
Normal file
Binary file not shown.
BIN
Lab 4/out/production/Lab 4/barnestr/Circle.class
Normal file
BIN
Lab 4/out/production/Lab 4/barnestr/Circle.class
Normal file
Binary file not shown.
BIN
Lab 4/out/production/Lab 4/barnestr/LabeledRectangle.class
Normal file
BIN
Lab 4/out/production/Lab 4/barnestr/LabeledRectangle.class
Normal file
Binary file not shown.
BIN
Lab 4/out/production/Lab 4/barnestr/LabeledTriangle.class
Normal file
BIN
Lab 4/out/production/Lab 4/barnestr/LabeledTriangle.class
Normal file
Binary file not shown.
BIN
Lab 4/out/production/Lab 4/barnestr/Point.class
Normal file
BIN
Lab 4/out/production/Lab 4/barnestr/Point.class
Normal file
Binary file not shown.
BIN
Lab 4/out/production/Lab 4/barnestr/Rectangle.class
Normal file
BIN
Lab 4/out/production/Lab 4/barnestr/Rectangle.class
Normal file
Binary file not shown.
BIN
Lab 4/out/production/Lab 4/barnestr/Shape.class
Normal file
BIN
Lab 4/out/production/Lab 4/barnestr/Shape.class
Normal file
Binary file not shown.
BIN
Lab 4/out/production/Lab 4/barnestr/Triangle.class
Normal file
BIN
Lab 4/out/production/Lab 4/barnestr/Triangle.class
Normal file
Binary file not shown.
BIN
Lab 4/src/barnestr.zip
Normal file
BIN
Lab 4/src/barnestr.zip
Normal file
Binary file not shown.
53
Lab 4/src/barnestr/Circle.java
Normal file
53
Lab 4/src/barnestr/Circle.java
Normal 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)));
|
||||
}
|
||||
}
|
||||
}
|
||||
49
Lab 4/src/barnestr/LabeledRectangle.java
Normal file
49
Lab 4/src/barnestr/LabeledRectangle.java
Normal 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);
|
||||
}
|
||||
}
|
||||
49
Lab 4/src/barnestr/LabeledTriangle.java
Normal file
49
Lab 4/src/barnestr/LabeledTriangle.java
Normal 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);
|
||||
}
|
||||
}
|
||||
43
Lab 4/src/barnestr/Point.java
Normal file
43
Lab 4/src/barnestr/Point.java
Normal 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);
|
||||
}
|
||||
}
|
||||
53
Lab 4/src/barnestr/Rectangle.java
Normal file
53
Lab 4/src/barnestr/Rectangle.java
Normal 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);
|
||||
}
|
||||
}
|
||||
59
Lab 4/src/barnestr/Shape.java
Normal file
59
Lab 4/src/barnestr/Shape.java
Normal 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;
|
||||
}
|
||||
}
|
||||
52
Lab 4/src/barnestr/Triangle.java
Normal file
52
Lab 4/src/barnestr/Triangle.java
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user