javafx.scene.Node.setManaged()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(7.9k)|赞(0)|评价(0)|浏览(210)

本文整理了Java中javafx.scene.Node.setManaged()方法的一些代码示例,展示了Node.setManaged()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.setManaged()方法的具体详情如下:
包路径:javafx.scene.Node
类名称:Node
方法名:setManaged

Node.setManaged介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

arrow.setManaged(false);

代码示例来源:origin: speedment/speedment

private void toggleVisibility(RowConstraints row,
               FilteredList<Node> children,
               boolean show) {
  if (show) {
    row.setMaxHeight(USE_COMPUTED_SIZE);
    row.setMinHeight(10);
  } else {
    row.setMaxHeight(0);
    row.setMinHeight(0);
  }
  children.forEach(n -> {
    n.setVisible(show);
    n.setManaged(show);
  });
}

代码示例来源:origin: stackoverflow.com

seperator.setVisible(false); seperator.setManaged(false);
 if (url != null && imageNamePattern.matcher(url).matches()) {
  Node button = imageView.getParent().getParent();
  button.setVisible(false); button.setManaged(false);

代码示例来源: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 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);
}

代码示例来源: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 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: com.miglayout/miglayout-javafx

public Node createReplacement(Node node)
{
  Rectangle2D b = getBounds(node);
  Node replNode = new ImageView(node.snapshot(new SnapshotParameters(), null));
  replacedNodeMap.put(node, replNode);
  replNode.setUserData(node);
  replNode.setManaged(false);
  replNode.setId(ANIM_REPLACE_ID);
  replNode.resizeRelocate(b.getMinX(), b.getMinY(), b.getWidth(), b.getHeight());
  return replNode;
}

相关文章

微信公众号

最新文章

更多

Node类方法