Fixed some Table1D label bugs

This commit is contained in:
Robin K 2021-09-30 09:50:00 +02:00
parent 3729a9ea51
commit b500baf100
5 changed files with 16 additions and 8 deletions

View File

@ -84,11 +84,6 @@ public abstract class Table implements Serializable {
BOSCH_SUBTRACT
}
protected Table() {
//Add Raw Scale
addScale(new Scale());
};
public void setTableView(TableView v) {
this.tableView = v;
}
@ -151,6 +146,9 @@ public abstract class Table implements Serializable {
// reset locked status
locked = tempLock;
calcCellRanges();
//Add Raw Scale
addScale(new Scale());
}
public abstract TableType getType();

View File

@ -45,8 +45,10 @@ public class Table1D extends Table {
@Override
public void setCurrentScale(Scale curScale) {
this.curScale = curScale;
if(tableView!=null) tableView.drawTable();
if(getAxisParent() == null && tableView!=null) {
tableView.drawTable();
}
}
@Override

View File

@ -365,8 +365,11 @@ public class Table1DView extends TableView {
}
}
@Override
public void updateTableLabel() {
this.table.getAxisParent().getTableView().updateTableLabel();
if(this.table.getAxisParent() == null) {
super.updateTableLabel();
}
}
}

View File

@ -194,6 +194,9 @@ public class Table3D extends Table {
// reset locked status
locked = tempLock;
calcCellRanges();
//Add Raw Scale
addScale(new Scale());
}
@Override

View File

@ -84,6 +84,8 @@ public class Table3DView extends TableView {
if(yAxis!=null)
yAxis.drawTable();
updateTableLabel();
}
@Override