|
@@ -56,7 +56,6 @@ import javax.swing.JOptionPane;
|
|
|
import javax.swing.JPanel;
|
|
|
import javax.swing.JPopupMenu;
|
|
|
import javax.swing.JScrollPane;
|
|
|
-import javax.swing.JSlider;
|
|
|
import javax.swing.JSplitPane;
|
|
|
import javax.swing.JTabbedPane;
|
|
|
import javax.swing.JTable;
|
|
@@ -81,7 +80,6 @@ import classes.AbstractCanvasObject;
|
|
|
import classes.Category;
|
|
|
import classes.Edge;
|
|
|
import classes.GroupNode;
|
|
|
-import classes.HolonBattery;
|
|
|
import classes.HolonElement;
|
|
|
import classes.HolonObject;
|
|
|
import classes.HolonSwitch;
|
|
@@ -140,8 +138,6 @@ public class GUI{
|
|
|
/** checked if supplyBars should be shown */
|
|
|
private final JCheckBoxMenuItem showSupplyBarsCheckBox = new JCheckBoxMenuItem(
|
|
|
"Show supply bars.");
|
|
|
- private final JCheckBoxMenuItem showTooltipsCheckBox = new JCheckBoxMenuItem(
|
|
|
- "Show tooltips.");
|
|
|
/** menu for the different fairness Models */
|
|
|
private final JMenu mnFairnessModel = new JMenu("Fairness Model");
|
|
|
/** press to supply minimum demand first */
|
|
@@ -154,14 +150,12 @@ public class GUI{
|
|
|
private final JMenuItem mntmNew = new JMenuItem("New");
|
|
|
private final JMenuItem mntmSave = new JMenuItem("Save");
|
|
|
private final JMenuItem mntmCanvasSize = new JMenuItem("Set View Size");
|
|
|
- private final JMenuItem mntmBackground = new JMenuItem("Background Image");
|
|
|
- private final JMenuItem mntmSplitView = new JMenuItem("Split View");
|
|
|
+ private final JMenuItem mntmBackground = new JMenuItem("Set Background Image");
|
|
|
private final JSplitPane splitPane = new JSplitPane();
|
|
|
private final JSplitPane splitPane1 = new JSplitPane();
|
|
|
// the tabbed canvas containing the different sub-net tabs of the grid (Main
|
|
|
// Grid + Nodes of Nodes)
|
|
|
-
|
|
|
- private final JLabel lblHint = new JLabel("To connect two Objects use SHIFT + Left Mouse Button");
|
|
|
+
|
|
|
private final JPanel myPanel = new JPanel(new BorderLayout());
|
|
|
private final JTabbedPane tabbedPaneInnerOriginal = new JTabbedPane(
|
|
|
JTabbedPane.TOP);
|
|
@@ -247,57 +241,41 @@ public class GUI{
|
|
|
private final JPanel panelHolonEl = new JPanel();
|
|
|
// Buttons
|
|
|
|
|
|
- private final JButton btnAdd = new JButton("New");
|
|
|
- private final JPopupMenu btnAddPopUp = new JPopupMenu("New");
|
|
|
+ private final JButton btnAdd = new JButton();
|
|
|
+ private final JPopupMenu btnAddPopUp = new JPopupMenu("Newacac");
|
|
|
private final JMenuItem mItemNew = new JMenuItem("New..");
|
|
|
private final JMenuItem mItemCategory = new JMenuItem("Category");
|
|
|
private final JMenuItem mItemObject = new JMenuItem("Object");
|
|
|
private final JMenuItem mItemSwitch = new JMenuItem("Switch");
|
|
|
- private final JMenuItem mItemBattery = new JMenuItem("Battery");
|
|
|
- private final JButton btnDel = new JButton("Delete");
|
|
|
- private final JButton btnAddHolEL = new JButton("New Element");
|
|
|
- private final JButton btnDelHolEL = new JButton("Delete Element");
|
|
|
- private final JButton resetGraphBtn = new JButton("Reset");
|
|
|
+ private final JButton btnDel = new JButton();
|
|
|
+ private final JButton btnAddHolEL = new JButton();
|
|
|
+ private final JButton btnDelHolEL = new JButton();
|
|
|
|
|
|
private final JToolBar toolBar = new JToolBar();
|
|
|
private final JToolBar toolBarHolonEl = new JToolBar();
|
|
|
private final JToolBar toolBarGraph = new JToolBar();
|
|
|
// Languages
|
|
|
- private final JMenuItem englishBtn = new JMenuItem("EN");
|
|
|
- private final JMenuItem spanishBtn = new JMenuItem("ES");
|
|
|
- private final JMenuItem germanBtn = new JMenuItem("DE");
|
|
|
- private final JMenuItem czechBtn = new JMenuItem("CZ");
|
|
|
- private final JMenuItem chineseBtn = new JMenuItem("ZH");
|
|
|
private final MyCanvas canvas;
|
|
|
private final UnitGraph unitGraph;
|
|
|
/** Textfield to show the period of an element */
|
|
|
private final JTextField unitGraphLocalPeriod = new JTextField(6);
|
|
|
- private final JSplitPane splitPane3 = new JSplitPane();
|
|
|
- private final JSlider sizeSlider = new JSlider();
|
|
|
- private final JLabel lblImageSize = new JLabel(Languages.getLanguage()[94]);
|
|
|
private final JMenuItem mntmUndo = new JMenuItem("Undo");
|
|
|
private final JMenuItem mntmRedo = new JMenuItem("Redo");
|
|
|
private final JMenuItem mntmEditEdges = new JMenuItem("Edge Properties");
|
|
|
private final JMenuItem mntmFindReplace = new JMenuItem("Find/ Replace");
|
|
|
private final JMenuItem mntmAlignAll = new JMenuItem("Align All");
|
|
|
- private final JMenuItem mntmEditShowedInformation = new JMenuItem(
|
|
|
- "Edit showed Information");
|
|
|
private final JMenuItem mntmResetCategory = new JMenuItem(
|
|
|
"Reset Categories");
|
|
|
- private final JMenu mnLanguage = new JMenu("Language");
|
|
|
private final String[] columnNamesMulti = { "Object", "Nr.", "Device",
|
|
|
"Energy", "Flexibility active", "Quantity", "Activated" };
|
|
|
private final String[] columnNamesSingle = { "Nr.", "Device", "Energy",
|
|
|
"Flexibility active", "Quantity", "Activated" };
|
|
|
private final ArrayList<PropertyTable> tables = new ArrayList<>();
|
|
|
private final UpdateController updCon;
|
|
|
- private final JSplitPane splitPane_1 = new JSplitPane();
|
|
|
- private final JLabel lblHolonBodySize = new JLabel("HolonBody SIze");
|
|
|
// for doubleclick
|
|
|
private boolean click = false;
|
|
|
private JFrame holegJFrame;
|
|
|
private JTabbedPane tabTemp; // tabbedPaneOriginal or tabbedPaneSplit
|
|
|
- private JSplitPane tempSplit;
|
|
|
private boolean initSplit = true;
|
|
|
private String catOfObjToBeEdited;
|
|
|
private GroupNodeCanvas unc;
|
|
@@ -390,7 +368,7 @@ public class GUI{
|
|
|
@Override
|
|
|
public void windowClosing(java.awt.event.WindowEvent windowEvent) {
|
|
|
if (JOptionPane.showConfirmDialog(holegJFrame,
|
|
|
- Languages.getLanguage()[88],
|
|
|
+ "Are you sure you want to exit?",
|
|
|
"HOLEG",
|
|
|
JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {
|
|
|
controller.deleteDirectory(new File(System
|
|
@@ -700,28 +678,6 @@ public class GUI{
|
|
|
mnNewMenuEdit.add(mntmUndo);
|
|
|
|
|
|
mnNewMenuEdit.add(mntmRedo);
|
|
|
-
|
|
|
- mnLanguage.add(englishBtn);
|
|
|
- englishBtn.setIcon(new ImageIcon(new ImageIcon(
|
|
|
- "res/Button_Images/FlagEN.png").getImage().getScaledInstance(
|
|
|
- 20, 20, java.awt.Image.SCALE_SMOOTH)));
|
|
|
- mnLanguage.add(spanishBtn);
|
|
|
- spanishBtn.setIcon(new ImageIcon(new ImageIcon(
|
|
|
- "res/Button_Images/FlagES.png").getImage().getScaledInstance(
|
|
|
- 20, 20, java.awt.Image.SCALE_SMOOTH)));
|
|
|
- mnLanguage.add(germanBtn);
|
|
|
- germanBtn.setIcon(new ImageIcon(new ImageIcon(
|
|
|
- "res/Button_Images/FlagDE.png").getImage().getScaledInstance(
|
|
|
- 20, 20, java.awt.Image.SCALE_SMOOTH)));
|
|
|
- // mnLanguage.add(czechBtn);
|
|
|
- // czechBtn.setIcon(new ImageIcon(new
|
|
|
- // ImageIcon("res/Button_Images/FlagCZ.png").getImage().getScaledInstance(20,
|
|
|
- // 20, java.awt.Image.SCALE_SMOOTH)));
|
|
|
- mnLanguage.add(chineseBtn);
|
|
|
- chineseBtn.setIcon(new ImageIcon(new ImageIcon(
|
|
|
- "res/Button_Images/FlagZH.png").getImage().getScaledInstance(
|
|
|
- 20, 20, java.awt.Image.SCALE_SMOOTH)));
|
|
|
-
|
|
|
mntmFindReplace.addActionListener(actionEvent -> {
|
|
|
try {
|
|
|
SearchPopUp dialog = new SearchPopUp(controller, canvas,
|
|
@@ -831,31 +787,7 @@ public class GUI{
|
|
|
popUp.setVisible(true);
|
|
|
});
|
|
|
|
|
|
- mnNewMenuView.add(splitPane3);
|
|
|
-
|
|
|
- sizeSlider.setMinimum(15);
|
|
|
- sizeSlider.setMaximum(115);
|
|
|
- sizeSlider
|
|
|
- .addChangeListener(changeEvent -> {
|
|
|
- controller.setScale(sizeSlider.getValue());
|
|
|
-
|
|
|
- JScrollPane scrollPane = getScrollPaneFromTabbedPane();
|
|
|
-
|
|
|
- if (scrollPane.getViewport().getComponent(0) instanceof GroupNodeCanvas) {
|
|
|
- scrollPane.getViewport().getComponent(0).repaint();
|
|
|
- } else {
|
|
|
- canvas.repaint();
|
|
|
- }
|
|
|
- if (!initSplit
|
|
|
- && scrollPane.getViewport().getComponent(0) instanceof GroupNodeCanvas) {
|
|
|
- scrollPane.getViewport().getComponent(0).repaint();
|
|
|
- } else {
|
|
|
- canvas.repaint();
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
mnNewMenuView.add(mntmCanvasSize);
|
|
|
- mnNewMenuView.add(mntmSplitView);
|
|
|
|
|
|
/*
|
|
|
* Adds Checkbox to turn supply bars on/off
|
|
@@ -877,35 +809,7 @@ public class GUI{
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
- mnNewMenuView.add(showTooltipsCheckBox);
|
|
|
- showTooltipsCheckBox.setSelected(true);
|
|
|
- showTooltipsCheckBox.addActionListener(arg0 -> {
|
|
|
- showHint(showTooltipsCheckBox.isSelected());
|
|
|
- });
|
|
|
initWindowMenu();
|
|
|
- // Split View
|
|
|
- mntmSplitView
|
|
|
- .addActionListener(actionEvent -> {
|
|
|
- for (int i = 0; i < tabbedPaneOriginal.getTabCount(); i++) {
|
|
|
- // add outer tabs
|
|
|
- // (inner tabs are added by tabbedPaneSplit
|
|
|
- // changelistener)
|
|
|
- tabbedPaneSplit.addTab(
|
|
|
- tabbedPaneOriginal.getTitleAt(i), null);
|
|
|
- }
|
|
|
-
|
|
|
- tempSplit = new JSplitPane();
|
|
|
- tempSplit.setBorder(null);
|
|
|
- tempSplit.setRightComponent(tabbedPaneSplit);
|
|
|
- tempSplit.setLeftComponent(tabbedPaneOriginal);
|
|
|
- tempSplit.setDividerLocation(tabbedPaneOriginal
|
|
|
- .getWidth() / 2);
|
|
|
- tempSplit.setResizeWeight(0.9);
|
|
|
- initSplit = false;
|
|
|
-
|
|
|
- contentPane.updateUI();
|
|
|
- });
|
|
|
|
|
|
|
|
|
|
|
@@ -937,13 +841,8 @@ public class GUI{
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- splitPane3.setRightComponent(sizeSlider);
|
|
|
-
|
|
|
- splitPane3.setLeftComponent(lblImageSize);
|
|
|
|
|
|
- mnNewMenuView.add(splitPane_1);
|
|
|
|
|
|
- splitPane_1.setLeftComponent(lblHolonBodySize);
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -1006,8 +905,6 @@ public class GUI{
|
|
|
contentPane.updateUI();
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
- mnNewMenuOptions.add(mnLanguage);
|
|
|
canvas.setBackground(Color.WHITE);
|
|
|
canvas.setPreferredSize(new Dimension(model.getCanvasX(), model
|
|
|
.getCanvasY()));
|
|
@@ -1170,6 +1067,10 @@ public class GUI{
|
|
|
JOptionPane.showMessageDialog(contentPane, "No object selected.\nPlease select a object first." , "Message" , JOptionPane.INFORMATION_MESSAGE);
|
|
|
}
|
|
|
});
|
|
|
+ btnAddHolEL.setIcon(new ImageIcon(ImageImport.loadImage("Images/plus.png", 16, 16)));
|
|
|
+ btnAddHolEL.setToolTipText("<html><b>Add Element</b><br>Add a new HolonElement to the HolonObject.</html>");
|
|
|
+
|
|
|
+
|
|
|
/*
|
|
|
* Delete the chosen HolonElement of the selected HolonObject,
|
|
|
* Multi-Selection for CpsObjects as well as for HolonElements possible
|
|
@@ -1210,9 +1111,11 @@ public class GUI{
|
|
|
JOptionPane.showMessageDialog(contentPane, "No object selectet.\nPlease select a object first." , "No object selectet" , JOptionPane.INFORMATION_MESSAGE);
|
|
|
}
|
|
|
triggerUpdateController(null);
|
|
|
- elementGraph.setText(Languages.getLanguage()[25]);
|
|
|
- holonEleNamesDisplayed = Languages.getLanguage()[25];
|
|
|
+ elementGraph.setText("None");
|
|
|
+ holonEleNamesDisplayed = "None";
|
|
|
}) ;
|
|
|
+ btnDelHolEL.setIcon(new ImageIcon(ImageImport.loadImage("Images/minus.png", 16, 16)));
|
|
|
+ btnDelHolEL.setToolTipText("<html><b>Remove Element</b><br>Removes the selected HolonElement from the HolonObject.</html>");
|
|
|
/*
|
|
|
* Communication between HolonElement Table and displayed Graph and
|
|
|
* Properties, as well as selection of different HolonElements
|
|
@@ -1243,8 +1146,7 @@ public class GUI{
|
|
|
if (e.isControlDown()) {
|
|
|
if (!selectedElements.contains(ele)) {
|
|
|
selectedElements.add(ele);
|
|
|
- if (!holonEleNamesDisplayed.equals(Languages
|
|
|
- .getLanguage()[25])) {
|
|
|
+ if (!holonEleNamesDisplayed.equals("None")) {
|
|
|
holonEleNamesDisplayed = holonEleNamesDisplayed
|
|
|
+ "; " + ele.getEleName() + " ";
|
|
|
} else {
|
|
@@ -1265,7 +1167,7 @@ public class GUI{
|
|
|
updateUnitGraph((GraphEditable)selectedElements.get(selectedElements.size()-1));
|
|
|
}
|
|
|
} else {
|
|
|
- elementGraph.setText(Languages.getLanguage()[25]);
|
|
|
+ elementGraph.setText("None");
|
|
|
hideScrollGraph();
|
|
|
}
|
|
|
// if any HolonElement is double-clicked --> Edit-Mode started
|
|
@@ -1277,7 +1179,7 @@ public class GUI{
|
|
|
// for single click and empty slot
|
|
|
if (e.getClickCount() == 1 && ele == null) {
|
|
|
selectedElements.clear();
|
|
|
- holonEleNamesDisplayed = Languages.getLanguage()[25];
|
|
|
+ holonEleNamesDisplayed = "None";
|
|
|
}
|
|
|
elementGraph.setText(holonEleNamesDisplayed);
|
|
|
yBTis = e.getY();
|
|
@@ -1783,10 +1685,6 @@ public class GUI{
|
|
|
if (tempCps instanceof HolonSwitch) {
|
|
|
h = new HolonSwitch(tempCps);
|
|
|
}
|
|
|
- if (tempCps instanceof HolonBattery)
|
|
|
- {
|
|
|
- h = new HolonBattery(tempCps);
|
|
|
- }
|
|
|
h.setPosition(x, y);
|
|
|
|
|
|
/**
|
|
@@ -1820,10 +1718,6 @@ public class GUI{
|
|
|
h = new HolonSwitch(tempCps);
|
|
|
}
|
|
|
|
|
|
- if (tempCps instanceof HolonBattery)
|
|
|
- {
|
|
|
- h = new HolonBattery(tempCps);
|
|
|
- }
|
|
|
h.setPosition(x, y);
|
|
|
|
|
|
/**
|
|
@@ -1975,12 +1869,9 @@ public class GUI{
|
|
|
mItemSwitch.addActionListener(actionEvent -> {
|
|
|
new CreateNewDialog(controller,Option.Switch, holegJFrame);
|
|
|
});
|
|
|
- btnAddPopUp.add(mItemBattery);
|
|
|
- mItemBattery.addActionListener(actionEvent -> {
|
|
|
- new CreateNewDialog(controller,Option.Battery, holegJFrame);
|
|
|
- });
|
|
|
btnAdd.addActionListener(actionEvent -> btnAddPopUp.show(btnAdd, -1, +20));
|
|
|
- btnAdd.setToolTipText("Add a new Category or Item to the library.");
|
|
|
+ btnAdd.setIcon(new ImageIcon(ImageImport.loadImage("Images/plus.png", 16, 16)));
|
|
|
+ btnAdd.setToolTipText("<html><b>New</b><br>Add a new Category or Item to the library.</html>");
|
|
|
toolBar.add(btnAdd);
|
|
|
/**
|
|
|
* Help Menu Action Listeners
|
|
@@ -2049,11 +1940,11 @@ public class GUI{
|
|
|
|
|
|
@Override
|
|
|
public void mouseReleased(MouseEvent e) {
|
|
|
- holonEleNamesDisplayed = Languages.getLanguage()[25];
|
|
|
+ holonEleNamesDisplayed = "None";
|
|
|
// If any empty space is clicked
|
|
|
if (temp == null || temp.getId() != model.getSelectedObjectID()) {
|
|
|
hideScrollGraph();
|
|
|
- elementGraph.setText(Languages.getLanguage()[25]);
|
|
|
+ elementGraph.setText("None");
|
|
|
}
|
|
|
temp = updCon.getActualCps();
|
|
|
// Erase old data in the PropertyTable
|
|
@@ -2139,7 +2030,10 @@ public class GUI{
|
|
|
}
|
|
|
tree.repaint();
|
|
|
});
|
|
|
+ btnDel.setIcon(new ImageIcon(ImageImport.loadImage("Images/minus.png", 16, 16)));
|
|
|
+ btnDel.setToolTipText("<html><b>Delete</b><br>Removes a Category or a Category Item.</html>");
|
|
|
toolBar.add(btnDel);
|
|
|
+
|
|
|
|
|
|
holegJFrame.getContentPane().add(splitPane);
|
|
|
|
|
@@ -2160,7 +2054,7 @@ public class GUI{
|
|
|
controller.setSelecteEdge(null);
|
|
|
controller.setCurIteration(0);
|
|
|
hideScrollGraph();
|
|
|
- elementGraph.setText(Languages.getLanguage()[25]);
|
|
|
+ elementGraph.setText("None");
|
|
|
canvas.tempCps = null;
|
|
|
canvas.repaint();
|
|
|
IdCounter.resetCounter();
|
|
@@ -2248,31 +2142,6 @@ public class GUI{
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- englishBtn.addActionListener(actionEvent -> {
|
|
|
- Languages.setLanguage(0);
|
|
|
- refreshLanguages();
|
|
|
- updCon.refreshTableProperties(model.getPropertyTable());
|
|
|
- });
|
|
|
- spanishBtn.addActionListener(actionEvent -> {
|
|
|
- Languages.setLanguage(1);
|
|
|
- refreshLanguages();
|
|
|
- updCon.refreshTableProperties(model.getPropertyTable());
|
|
|
- });
|
|
|
- germanBtn.addActionListener(actionEvent -> {
|
|
|
- Languages.setLanguage(2);
|
|
|
- refreshLanguages();
|
|
|
- updCon.refreshTableProperties(model.getPropertyTable());
|
|
|
- });
|
|
|
- czechBtn.addActionListener(actionEvent -> {
|
|
|
- Languages.setLanguage(3);
|
|
|
- refreshLanguages();
|
|
|
- updCon.refreshTableProperties(model.getPropertyTable());
|
|
|
- });
|
|
|
- chineseBtn.addActionListener(actionEvent -> {
|
|
|
- Languages.setLanguage(4);
|
|
|
- refreshLanguages();
|
|
|
- updCon.refreshTableProperties(model.getPropertyTable());
|
|
|
- });
|
|
|
|
|
|
mntmUndo.addActionListener(new ActionListener() {
|
|
|
@Override
|
|
@@ -2335,9 +2204,6 @@ public class GUI{
|
|
|
|
|
|
|
|
|
myPanel.add(canvasSP, BorderLayout.CENTER);
|
|
|
- myPanel.add(lblHint, BorderLayout.PAGE_END);
|
|
|
- lblHint.setBackground(new Color(53, 178, 76, 100));
|
|
|
- lblHint.setOpaque(true);
|
|
|
|
|
|
|
|
|
tabbedPaneInnerOriginal.addTab("Main Grid", myPanel);
|
|
@@ -2575,56 +2441,6 @@ public class GUI{
|
|
|
return holegJFrame;
|
|
|
}
|
|
|
|
|
|
- private void refreshLanguages() {
|
|
|
- String[] tempArray = Languages.getLanguage();
|
|
|
- // ToolBar
|
|
|
- mnNewMenu.setText(tempArray[0]);
|
|
|
- mntmNew.setText(tempArray[1]);
|
|
|
- mntmOpen.setText(tempArray[2]);
|
|
|
- mntmSave.setText(tempArray[3]);
|
|
|
- mnNewMenuEdit.setText(tempArray[4]);
|
|
|
- mntmUndo.setText(tempArray[5]);
|
|
|
- mntmRedo.setText(tempArray[6]);
|
|
|
- mntmFindReplace.setText(tempArray[7]);
|
|
|
- mntmEditShowedInformation.setText(tempArray[8]);
|
|
|
- mnNewMenuOptions.setText(tempArray[9]);
|
|
|
- mntmResetCategory.setText(tempArray[10]);
|
|
|
- mnNewMenuView.setText(tempArray[11]);
|
|
|
- mntmCanvasSize.setText(tempArray[12]);
|
|
|
- mnHelp.setText(tempArray[13]);
|
|
|
- mntmAboutUs.setText(tempArray[14]);
|
|
|
- mntmEditEdges.setText(tempArray[15]);
|
|
|
- mnLanguage.setText(tempArray[16]);
|
|
|
- canvas.updateLanguages();
|
|
|
-
|
|
|
- // Tables
|
|
|
- System.arraycopy(tempArray, 17, columnNamesMulti, 0,
|
|
|
- columnNamesMulti.length);
|
|
|
- model.getMultiTable().setColumnIdentifiers(columnNamesMulti);
|
|
|
- System.arraycopy(tempArray, 18, columnNamesSingle, 0,
|
|
|
- columnNamesSingle.length);
|
|
|
- model.getSingleTable().setColumnIdentifiers(columnNamesSingle);
|
|
|
- model.colNames[0] = tempArray[23];
|
|
|
- model.colNames[1] = tempArray[24];
|
|
|
- model.getPropertyTable().setColumnIdentifiers(model.colNames);
|
|
|
- // Graph
|
|
|
- elementGraph.setText(tempArray[25]);
|
|
|
- holonEleNamesDisplayed = tempArray[25];
|
|
|
- resetGraphBtn.setText(tempArray[26]);
|
|
|
- // Warning PopUps
|
|
|
- warningText = tempArray[27];
|
|
|
- saveBeforeNew = tempArray[28];
|
|
|
- eraseCategory = tempArray[29];
|
|
|
- selectObjBeforeErase = tempArray[30];
|
|
|
- // TimePanel
|
|
|
- timePanel.playBtn.setToolTipText(Languages.getLanguage()[89]);
|
|
|
- timePanel.timeResetBtn.setToolTipText(Languages.getLanguage()[90]);
|
|
|
- timePanel.timeForwardBtn.setToolTipText(Languages.getLanguage()[91]);
|
|
|
- timePanel.timeBackwardBtn.setToolTipText(Languages.getLanguage()[92]);
|
|
|
- timePanel.timeSlider.setToolTipText(Languages.getLanguage()[93]);
|
|
|
- // Image Size Slider
|
|
|
- lblImageSize.setText(Languages.getLanguage()[94]);
|
|
|
- }
|
|
|
|
|
|
/**
|
|
|
* Checks if a double click was made.
|
|
@@ -2723,7 +2539,7 @@ public class GUI{
|
|
|
@Override
|
|
|
public void mousePressed(MouseEvent e) {
|
|
|
hideScrollGraph();
|
|
|
- holonEleNamesDisplayed = Languages.getLanguage()[25];
|
|
|
+ holonEleNamesDisplayed = "None";
|
|
|
elementGraph.setText(holonEleNamesDisplayed);
|
|
|
|
|
|
chooseTabTemp();
|
|
@@ -2968,13 +2784,6 @@ public class GUI{
|
|
|
e1.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
- /**
|
|
|
- * Function to set the visibility for Hints
|
|
|
- * @param enable true = show false = hide
|
|
|
- */
|
|
|
- public void showHint(boolean enable){
|
|
|
- lblHint.setVisible(enable);
|
|
|
- }
|
|
|
|
|
|
/**
|
|
|
* closes all UpperNodeTabs, that don't have a
|