-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
138 additions
and
23 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
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
39 changes: 39 additions & 0 deletions
39
...rc/main/java/de/serviceflow/frankenstein/plugin/opencv/NativeExampleConfigController.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,7 +1,46 @@ | ||
package de.serviceflow.frankenstein.plugin.opencv; | ||
|
||
import de.serviceflow.frankenstein.plugin.api.SegmentConfigController; | ||
import javafx.fxml.FXML; | ||
import javafx.scene.control.Slider; | ||
|
||
public class NativeExampleConfigController extends SegmentConfigController { | ||
|
||
@FXML | ||
Slider slColor; | ||
@FXML | ||
Slider slRange; | ||
|
||
private int farbe = 0; | ||
private int range = 20; | ||
|
||
public int getFarbe() { | ||
return farbe; | ||
} | ||
|
||
void setFarbe(int farbe) { | ||
this.farbe = farbe; | ||
} | ||
|
||
public void initialize() { | ||
slColor.setValue(farbe); | ||
slColor.valueProperty().addListener((observable, oldvalue, newvalue) -> { | ||
farbe = newvalue.intValue(); | ||
fireChange(); | ||
}); | ||
slRange.setValue(range); | ||
slRange.valueProperty().addListener((observable, oldvalue, newvalue) -> { | ||
range = newvalue.intValue(); | ||
fireChange(); | ||
}); | ||
} | ||
|
||
public void setRange(int range) { | ||
this.range = range; | ||
} | ||
|
||
public int getRange() { | ||
return range; | ||
} | ||
|
||
} |
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
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
4 changes: 3 additions & 1 deletion
4
...pencv/java/src/main/resources/de/serviceflow/frankenstein/plugin/opencv/native.properties
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 +1,3 @@ | ||
name=Native Example | ||
name=Sin City Style | ||
lCOLOR=Hue | ||
lRANGE=Range |
3 changes: 3 additions & 0 deletions
3
...cv/java/src/main/resources/de/serviceflow/frankenstein/plugin/opencv/native_de.properties
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,3 @@ | ||
name=Sin City Stil | ||
lCOLOR=Farbwinkel | ||
lRANGE=Breite |
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