Example usage for javafx.scene.layout AnchorPane setTopAnchor

List of usage examples for javafx.scene.layout AnchorPane setTopAnchor

Introduction

In this page you can find the example usage for javafx.scene.layout AnchorPane setTopAnchor.

Prototype

public static void setTopAnchor(Node child, Double value) 

Source Link

Document

Sets the top anchor for the child when contained by an anchor pane.

Usage

From source file:pl.baczkowicz.mqttspy.ui.controllers.NewPublicationController.java

private void updateVisibility() {
    if (detailedView) {
        AnchorPane.setRightAnchor(publicationTopicText, 327.0);
        AnchorPane.setRightAnchor(publicationData, 326.0);
        AnchorPane.setTopAnchor(dataLabel, 31.0);
    } else {//from  w w w  .j av  a  2  s. c  o  m
        AnchorPane.setRightAnchor(publicationTopicText, 128.0);
        AnchorPane.setRightAnchor(publicationData, 127.0);
        AnchorPane.setTopAnchor(dataLabel, 37.0);
    }

    formatMenu.setVisible(detailedView);
    publicationQosChoice.setVisible(detailedView);
    publicationQosLabel.setVisible(detailedView);
    retainedBox.setVisible(detailedView);
    retainedLabel.setVisible(detailedView);
    lengthLabel.setVisible(detailedView);

    // TODO: basic perspective
}