Example usage for javafx.scene.layout CornerRadii CornerRadii

List of usage examples for javafx.scene.layout CornerRadii CornerRadii

Introduction

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

Prototype

public CornerRadii(@NamedArg("radius") double radius) 

Source Link

Document

Create a new CornerRadii with a single uniform radii value for all components of all corners.

Usage

From source file:gov.va.isaac.gui.ConceptNode.java

/**
 * If, for some reason, you want a concept node selection box that is completely disabled - call this method after constructing
 * the concept node.  Though one wonders, why you wouldn't just use a label in this case....
 *///from   ww w  .j a va  2  s. c o m
public void disableEdit() {
    AppContext.getService(DragRegistry.class).removeDragCapability(cb_);
    cb_.setEditable(false);
    dropDownOptions_.removeListener(listChangeListener_);
    listChangeListener_ = null;
    cb_.setItems(FXCollections.observableArrayList());
    cb_.setBackground(new Background(new BackgroundFill(Color.LIGHTGRAY, new CornerRadii(0), new Insets(0))));
}