Skip to content

Commit

Permalink
feat(connect): Adiciona lógica de conexão personalizada da torre de d…
Browse files Browse the repository at this point in the history
…estilação
  • Loading branch information
giovaneneves7 committed Oct 25, 2024
1 parent 0b56fdc commit 8c1b7d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,10 @@ public void connectEquipament(Label movedLabel, Label target){
xOrigem = (xOrigem + GapHelper.REATOR_TUBULACAO_X_GAP);
yOrigem = (yOrigem - GapHelper.REATOR_TUBULACAO_Y_GAP);

} else if(movedLabel.getEquipamento().getType() == EquipamentType.TORRE_DESTILACAO){

xOrigem = (xOrigem - GapHelper.TORRE_DE_DESTILACAO_X_GAP);

}

movedLabel.setLocation(xOrigem, yOrigem);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/br/com/ifba/ipss/helper/GapHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public class GapHelper {
public static final int TORRE_DESTILACAO_RIGHT_TOP_Y_GAP = 25;
public static final int TORRE_DESTILACAO_RIGHT_X_GAP = 1;
public static final int TORRE_DESTILACAO_TOP_X_GAP = 6;
public static final int TORRE_DE_DESTILACAO_X_GAP = 8;

public static final int TROCADOR_CALOR_BOTTOM_X_GAP = 22;
public static final int TROCADOR_CALOR_RIGHT_X_GAP = 25;
Expand Down

0 comments on commit 8c1b7d1

Please sign in to comment.