本文整理了Java中javafx.scene.Node.setOnMouseReleased()
方法的一些代码示例,展示了Node.setOnMouseReleased()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.setOnMouseReleased()
方法的具体详情如下:
包路径:javafx.scene.Node
类名称:Node
方法名:setOnMouseReleased
暂无
代码示例来源:origin: stackoverflow.com
final BooleanProperty inDrag = new SimpleBooleanProperty(false);
byNode.setOnMouseReleased(mouseEvent -> {
byNode.setCursor(Cursor.HAND);
代码示例来源:origin: stackoverflow.com
node.setOnMouseReleased(new EventHandler<MouseEvent>() {
public void handle(MouseEvent e) {
dragItem = null;
代码示例来源:origin: stackoverflow.com
byNode.setOnMouseReleased(new EventHandler<MouseEvent>() {
@Override public void handle(MouseEvent mouseEvent) {
byNode.setCursor(Cursor.HAND);
代码示例来源:origin: org.refcodes/refcodes-graphical-ext-javafx
/**
* {@inheritDoc}
*/
@Override
public void dispose() {
_sprite.setOnMousePressed( null );
_sprite.setOnMouseDragged( null );
_sprite.setOnMouseReleased( null );
_sprite = null;
}
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
private void initResizeBottom() {
this.resizeBottom = createBottomResize();
this.resizeBottom.setManaged(false);
getChildren().add(this.resizeBottom);
ResizeHandler resizeHandler = new ResizeHandler(Location.BOTTOM);
this.resizeBottom.setOnMousePressed(resizeHandler);
this.resizeBottom.setOnMouseDragged(resizeHandler);
this.resizeBottom.setOnMouseReleased(resizeHandler);
}
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
private void initResizeTop() {
this.resizeTop = createTopResize();
this.resizeTop.setManaged(false);
getChildren().add(this.resizeTop);
ResizeHandler h = new ResizeHandler(Location.TOP);
this.resizeTop.setOnMousePressed(h);
this.resizeTop.setOnMouseDragged(h);
this.resizeTop.setOnMouseReleased(h);
}
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
private void initResizeCornerRightBottom() {
this.resizeCornerRightBottom = createResizeCornerRightBottom();
this.resizeCornerRightBottom.setManaged(false);
getChildren().add(this.resizeCornerRightBottom);
ResizeHandler h = new ResizeHandler(Location.BOTTOM, Location.RIGHT);
this.resizeCornerRightBottom.setOnMousePressed(h);
this.resizeCornerRightBottom.setOnMouseDragged(h);
this.resizeCornerRightBottom.setOnMouseReleased(h);
}
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
private void initResizeCornerRightTop() {
this.resizeCornerRightTop = createResizeCornerRightTop();
this.resizeCornerRightTop.setManaged(false);
getChildren().add(this.resizeCornerRightTop);
ResizeHandler h = new ResizeHandler(Location.TOP, Location.RIGHT);
this.resizeCornerRightTop.setOnMousePressed(h);
this.resizeCornerRightTop.setOnMouseDragged(h);
this.resizeCornerRightTop.setOnMouseReleased(h);
}
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
private void initResizeCornerLeftBottom() {
this.resizeCornerLeftBottom = createResizeCornerLeftBottom();
this.resizeCornerLeftBottom.setManaged(false);
getChildren().add(this.resizeCornerLeftBottom);
ResizeHandler h = new ResizeHandler(Location.BOTTOM, Location.LEFT);
this.resizeCornerLeftBottom.setOnMousePressed(h);
this.resizeCornerLeftBottom.setOnMouseDragged(h);
this.resizeCornerLeftBottom.setOnMouseReleased(h);
}
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
private void initResizeLeft() {
this.resizeLeft = createLeftResize();
this.resizeLeft.setManaged(false);
getChildren().add(this.resizeLeft);
ResizeHandler h = new ResizeHandler(Location.LEFT);
this.resizeLeft.setOnMousePressed(h);
this.resizeLeft.setOnMouseDragged(h);
this.resizeLeft.setOnMouseReleased(h);
}
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
private void initResizeCornerLeftTop() {
this.resizeCornerLeftTop = createResizeCornerLeftTop();
this.resizeCornerLeftTop.setManaged(false);
getChildren().add(this.resizeCornerLeftTop);
ResizeHandler h = new ResizeHandler(Location.TOP, Location.LEFT);
this.resizeCornerLeftTop.setOnMousePressed(h);
this.resizeCornerLeftTop.setOnMouseDragged(h);
this.resizeCornerLeftTop.setOnMouseReleased(h);
}
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
private void initResizeCornerRightBottom() {
this.resizeCornerRightBottom = createResizeCornerRightBottom();
this.resizeCornerRightBottom.setManaged(false);
getChildren().add(this.resizeCornerRightBottom);
ResizeHandler h = new ResizeHandler(Location.BOTTOM, Location.RIGHT);
this.resizeCornerRightBottom.setOnMousePressed(h);
this.resizeCornerRightBottom.setOnMouseDragged(h);
this.resizeCornerRightBottom.setOnMouseReleased(h);
}
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
private void initResizeCornerLeftBottom() {
this.resizeCornerLeftBottom = createResizeCornerLeftBottom();
this.resizeCornerLeftBottom.setManaged(false);
getChildren().add(this.resizeCornerLeftBottom);
ResizeHandler h = new ResizeHandler(Location.BOTTOM, Location.LEFT);
this.resizeCornerLeftBottom.setOnMousePressed(h);
this.resizeCornerLeftBottom.setOnMouseDragged(h);
this.resizeCornerLeftBottom.setOnMouseReleased(h);
}
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
private void initResizeCornerLeftTop() {
this.resizeCornerLeftTop = createResizeCornerLeftTop();
this.resizeCornerLeftTop.setManaged(false);
getChildren().add(this.resizeCornerLeftTop);
ResizeHandler h = new ResizeHandler(Location.TOP, Location.LEFT);
this.resizeCornerLeftTop.setOnMousePressed(h);
this.resizeCornerLeftTop.setOnMouseDragged(h);
this.resizeCornerLeftTop.setOnMouseReleased(h);
}
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
private void initResizeTop() {
this.resizeTop = createTopResize();
this.resizeTop.setManaged(false);
getChildren().add(this.resizeTop);
ResizeHandler h = new ResizeHandler(Location.TOP);
this.resizeTop.setOnMousePressed(h);
this.resizeTop.setOnMouseDragged(h);
this.resizeTop.setOnMouseReleased(h);
}
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
private void initResizeRight() {
this.resizeRight = createRightResize();
this.resizeRight.setManaged(false);
getChildren().add(this.resizeRight);
ResizeHandler h = new ResizeHandler(Location.RIGHT);
this.resizeRight.setOnMousePressed(h);
this.resizeRight.setOnMouseDragged(h);
this.resizeRight.setOnMouseReleased(h);
}
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
private void initResizeBottom() {
this.resizeBottom = createBottomResize();
this.resizeBottom.setManaged(false);
getChildren().add(this.resizeBottom);
ResizeHandler resizeHandler = new ResizeHandler(Location.BOTTOM);
this.resizeBottom.setOnMousePressed(resizeHandler);
this.resizeBottom.setOnMouseDragged(resizeHandler);
this.resizeBottom.setOnMouseReleased(resizeHandler);
}
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
private void initResizeLeft() {
this.resizeLeft = createLeftResize();
this.resizeLeft.setManaged(false);
getChildren().add(this.resizeLeft);
ResizeHandler h = new ResizeHandler(Location.LEFT);
this.resizeLeft.setOnMousePressed(h);
this.resizeLeft.setOnMouseDragged(h);
this.resizeLeft.setOnMouseReleased(h);
}
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
private void initResizeRight() {
this.resizeRight = createRightResize();
this.resizeRight.setManaged(false);
getChildren().add(this.resizeRight);
ResizeHandler h = new ResizeHandler(Location.RIGHT);
this.resizeRight.setOnMousePressed(h);
this.resizeRight.setOnMouseDragged(h);
this.resizeRight.setOnMouseReleased(h);
}
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
private void initResizeCornerRightTop() {
this.resizeCornerRightTop = createResizeCornerRightTop();
this.resizeCornerRightTop.setManaged(false);
getChildren().add(this.resizeCornerRightTop);
ResizeHandler h = new ResizeHandler(Location.TOP, Location.RIGHT);
this.resizeCornerRightTop.setOnMousePressed(h);
this.resizeCornerRightTop.setOnMouseDragged(h);
this.resizeCornerRightTop.setOnMouseReleased(h);
}
内容来源于网络,如有侵权,请联系作者删除!