Skip to content

Commit 585d342

Browse files
committed
Update DataDisplayPaintComponent delete copied inputData method change name of displayText to UpdateDisplayText
1 parent 00860bb commit 585d342

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/paintcomponents/DataDisplayPaintComponent.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ public boolean contains(int x, int y) {
5858
return toPoint.contains(x, y) || super.contains(x, y);
5959
}
6060

61-
public void inputData(String s) {
62-
this.setDisplayingText(s);
63-
}
64-
6561

6662
@Override
6763
public void select(SelectTool selectTool) {
@@ -103,7 +99,7 @@ public boolean isSelected() {
10399
* @throws NoSuchElementException
104100
* @see DataToPoint.fetchData for exception details
105101
*/
106-
public void displayText() throws NoSuchElementException, NoConnectingLineSegmentException, DataFromPointNoDataProviderException, DataFromPointProviderCannotProvideDataException{
102+
public void updateDisplayText() throws NoSuchElementException, NoConnectingLineSegmentException, DataFromPointNoDataProviderException, DataFromPointProviderCannotProvideDataException{
107103
this.setDisplayingText(toPoint.fetchData());
108104
}
109105

0 commit comments

Comments
 (0)