-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEV refs #9 : Showing levels of subParameters
- Loading branch information
Nathaël NOGUÈS
committed
Jul 13, 2016
1 parent
f07e902
commit 407d31f
Showing
10 changed files
with
224 additions
and
257 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
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
80 changes: 0 additions & 80 deletions
80
avek-gui/src/main/java/fr/axonic/avek/gui/view/parameters/ExpParameterGroup.java
This file was deleted.
Oops, something went wrong.
8 changes: 1 addition & 7 deletions
8
avek-gui/src/main/java/fr/axonic/avek/gui/view/parameters/IExpParameter.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 |
---|---|---|
@@ -1,14 +1,8 @@ | ||
package fr.axonic.avek.gui.view.parameters; | ||
|
||
import javafx.scene.control.Control; | ||
|
||
import java.util.Set; | ||
import java.util.function.Consumer; | ||
|
||
/** | ||
* Created by Nathaël N on 04/07/16. | ||
* Created by Nathaël N on 13/07/16. | ||
*/ | ||
public interface IExpParameter { | ||
Set<Control> getElements(); | ||
String getName(); | ||
} |
6 changes: 0 additions & 6 deletions
6
avek-gui/src/main/java/fr/axonic/avek/gui/view/parameters/IExpParameterContainer.java
This file was deleted.
Oops, something went wrong.
47 changes: 47 additions & 0 deletions
47
avek-gui/src/main/java/fr/axonic/avek/gui/view/parameters/LevelMark.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,47 @@ | ||
package fr.axonic.avek.gui.view.parameters; | ||
|
||
import javafx.scene.control.Label; | ||
import javafx.scene.layout.GridPane; | ||
import javafx.scene.layout.HBox; | ||
import javafx.scene.layout.Pane; | ||
import javafx.scene.layout.Priority; | ||
import javafx.scene.text.Text; | ||
|
||
/** | ||
* Created by Nathaël N on 13/07/16. | ||
*/ | ||
public class LevelMark extends HBox { | ||
private final String TRANSPARENT = "-fx-background-color: #fff0"; | ||
private final String BLUE = "-fx-background-color: #2f25"; | ||
private final String ARROW = "-fx-background-color: #2fa5"; | ||
|
||
public LevelMark(int level) { | ||
this(level, false); | ||
} | ||
public LevelMark(int level, boolean withArrow) { | ||
for(int i=0; i<level; i++) { | ||
this.getChildren().add(new OneLevelMark(TRANSPARENT)); | ||
this.getChildren().add(new OneLevelMark(BLUE)); | ||
this.getChildren().add(new OneLevelMark(TRANSPARENT)); | ||
} | ||
if(withArrow) { | ||
this.getChildren().add(new OneLevelMark(TRANSPARENT)); | ||
this.getChildren().add(new OneLevelMark(ARROW)); | ||
this.getChildren().add(new OneLevelMark(TRANSPARENT)); | ||
} | ||
|
||
GridPane.setVgrow(this, Priority.ALWAYS); | ||
} | ||
|
||
private class OneLevelMark extends Pane { | ||
OneLevelMark(String c, int s) { | ||
this.setStyle(c); | ||
this.setMinWidth(s); | ||
this.setPrefWidth(s); | ||
this.setMaxWidth(s); | ||
} | ||
OneLevelMark(String c) { | ||
this(c, 7); | ||
} | ||
} | ||
} |
81 changes: 0 additions & 81 deletions
81
avek-gui/src/main/java/fr/axonic/avek/gui/view/parameters/ParametersGridPane.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.