View | Details | Raw Unified | Return to bug 1504
Collapse All | Expand All

(-)a/src/newt/classes/com/jogamp/newt/javafx/NewtCanvasJFX.java (+13 lines)
Lines 142-147 public class NewtCanvasJFX extends Canvas implements NativeWindowHolder, WindowC Link Here
142
            } };
142
            } };
143
        this.widthProperty().addListener(sizeListener);
143
        this.widthProperty().addListener(sizeListener);
144
        this.heightProperty().addListener(sizeListener);
144
        this.heightProperty().addListener(sizeListener);
145
146
        final ChangeListener<Number> posListener = new ChangeListener<Number>() {
147
            @Override public void changed(final ObservableValue<? extends Number> observable, final Number oldValue, final Number newValue) {
148
                if( DEBUG ) {
149
                    System.err.println("NewtCanvasJFX.Event.Pos, "+oldValue.doubleValue()+" -> "+newValue.doubleValue()+", has "+getLayoutX()+"x"+getLayoutY());
150
                }
151
                updatePosCheck((int)getLayoutX(), (int)getLayoutY());
152
                repaintAction(isVisible());
153
            } };
154
        this.layoutXProperty().addListener(posListener);
155
        this.layoutYProperty().addListener(posListener);
156
145
        this.visibleProperty().addListener(new ChangeListener<Boolean>() {
157
        this.visibleProperty().addListener(new ChangeListener<Boolean>() {
146
            @Override public void changed(final ObservableValue<? extends Boolean> observable, final Boolean oldValue, final Boolean newValue) {
158
            @Override public void changed(final ObservableValue<? extends Boolean> observable, final Boolean oldValue, final Boolean newValue) {
147
                if( DEBUG ) {
159
                if( DEBUG ) {
Lines 150-155 public class NewtCanvasJFX extends Canvas implements NativeWindowHolder, WindowC Link Here
150
                repaintAction(newValue.booleanValue());
162
                repaintAction(newValue.booleanValue());
151
            }
163
            }
152
        });
164
        });
165
153
        this.sceneProperty().addListener(new ChangeListener<Scene>() {
166
        this.sceneProperty().addListener(new ChangeListener<Scene>() {
154
            @Override public void changed(final ObservableValue<? extends Scene> observable, final Scene oldValue, final Scene newValue) {
167
            @Override public void changed(final ObservableValue<? extends Scene> observable, final Scene oldValue, final Scene newValue) {
155
                if( DEBUG ) {
168
                if( DEBUG ) {

Return to bug 1504