Visualisation progress reset
This commit is contained in:
parent
213638ad16
commit
6036220c6a
27
.idea/workspace.xml
generated
27
.idea/workspace.xml
generated
@ -6,10 +6,7 @@
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="70f8ea87-9ffc-471a-8059-ebbfc323adcc" name="Changes" comment="OurApplication test">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/OurApplication/OurAlgorithm.java" beforeDir="false" afterPath="$PROJECT_DIR$/OurApplication/OurAlgorithm.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/OurApplication/OurDrawArea.java" beforeDir="false" afterPath="$PROJECT_DIR$/OurApplication/OurDrawArea.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/graph/DirectedGraph.java" beforeDir="false" afterPath="$PROJECT_DIR$/graph/DirectedGraph.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/graph/Graph.java" beforeDir="false" afterPath="$PROJECT_DIR$/graph/Graph.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/graph/MarkedVertex.java" beforeDir="false" afterPath="$PROJECT_DIR$/graph/MarkedVertex.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/graph/Vertex.java" beforeDir="false" afterPath="$PROJECT_DIR$/graph/Vertex.java" afterDir="false" />
|
||||
</list>
|
||||
@ -46,19 +43,19 @@
|
||||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent"><![CDATA[{
|
||||
"keyToString": {
|
||||
"Application.OurApplication.executor": "Run",
|
||||
"DefaultHtmlFileTemplate": "HTML File",
|
||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
||||
"git-widget-placeholder": "main",
|
||||
"kotlin-language-version-configured": "true",
|
||||
"last_opened_file_path": "C:/Users/jonas/DHBW Dateien/Semester 2/Programmieren 2/Projekt/ProjektGraph/OurApplication",
|
||||
"settings.editor.selected.configurable": "vcs.Git"
|
||||
<component name="PropertiesComponent">{
|
||||
"keyToString": {
|
||||
"Application.OurApplication.executor": "Run",
|
||||
"DefaultHtmlFileTemplate": "HTML File",
|
||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
||||
"git-widget-placeholder": "main",
|
||||
"kotlin-language-version-configured": "true",
|
||||
"last_opened_file_path": "C:/Users/jonas/DHBW Dateien/Semester 2/Programmieren 2/Projekt/ProjektGraph/OurApplication",
|
||||
"settings.editor.selected.configurable": "vcs.Git"
|
||||
}
|
||||
}]]></component>
|
||||
}</component>
|
||||
<component name="RecentsManager">
|
||||
<key name="CopyFile.RECENT_KEYS">
|
||||
<recent name="C:\Users\jonas\DHBW Dateien\Semester 2\Programmieren 2\Projekt\ProjektGraph\OurApplication" />
|
||||
|
@ -56,7 +56,7 @@ public class OurDrawArea extends DrawArea{
|
||||
private void drawGraph(DirectedGraph<VertexMarking, EdgeMarking> ourGraph, Graphics g) {
|
||||
String convertedMarking;
|
||||
|
||||
/*Vector<Vertex> vertexes = new Vector<Vertex>();
|
||||
Vector<Vertex> vertexes = new Vector<Vertex>();
|
||||
|
||||
for(MarkedVertex<VertexMarking> i : ourGraph.getAllVertexes()){
|
||||
if(i.getMarking() != null){
|
||||
@ -64,7 +64,7 @@ public class OurDrawArea extends DrawArea{
|
||||
}else{
|
||||
convertedMarking = "";
|
||||
}
|
||||
vertexes.add(new Vertex(i.getXCoordinate(), i.getYCoordinate(), convertedMarking, Color.GRAY));
|
||||
vertexes.add(new Vertex(i.getXCoordinate(), i.getYCoordinate(), convertedMarking, i.getColor()));
|
||||
}
|
||||
|
||||
Vector<Edge> edges = new Vector<Edge>();
|
||||
@ -75,9 +75,9 @@ public class OurDrawArea extends DrawArea{
|
||||
|
||||
Graph graph = new Graph(vertexes, edges, true, EdgeStyle.Direct);
|
||||
|
||||
graph.draw(g);*/
|
||||
graph.draw(g);
|
||||
|
||||
Vector<Vertex> vertexes = new Vector<Vertex>();
|
||||
/*Vector<Vertex> vertexes = new Vector<Vertex>();
|
||||
|
||||
for(MarkedVertex<VertexMarking> i : ourGraph.getAllVertexes()){
|
||||
|
||||
@ -92,7 +92,7 @@ public class OurDrawArea extends DrawArea{
|
||||
|
||||
Graph graph = new Graph(vertexes, edges, true, EdgeStyle.Direct);
|
||||
|
||||
graph.draw(g);
|
||||
graph.draw(g);*/
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ public class MarkedVertex<T extends VertexMarking> extends Vertex{
|
||||
|
||||
// GET-ER
|
||||
|
||||
/*public T getMarking() {
|
||||
public T getMarking() {
|
||||
return this.marking;
|
||||
}
|
||||
|
||||
@ -33,7 +33,7 @@ public class MarkedVertex<T extends VertexMarking> extends Vertex{
|
||||
|
||||
public void setMarking(T t) {
|
||||
this.marking = t;
|
||||
}*/
|
||||
}
|
||||
|
||||
|
||||
// Ausgabe
|
||||
|
@ -2,7 +2,7 @@ package graph;
|
||||
|
||||
import java.awt.Color;
|
||||
|
||||
public abstract class Vertex extends visualizationElements.Vertex {
|
||||
public abstract class Vertex{
|
||||
|
||||
// ATTRIBUTE
|
||||
|
||||
@ -17,12 +17,15 @@ public abstract class Vertex extends visualizationElements.Vertex {
|
||||
// KONSTRUKTOREN
|
||||
|
||||
public Vertex() {
|
||||
super(0, 0);
|
||||
|
||||
}
|
||||
|
||||
|
||||
public Vertex(int xCoordinate, int yCoordinate, String name, Color color) {
|
||||
super(xCoordinate, yCoordinate, name, color);
|
||||
this.xCoordinate = xCoordinate;
|
||||
this.yCoordinate = yCoordinate;
|
||||
this.name = name;
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user