public void setRealValue(String realValue) { if (!isStatic) { for (int x = 0; x < this.getSizeX(); x++) { for (int y = 0; y < this.getSizeY(); y++) { if (data[x][y].isSelected()) data[x][y].setRealValue(realValue); } } } xAxis.setRealValue(realValue); yAxis.setRealValue(realValue); }