Переименован метод-свойство

This commit is contained in:
Никита Потапов 2023-09-26 13:41:56 +04:00
parent 1435b6b56c
commit d0913e1f47
3 changed files with 4 additions and 2 deletions

View File

@ -5,13 +5,14 @@ import java.awt.*;
public class DrawingEngines {
private EnumEnginesCount _enumEnginesCount;
public void SetEnginesCount(int enginesCount) {
public void SetEnumEnginesCount(int enginesCount) {
for (EnumEnginesCount val : EnumEnginesCount.values()) {
if (val.count == enginesCount) {
this._enumEnginesCount = val;
return;
}
}
this._enumEnginesCount = EnumEnginesCount.Two;
}
private void DrawEngine(Graphics2D g2d, Color color, int x, int y, int w, int h) {

View File

@ -27,7 +27,7 @@ public class DrawingStormtrooper {
}
public void SetEnginesCount(int enginesCount) {
_drawingEngines.SetEnginesCount(enginesCount);
_drawingEngines.SetEnumEnginesCount(enginesCount);
}
public void SetPosition(int x, int y) {

View File

@ -72,6 +72,7 @@
<horizontalTextPosition value="0"/>
<icon value="ProjectStormtrooper/img/arrowLEFT.png"/>
<text value=""/>
<verticalAlignment value="0"/>
</properties>
</component>
<component id="25771" class="javax.swing.JButton" binding="buttonRight">