-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDummy.java
More file actions
48 lines (37 loc) · 1.02 KB
/
Dummy.java
File metadata and controls
48 lines (37 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package MMS.Project.BCodeGen.Barcode;
import MMS.Project.BCodeGen.IBarcode;
import MMS.Project.BCodeGen.Utils;
import javafx.scene.control.Label;
import javafx.scene.image.Image;
import javafx.scene.layout.AnchorPane;
import java.util.logging.Level;
/**
* Created by x19de on 24.05.2017.
*/
public class Dummy implements IBarcode {
public Dummy(){
}
/**
* runs the current barcode generator
* @return generated barcode as Image
*/
@Override
public Image runGenerator() {
Utils.log("Running generator", Level.INFO, this);
return new Image("http://docs.oracle.com/javafx/" +
"javafx/images/javafx-documentation.png");
}
/**
* gets the properties mandatory to be implemented
* @return A anchorPane that contains controls which set the properties
* (examples in EAN13 & EAN8 class)
*/
@Override
public AnchorPane mandatoryProperties() {
return new AnchorPane(new Label("Select a barcode type"));
}
@Override
public String toString(){
return "<Select barcode type>";
}
}