Skip to content

Commit ea0f14b

Browse files
committed
Revamped Array Visualizer - More features, more streamlined, more user-friendly!
Massive changes - see README.md
1 parent 87e3f07 commit ea0f14b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+9976
-1230
lines changed

.classpath

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
5+
<classpathentry kind="output" path="bin"/>
6+
</classpath>

.project

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>ArrayVisualizer-master</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.zeroturnaround.eclipse.rebelXmlBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
</natures>
22+
</projectDescription>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
eclipse.preferences.version=1
2+
encoding//src/array/visualizer/ArrayVisualizer.java=UTF-8
3+
encoding//src/sorts/WikiSort.java=UTF-8
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
4+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
5+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
6+
org.eclipse.jdt.core.compiler.compliance=1.8
7+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
8+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
9+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
10+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
11+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12+
org.eclipse.jdt.core.compiler.release=disabled
13+
org.eclipse.jdt.core.compiler.source=1.8

README.md

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,16 @@
11
# ArrayVisualizer
2-
Sorting Visualizer/Audiolizer
2+
Sorting Visualizer with 6 different views and 14 included sorting algorithms
33

4-
## Videos
5-
[Vertical Pyramid](https://www.youtube.com/watch?v=QOYcpGnHH0g)
4+
Outdated videos:
65

7-
[Dynamic Hoops](https://www.youtube.com/watch?v=S0RtR2Yllzk)
6+
Classic:
7+
https://www.youtube.com/watch?v=QmOtL6pPcI0
88

9-
[TriMesh](https://www.youtube.com/watch?v=Zc__8qaLfJk)
9+
Color Circle:
10+
https://www.youtube.com/watch?v=IjIViETya5k
1011

11-
[Horizontal Pyramid](https://www.youtube.com/watch?v=vmT3XUBoxiQ)
12+
Dots:
13+
https://www.youtube.com/watch?v=zcO8uxg_Spw
1214

13-
[Static Hoops](https://www.youtube.com/watch?v=jXs1y3tCKQg)
14-
15-
[Christmas Tree](https://www.youtube.com/watch?v=xY1tiHzo8mE)
16-
17-
[Variable Width TriMesh](https://www.youtube.com/watch?v=0tr6AtLu4pg)
18-
19-
[Color Circle](https://www.youtube.com/watch?v=sVYtGyPiGik)
20-
21-
# How to use
22-
23-
### Build
24-
```
25-
mkdir -p dist target
26-
javac src/array/visualizer/ArrayVisualizer.java -sourcepath src -d target/
27-
jar -cvfm dist/ArrayVisualizer.jar manifest.mf -C target/ ./
28-
```
29-
30-
### Run
31-
```
32-
java -jar dist/ArrayVisualizer.jar
33-
```
34-
=======
15+
Spiral Dots:
16+
https://www.youtube.com/watch?v=jrHLeKwMzfI

bin/SortPrompt.form

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
3+
<Form version="1.3" maxVersion="1.8" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
4+
<Properties>
5+
<Property name="defaultCloseOperation" type="int" value="3"/>
6+
</Properties>
7+
<SyntheticProperties>
8+
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
9+
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
10+
</SyntheticProperties>
11+
<AuxValues>
12+
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
13+
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
14+
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
15+
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
16+
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
17+
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
18+
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
19+
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
20+
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
21+
</AuxValues>
22+
23+
<Layout>
24+
<DimensionLayout dim="0">
25+
<Group type="103" groupAlignment="0" attributes="0">
26+
<Group type="102" alignment="0" attributes="0">
27+
<EmptySpace min="-2" pref="23" max="-2" attributes="0"/>
28+
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
29+
<EmptySpace max="32767" attributes="0"/>
30+
<Component id="jLabel2" min="-2" max="-2" attributes="0"/>
31+
<EmptySpace min="-2" pref="32" max="-2" attributes="0"/>
32+
</Group>
33+
<Group type="102" alignment="0" attributes="0">
34+
<Component id="jScrollPane1" min="-2" pref="113" max="-2" attributes="0"/>
35+
<EmptySpace max="32767" attributes="0"/>
36+
<Component id="jScrollPane2" min="-2" pref="113" max="-2" attributes="0"/>
37+
</Group>
38+
<Group type="102" alignment="1" attributes="0">
39+
<EmptySpace max="32767" attributes="0"/>
40+
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
41+
<EmptySpace min="-2" pref="82" max="-2" attributes="0"/>
42+
</Group>
43+
</Group>
44+
</DimensionLayout>
45+
<DimensionLayout dim="1">
46+
<Group type="103" groupAlignment="0" attributes="0">
47+
<Group type="102" alignment="0" attributes="0">
48+
<EmptySpace max="-2" attributes="0"/>
49+
<Group type="103" groupAlignment="3" attributes="0">
50+
<Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/>
51+
<Component id="jLabel2" alignment="3" min="-2" max="-2" attributes="0"/>
52+
</Group>
53+
<EmptySpace max="-2" attributes="0"/>
54+
<Group type="103" groupAlignment="0" max="-2" attributes="0">
55+
<Component id="jScrollPane2" pref="200" max="32767" attributes="0"/>
56+
<Component id="jScrollPane1" max="32767" attributes="0"/>
57+
</Group>
58+
<EmptySpace max="32767" attributes="0"/>
59+
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
60+
<EmptySpace min="-2" pref="0" max="-2" attributes="0"/>
61+
</Group>
62+
</Group>
63+
</DimensionLayout>
64+
</Layout>
65+
<SubComponents>
66+
<Component class="javax.swing.JLabel" name="jLabel1">
67+
<Properties>
68+
<Property name="text" type="java.lang.String" value="Comparative"/>
69+
</Properties>
70+
</Component>
71+
<Component class="javax.swing.JLabel" name="jLabel2">
72+
<Properties>
73+
<Property name="text" type="java.lang.String" value="Distributive"/>
74+
</Properties>
75+
</Component>
76+
<Container class="javax.swing.JScrollPane" name="jScrollPane1">
77+
<Properties>
78+
<Property name="horizontalScrollBarPolicy" type="int" value="31"/>
79+
</Properties>
80+
81+
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
82+
<SubComponents>
83+
<Component class="javax.swing.JList" name="jList2">
84+
<Properties>
85+
<Property name="model" type="javax.swing.ListModel" editor="org.netbeans.modules.form.editors2.ListModelEditor">
86+
<StringArray count="5">
87+
<StringItem index="0" value="Item 1"/>
88+
<StringItem index="1" value="Item 2"/>
89+
<StringItem index="2" value="Item 3"/>
90+
<StringItem index="3" value="Item 4"/>
91+
<StringItem index="4" value="Item 5"/>
92+
</StringArray>
93+
</Property>
94+
</Properties>
95+
<Events>
96+
<EventHandler event="valueChanged" listener="javax.swing.event.ListSelectionListener" parameters="javax.swing.event.ListSelectionEvent" handler="jList2ValueChanged"/>
97+
</Events>
98+
</Component>
99+
</SubComponents>
100+
</Container>
101+
<Container class="javax.swing.JScrollPane" name="jScrollPane2">
102+
<Properties>
103+
<Property name="horizontalScrollBarPolicy" type="int" value="31"/>
104+
</Properties>
105+
<Events>
106+
<EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jScrollPane2MouseClicked"/>
107+
</Events>
108+
109+
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
110+
<SubComponents>
111+
<Component class="javax.swing.JList" name="jList1">
112+
<Properties>
113+
<Property name="model" type="javax.swing.ListModel" editor="org.netbeans.modules.form.editors2.ListModelEditor">
114+
<StringArray count="5">
115+
<StringItem index="0" value="Item 1"/>
116+
<StringItem index="1" value="Item 2"/>
117+
<StringItem index="2" value="Item 3"/>
118+
<StringItem index="3" value="Item 4"/>
119+
<StringItem index="4" value="Item 5"/>
120+
</StringArray>
121+
</Property>
122+
</Properties>
123+
<Events>
124+
<EventHandler event="valueChanged" listener="javax.swing.event.ListSelectionListener" parameters="javax.swing.event.ListSelectionEvent" handler="jList1ValueChanged"/>
125+
</Events>
126+
</Component>
127+
</SubComponents>
128+
</Container>
129+
<Component class="javax.swing.JButton" name="jButton1">
130+
<Properties>
131+
<Property name="text" type="java.lang.String" value="Run All"/>
132+
</Properties>
133+
<Events>
134+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/>
135+
</Events>
136+
</Component>
137+
</SubComponents>
138+
</Form>

bin/UtilFrame.form

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
3+
<Form version="1.3" maxVersion="1.8" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
4+
<NonVisualComponents>
5+
<Component class="javax.swing.JCheckBox" name="jCheckBox1">
6+
<Properties>
7+
<Property name="text" type="java.lang.String" value="jCheckBox1"/>
8+
</Properties>
9+
</Component>
10+
</NonVisualComponents>
11+
<Properties>
12+
<Property name="defaultCloseOperation" type="int" value="0"/>
13+
</Properties>
14+
<SyntheticProperties>
15+
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
16+
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
17+
</SyntheticProperties>
18+
<AuxValues>
19+
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
20+
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
21+
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
22+
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
23+
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
24+
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
25+
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
26+
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
27+
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
28+
</AuxValues>
29+
30+
<Layout>
31+
<DimensionLayout dim="0">
32+
<Group type="103" groupAlignment="0" attributes="0">
33+
<Group type="102" alignment="0" attributes="0">
34+
<EmptySpace max="-2" attributes="0"/>
35+
<Group type="103" groupAlignment="1" max="-2" attributes="0">
36+
<Component id="jButton4" max="32767" attributes="0"/>
37+
<Group type="103" groupAlignment="0" attributes="0">
38+
<Component id="jCheckBox3" min="-2" max="-2" attributes="0"/>
39+
<Component id="jCheckBox2" min="-2" max="-2" attributes="0"/>
40+
<Group type="103" groupAlignment="1" max="-2" attributes="0">
41+
<Component id="jButton3" max="32767" attributes="0"/>
42+
<Component id="jButton2" alignment="1" max="32767" attributes="0"/>
43+
<Component id="jButton1" alignment="1" max="32767" attributes="0"/>
44+
</Group>
45+
</Group>
46+
</Group>
47+
<EmptySpace min="0" pref="10" max="32767" attributes="0"/>
48+
</Group>
49+
</Group>
50+
</DimensionLayout>
51+
<DimensionLayout dim="1">
52+
<Group type="103" groupAlignment="0" attributes="0">
53+
<Group type="102" alignment="0" attributes="0">
54+
<EmptySpace max="-2" attributes="0"/>
55+
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
56+
<EmptySpace max="-2" attributes="0"/>
57+
<Component id="jButton2" min="-2" max="-2" attributes="0"/>
58+
<EmptySpace max="-2" attributes="0"/>
59+
<Component id="jButton3" min="-2" max="-2" attributes="0"/>
60+
<EmptySpace max="-2" attributes="0"/>
61+
<Component id="jButton4" min="-2" max="-2" attributes="0"/>
62+
<EmptySpace pref="7" max="32767" attributes="0"/>
63+
<Component id="jCheckBox2" min="-2" max="-2" attributes="0"/>
64+
<EmptySpace max="-2" attributes="0"/>
65+
<Component id="jCheckBox3" min="-2" max="-2" attributes="0"/>
66+
<EmptySpace max="-2" attributes="0"/>
67+
</Group>
68+
</Group>
69+
</DimensionLayout>
70+
</Layout>
71+
<SubComponents>
72+
<Component class="javax.swing.JButton" name="jButton1">
73+
<Properties>
74+
<Property name="text" type="java.lang.String" value="Change Sort"/>
75+
</Properties>
76+
<Events>
77+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/>
78+
</Events>
79+
</Component>
80+
<Component class="javax.swing.JButton" name="jButton2">
81+
<Properties>
82+
<Property name="text" type="java.lang.String" value="Change View"/>
83+
</Properties>
84+
<Events>
85+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton2ActionPerformed"/>
86+
</Events>
87+
</Component>
88+
<Component class="javax.swing.JButton" name="jButton3">
89+
<Properties>
90+
<Property name="text" type="java.lang.String" value="Change Spd"/>
91+
</Properties>
92+
<Events>
93+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton3ActionPerformed"/>
94+
</Events>
95+
</Component>
96+
<Component class="javax.swing.JCheckBox" name="jCheckBox2">
97+
<Properties>
98+
<Property name="selected" type="boolean" value="true"/>
99+
<Property name="text" type="java.lang.String" value="Shuffle Anim"/>
100+
</Properties>
101+
<Events>
102+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jCheckBox2ActionPerformed"/>
103+
</Events>
104+
</Component>
105+
<Component class="javax.swing.JCheckBox" name="jCheckBox3">
106+
<Properties>
107+
<Property name="selected" type="boolean" value="true"/>
108+
<Property name="text" type="java.lang.String" value="Linked Dots"/>
109+
</Properties>
110+
<Events>
111+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jCheckBox3ActionPerformed"/>
112+
</Events>
113+
</Component>
114+
<Component class="javax.swing.JButton" name="jButton4">
115+
<Properties>
116+
<Property name="text" type="java.lang.String" value="Change Inst"/>
117+
</Properties>
118+
<Events>
119+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton4ActionPerformed"/>
120+
</Events>
121+
</Component>
122+
</SubComponents>
123+
</Form>

0 commit comments

Comments
 (0)