int column = event.getColumn();
if (event.getType() == TableModelEvent.UPDATE) {
if (column != -1 && row != -1) {
String choosedAxisValue = mainTable.getValueAt(row, column).toString();
Axis newAxis;
if (choosedAxisValue.equals("")) {
newAxis = null;
datasList.get(row).setDefaultAxis1D(newAxis);
if (display != null && datasList != null) {
notifyController();
}
return;
}
else {
newAxis = Axis.valueOf(choosedAxisValue);
}
if (display.getType().equals(Display.Type.TYPE_1D) && newAxis != null) {
if (newAxis.equals(Axis.X)) {
for (Data data : datasList) {
if (display.getDataAxis(data) != null) {
if (display.getDataAxis(data).equals(newAxis)
&& datasList.indexOf(data) != row) {
data.setDefaultAxis1D(null);