blob: 0fdf8418b43f9382e604621249c1ef1e0c95bfea (
plain)
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
|
package jcgp.gui.population;
import javafx.scene.paint.Paint;
import javafx.scene.shape.Circle;
import jcgp.backend.population.Input;
import jcgp.gui.constants.Constants;
/**
*
*
* @author Eduardo Pedroni
*
*/
public class GUIInput extends GUIConnection {
/**
* @param input
*/
public GUIInput(final Input input) {
super();
Circle outputSocket = new Circle(Constants.NODE_RADIUS, 0, Constants.SOCKET_RADIUS, Paint.valueOf("white"));
outputSocket.setId(String.valueOf(0));
outputSocket.setStroke(Paint.valueOf("black"));
getChildren().addAll(outputSocket);
}
@Override
public void mouseEnter() {
setState(GUIGeneState.HOVER);
}
@Override
public void mouseExit() {
setState(GUIGeneState.NEUTRAL);
}
@Override
public void activeHover(boolean value) {
setState(value ? GUIGeneState.EXTENDED_HOVER : GUIGeneState.NEUTRAL);
}
}
|