[fixes #1090] Rename setTabPosition

It's more of an update-function instead of a set
This commit is contained in:
Sibo Van Gool 2022-01-29 19:05:30 +01:00
parent 9025171a28
commit f06ad1ec35
2 changed files with 5 additions and 5 deletions

View File

@ -289,12 +289,12 @@ public abstract class FinSet extends ExternalComponent implements AxialPositiona
tabLength = lengthRequest;
setTabPosition();
updateTabPosition();
fireComponentChangeEvent(ComponentChangeEvent.MASS_CHANGE);
}
protected void setTabPosition(){
protected void updateTabPosition(){
this.tabPosition = this.tabOffsetMethod.getAsPosition(tabOffset, tabLength, length);
}
@ -305,7 +305,7 @@ public abstract class FinSet extends ExternalComponent implements AxialPositiona
*/
public void setTabOffset( final double offsetRequest) {
tabOffset = offsetRequest;
setTabPosition();
updateTabPosition();
fireComponentChangeEvent(ComponentChangeEvent.MASS_CHANGE);
}

View File

@ -77,7 +77,7 @@ public class TrapezoidFinSet extends FinSet {
if (length == r)
return;
length = Math.max(r, 0);
setTabPosition();
updateTabPosition();
fireComponentChangeEvent(ComponentChangeEvent.AEROMASS_CHANGE);
}