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

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

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

Node.setManaged介绍

暂无

代码示例

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

  1. arrow.setManaged(false);

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

  1. private void toggleVisibility(RowConstraints row,
  2. FilteredList<Node> children,
  3. boolean show) {
  4. if (show) {
  5. row.setMaxHeight(USE_COMPUTED_SIZE);
  6. row.setMinHeight(10);
  7. } else {
  8. row.setMaxHeight(0);
  9. row.setMinHeight(0);
  10. }
  11. children.forEach(n -> {
  12. n.setVisible(show);
  13. n.setManaged(show);
  14. });
  15. }

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

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

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls

  1. private void initResizeCornerRightBottom() {
  2. this.resizeCornerRightBottom = createResizeCornerRightBottom();
  3. this.resizeCornerRightBottom.setManaged(false);
  4. getChildren().add(this.resizeCornerRightBottom);
  5. ResizeHandler h = new ResizeHandler(Location.BOTTOM, Location.RIGHT);
  6. this.resizeCornerRightBottom.setOnMousePressed(h);
  7. this.resizeCornerRightBottom.setOnMouseDragged(h);
  8. this.resizeCornerRightBottom.setOnMouseReleased(h);
  9. }

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls

  1. private void initResizeCornerRightTop() {
  2. this.resizeCornerRightTop = createResizeCornerRightTop();
  3. this.resizeCornerRightTop.setManaged(false);
  4. getChildren().add(this.resizeCornerRightTop);
  5. ResizeHandler h = new ResizeHandler(Location.TOP, Location.RIGHT);
  6. this.resizeCornerRightTop.setOnMousePressed(h);
  7. this.resizeCornerRightTop.setOnMouseDragged(h);
  8. this.resizeCornerRightTop.setOnMouseReleased(h);
  9. }

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls

  1. private void initResizeCornerLeftBottom() {
  2. this.resizeCornerLeftBottom = createResizeCornerLeftBottom();
  3. this.resizeCornerLeftBottom.setManaged(false);
  4. getChildren().add(this.resizeCornerLeftBottom);
  5. ResizeHandler h = new ResizeHandler(Location.BOTTOM, Location.LEFT);
  6. this.resizeCornerLeftBottom.setOnMousePressed(h);
  7. this.resizeCornerLeftBottom.setOnMouseDragged(h);
  8. this.resizeCornerLeftBottom.setOnMouseReleased(h);
  9. }

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls

  1. private void initResizeTop() {
  2. this.resizeTop = createTopResize();
  3. this.resizeTop.setManaged(false);
  4. getChildren().add(this.resizeTop);
  5. ResizeHandler h = new ResizeHandler(Location.TOP);
  6. this.resizeTop.setOnMousePressed(h);
  7. this.resizeTop.setOnMouseDragged(h);
  8. this.resizeTop.setOnMouseReleased(h);
  9. }

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls

  1. private void initResizeRight() {
  2. this.resizeRight = createRightResize();
  3. this.resizeRight.setManaged(false);
  4. getChildren().add(this.resizeRight);
  5. ResizeHandler h = new ResizeHandler(Location.RIGHT);
  6. this.resizeRight.setOnMousePressed(h);
  7. this.resizeRight.setOnMouseDragged(h);
  8. this.resizeRight.setOnMouseReleased(h);
  9. }

代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls

  1. private void initResizeBottom() {
  2. this.resizeBottom = createBottomResize();
  3. this.resizeBottom.setManaged(false);
  4. getChildren().add(this.resizeBottom);
  5. ResizeHandler resizeHandler = new ResizeHandler(Location.BOTTOM);
  6. this.resizeBottom.setOnMousePressed(resizeHandler);
  7. this.resizeBottom.setOnMouseDragged(resizeHandler);
  8. this.resizeBottom.setOnMouseReleased(resizeHandler);
  9. }

代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls

  1. private void initResizeLeft() {
  2. this.resizeLeft = createLeftResize();
  3. this.resizeLeft.setManaged(false);
  4. getChildren().add(this.resizeLeft);
  5. ResizeHandler h = new ResizeHandler(Location.LEFT);
  6. this.resizeLeft.setOnMousePressed(h);
  7. this.resizeLeft.setOnMouseDragged(h);
  8. this.resizeLeft.setOnMouseReleased(h);
  9. }

代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls

  1. private void initResizeRight() {
  2. this.resizeRight = createRightResize();
  3. this.resizeRight.setManaged(false);
  4. getChildren().add(this.resizeRight);
  5. ResizeHandler h = new ResizeHandler(Location.RIGHT);
  6. this.resizeRight.setOnMousePressed(h);
  7. this.resizeRight.setOnMouseDragged(h);
  8. this.resizeRight.setOnMouseReleased(h);
  9. }

代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls

  1. private void initResizeCornerRightTop() {
  2. this.resizeCornerRightTop = createResizeCornerRightTop();
  3. this.resizeCornerRightTop.setManaged(false);
  4. getChildren().add(this.resizeCornerRightTop);
  5. ResizeHandler h = new ResizeHandler(Location.TOP, Location.RIGHT);
  6. this.resizeCornerRightTop.setOnMousePressed(h);
  7. this.resizeCornerRightTop.setOnMouseDragged(h);
  8. this.resizeCornerRightTop.setOnMouseReleased(h);
  9. }

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls

  1. private void initResizeBottom() {
  2. this.resizeBottom = createBottomResize();
  3. this.resizeBottom.setManaged(false);
  4. getChildren().add(this.resizeBottom);
  5. ResizeHandler resizeHandler = new ResizeHandler(Location.BOTTOM);
  6. this.resizeBottom.setOnMousePressed(resizeHandler);
  7. this.resizeBottom.setOnMouseDragged(resizeHandler);
  8. this.resizeBottom.setOnMouseReleased(resizeHandler);
  9. }

代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls

  1. private void initResizeTop() {
  2. this.resizeTop = createTopResize();
  3. this.resizeTop.setManaged(false);
  4. getChildren().add(this.resizeTop);
  5. ResizeHandler h = new ResizeHandler(Location.TOP);
  6. this.resizeTop.setOnMousePressed(h);
  7. this.resizeTop.setOnMouseDragged(h);
  8. this.resizeTop.setOnMouseReleased(h);
  9. }

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls

  1. private void initResizeLeft() {
  2. this.resizeLeft = createLeftResize();
  3. this.resizeLeft.setManaged(false);
  4. getChildren().add(this.resizeLeft);
  5. ResizeHandler h = new ResizeHandler(Location.LEFT);
  6. this.resizeLeft.setOnMousePressed(h);
  7. this.resizeLeft.setOnMouseDragged(h);
  8. this.resizeLeft.setOnMouseReleased(h);
  9. }

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls

  1. private void initResizeCornerLeftTop() {
  2. this.resizeCornerLeftTop = createResizeCornerLeftTop();
  3. this.resizeCornerLeftTop.setManaged(false);
  4. getChildren().add(this.resizeCornerLeftTop);
  5. ResizeHandler h = new ResizeHandler(Location.TOP, Location.LEFT);
  6. this.resizeCornerLeftTop.setOnMousePressed(h);
  7. this.resizeCornerLeftTop.setOnMouseDragged(h);
  8. this.resizeCornerLeftTop.setOnMouseReleased(h);
  9. }

代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls

  1. private void initResizeCornerRightBottom() {
  2. this.resizeCornerRightBottom = createResizeCornerRightBottom();
  3. this.resizeCornerRightBottom.setManaged(false);
  4. getChildren().add(this.resizeCornerRightBottom);
  5. ResizeHandler h = new ResizeHandler(Location.BOTTOM, Location.RIGHT);
  6. this.resizeCornerRightBottom.setOnMousePressed(h);
  7. this.resizeCornerRightBottom.setOnMouseDragged(h);
  8. this.resizeCornerRightBottom.setOnMouseReleased(h);
  9. }

代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls

  1. private void initResizeCornerLeftBottom() {
  2. this.resizeCornerLeftBottom = createResizeCornerLeftBottom();
  3. this.resizeCornerLeftBottom.setManaged(false);
  4. getChildren().add(this.resizeCornerLeftBottom);
  5. ResizeHandler h = new ResizeHandler(Location.BOTTOM, Location.LEFT);
  6. this.resizeCornerLeftBottom.setOnMousePressed(h);
  7. this.resizeCornerLeftBottom.setOnMouseDragged(h);
  8. this.resizeCornerLeftBottom.setOnMouseReleased(h);
  9. }

代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls

  1. private void initResizeCornerLeftTop() {
  2. this.resizeCornerLeftTop = createResizeCornerLeftTop();
  3. this.resizeCornerLeftTop.setManaged(false);
  4. getChildren().add(this.resizeCornerLeftTop);
  5. ResizeHandler h = new ResizeHandler(Location.TOP, Location.LEFT);
  6. this.resizeCornerLeftTop.setOnMousePressed(h);
  7. this.resizeCornerLeftTop.setOnMouseDragged(h);
  8. this.resizeCornerLeftTop.setOnMouseReleased(h);
  9. }

代码示例来源:origin: com.miglayout/miglayout-javafx

  1. public Node createReplacement(Node node)
  2. {
  3. Rectangle2D b = getBounds(node);
  4. Node replNode = new ImageView(node.snapshot(new SnapshotParameters(), null));
  5. replacedNodeMap.put(node, replNode);
  6. replNode.setUserData(node);
  7. replNode.setManaged(false);
  8. replNode.setId(ANIM_REPLACE_ID);
  9. replNode.resizeRelocate(b.getMinX(), b.getMinY(), b.getWidth(), b.getHeight());
  10. return replNode;
  11. }

相关文章

Node类方法