Explorar o código

Removes old showedInformation Array

TomTroppmann %!s(int64=3) %!d(string=hai) anos
pai
achega
700a17aa1d
Modificáronse 2 ficheiros con 0 adicións e 37 borrados
  1. 0 1
      src/ui/view/AbstractCanvas.java
  2. 0 36
      src/ui/view/Canvas.java

+ 0 - 1
src/ui/view/AbstractCanvas.java

@@ -78,7 +78,6 @@ public abstract class AbstractCanvas extends JPanel {
 	String toolTipText = "";
 	List<HolonElement> dataSelected = new ArrayList<>();
 	ArrayList<AbstractCanvasObject> tempSelected = new ArrayList<>();
-	boolean[] showedInformation = new boolean[5];
 	boolean showConnectionInformation;
 	boolean dragging = false; // for dragging
 	boolean dragged = false; // if an object/objects was/were dragged

+ 0 - 36
src/ui/view/Canvas.java

@@ -90,9 +90,6 @@ public class Canvas extends AbstractCanvas implements MouseListener,
 		scalediv20 = model.getScale() / 20;
 		
 		showConnectionInformation = true;
-		showedInformation[1] = true;
-		showedInformation[3] = false;
-		showedInformation[4] = true;
 		control.setMaxCapacity(10000);
 		popmenu.add(itemCut);
 		popmenu.add(itemCopy);
@@ -1036,40 +1033,7 @@ public class Canvas extends AbstractCanvas implements MouseListener,
 		return null;
 	}
 
-	void updateLanguages() {
-		itemCut.setText("Cut");
-		itemCopy.setText("Copy");
-		itemPaste.setText("Paste");
-		itemDelete.setText("Delete");
-		itemGroup.setText("Group");
-		itemUngroup.setText("Ungroup");
-	}
 
-	/**
-	 * Set if Information should be shown.
-	 *
-	 * @param connection
-	 *            boolean for conecction
-	 * @param object
-	 *            boolean for objects
-	 * @param nodeOfnode
-	 */
-	void setShowedInformation(boolean connection, boolean object,
-			boolean border, boolean nodeOfnode) {
-		showConnectionInformation = connection;
-		showedInformation[1] = object;
-		showedInformation[3] = border;
-		showedInformation[4] = nodeOfnode;
-	}
-
-	/**
-	 * Returns if Information should be shown.
-	 *
-	 * @return Array of boolean [0] = connection, [1] = objects
-	 */
-	boolean[] getShowedInformation() {
-		return showedInformation;
-	}
 
 	/**
 	 * set toolTip