< prev index next >

modules/javafx.graphics/src/main/java/javafx/scene/Node.java

Print this page




1844 //        return inputMap;
1845 //    }
1846 //    public final void setInputMap(InputMap<?> value) { inputMapProperty().set(value); }
1847 //    public final InputMap<?> getInputMap() { return inputMapProperty().getValue(); }
1848 //    private ObjectProperty<InputMap<?>> inputMap;
1849 
1850 
1851     /**************************************************************************
1852      *                                                                        *
1853      *
1854      *                                                                        *
1855      *************************************************************************/
1856     /**
1857      * Defines how the picking computation is done for this node when
1858      * triggered by a {@code MouseEvent} or a {@code contains} function call.
1859      *
1860      * If {@code pickOnBounds} is true, then picking is computed by
1861      * intersecting with the bounds of this node, else picking is computed
1862      * by intersecting with the geometric shape of this node.
1863      *
1864      * @defaultValue false
1865      */
1866     private BooleanProperty pickOnBounds;
1867 
1868     public final void setPickOnBounds(boolean value) {
1869         pickOnBoundsProperty().set(value);
1870     }
1871 
1872     public final boolean isPickOnBounds() {
1873         return pickOnBounds == null ? false : pickOnBounds.get();
1874     }
1875 
1876     public final BooleanProperty pickOnBoundsProperty() {
1877         if (pickOnBounds == null) {
1878             pickOnBounds = new SimpleBooleanProperty(this, "pickOnBounds");
1879         }
1880         return pickOnBounds;
1881     }
1882 
1883     /**
1884      * Indicates whether or not this {@code Node} is disabled.  A {@code Node}




1844 //        return inputMap;
1845 //    }
1846 //    public final void setInputMap(InputMap<?> value) { inputMapProperty().set(value); }
1847 //    public final InputMap<?> getInputMap() { return inputMapProperty().getValue(); }
1848 //    private ObjectProperty<InputMap<?>> inputMap;
1849 
1850 
1851     /**************************************************************************
1852      *                                                                        *
1853      *
1854      *                                                                        *
1855      *************************************************************************/
1856     /**
1857      * Defines how the picking computation is done for this node when
1858      * triggered by a {@code MouseEvent} or a {@code contains} function call.
1859      *
1860      * If {@code pickOnBounds} is true, then picking is computed by
1861      * intersecting with the bounds of this node, else picking is computed
1862      * by intersecting with the geometric shape of this node.
1863      *
1864      * @defaultValue false, true for {@code Region}
1865      */
1866     private BooleanProperty pickOnBounds;
1867 
1868     public final void setPickOnBounds(boolean value) {
1869         pickOnBoundsProperty().set(value);
1870     }
1871 
1872     public final boolean isPickOnBounds() {
1873         return pickOnBounds == null ? false : pickOnBounds.get();
1874     }
1875 
1876     public final BooleanProperty pickOnBoundsProperty() {
1877         if (pickOnBounds == null) {
1878             pickOnBounds = new SimpleBooleanProperty(this, "pickOnBounds");
1879         }
1880         return pickOnBounds;
1881     }
1882 
1883     /**
1884      * Indicates whether or not this {@code Node} is disabled.  A {@code Node}


< prev index next >