Modify connection between MainWindow and the NotesInputPanel.

This commit is contained in:
Holt59
2018-02-26 11:31:00 +01:00
parent cfa374c12d
commit 1a664b8a3c
8 changed files with 158 additions and 19 deletions

View File

@@ -99,6 +99,11 @@ public class BasicDrawing extends JPanel implements Drawing {
return point;
}
@Override
public Color getColor() {
return color;
}
@Override
public void moveTo(Point point) {
this.point = point;
@@ -440,7 +445,7 @@ public class BasicDrawing extends JPanel implements Drawing {
@Override
public void drawGraph(Graph graph, GraphPalette palette) {
clear();
this.clear();
initialize(graph);
for (Node node: graph.getNodes()) {
for (Arc arc: node.getSuccessors()) {