|
@@ -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
|