-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add matrix in ZoneLayout choices with shape configuration
Signed-off-by: Yohann Bachelier <ybachelier@neverhack.com>
- Loading branch information
1 parent
d69b126
commit 275ccd9
Showing
7 changed files
with
260 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
diagram-viewer/src/main/java/com/powsybl/diagram/viewer/sld/MatrixShapeViewController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package com.powsybl.diagram.viewer.sld; | ||
|
||
import javafx.fxml.FXML; | ||
import javafx.scene.control.Label; | ||
import javafx.scene.control.Spinner; | ||
|
||
public class MatrixShapeViewController { | ||
|
||
@FXML | ||
public Label substationName; | ||
|
||
@FXML | ||
public Label substationId; | ||
|
||
@FXML | ||
public Spinner<Integer> row; | ||
|
||
@FXML | ||
public Spinner<Integer> column; | ||
|
||
public void setSubstationNameValue(String text) { | ||
this.substationName.setText(text); | ||
} | ||
|
||
public String getSubstationNameValue() { | ||
return substationName.getText(); | ||
} | ||
|
||
public void setRowValue(Integer row) { | ||
this.row.getValueFactory().setValue(row); | ||
} | ||
|
||
public Integer getRowValue() { | ||
return row.getValue(); | ||
} | ||
|
||
public void setColumnValue(Integer column) { | ||
this.column.getValueFactory().setValue(column); | ||
} | ||
|
||
public Integer getColumnValue() { | ||
return column.getValue(); | ||
} | ||
|
||
public void setSubstationIdValue(String substationId) { | ||
this.substationId.setText(substationId); | ||
} | ||
|
||
public Label getSubstationIdValue() { | ||
return substationId; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.