@author Simon Gwerder @version OGV 3.1, May 2015
| 14 | * |
| 15 | */ |
| 16 | public class SubSceneAdapter implements Selectable { |
| 17 | |
| 18 | public final static Color DEFAULT_COLOR = Color.LIGHTCYAN; |
| 19 | private Color color = DEFAULT_COLOR; |
| 20 | |
| 21 | private SubScene subScene; |
| 22 | private SubSceneCamera subSceneCamera; |
| 23 | private Axis axis; |
| 24 | private Floor floor; |
| 25 | private VerticalHelper verticalHelper; |
| 26 | |
| 27 | private volatile boolean selected = false; |
| 28 | private volatile boolean ySpaceVisible = true; |
| 29 | |
| 30 | private final Group root = new Group(); |
| 31 | |
| 32 | private final Xform world = new Xform(); |
| 33 | |
| 34 | public SubScene getSubScene() { |
| 35 | return this.subScene; |
| 36 | } |
| 37 | |
| 38 | public SubSceneCamera getSubSceneCamera() { |
| 39 | return this.subSceneCamera; |
| 40 | } |
| 41 | |
| 42 | public Axis getAxis() { |
| 43 | return this.axis; |
| 44 | } |
| 45 | |
| 46 | public Floor getFloor() { |
| 47 | return this.floor; |
| 48 | } |
| 49 | |
| 50 | public VerticalHelper getVerticalHelper() { |
| 51 | return this.verticalHelper; |
| 52 | } |
| 53 | |
| 54 | public Color getColor() { |
| 55 | return color; |
| 56 | } |
| 57 | |
| 58 | public void setColor(Color color) { |
| 59 | if (this.subScene != null) |
| 60 | this.subScene.setFill(color); |
| 61 | this.color = color; |
| 62 | } |
| 63 | |
| 64 | public boolean isYSpaceVisible() { |
| 65 | return ySpaceVisible; |
| 66 | } |
| 67 | |
| 68 | public void setYSpaceVisible(boolean ySpaceVisible) { |
| 69 | this.ySpaceVisible = ySpaceVisible; |
| 70 | } |
| 71 | |
| 72 | public SubSceneAdapter(double initWidth, double initHeight) { |
| 73 | // create a new subscene that resides in the root group |
nothing calls this directly
no outgoing calls
no test coverage detected