本文整理了Java中javafx.scene.Node.isManaged()
方法的一些代码示例,展示了Node.isManaged()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.isManaged()
方法的具体详情如下:
包路径:javafx.scene.Node
类名称:Node
方法名:isManaged
暂无
代码示例来源:origin: stackoverflow.com
double minX = Double.MAX_VALUE;
double maxX = Double.MIN_VALUE;
for (int i = 0; i < children.size(); i++) {
Node node = children.get(i);
if (node.isManaged()) {
final double x = node.getLayoutBounds().getMinX() + node.getLayoutX();
minX = Math.min(minX, x);
maxX = Math.max(maxX, x + node.minWidth(-1));
}
}
代码示例来源:origin: com.miglayout/miglayout-javafx
public MigPane add(int index, Node node, CC cc) {
if (node.isManaged())
wrapperToCCMap.put(new FXComponentWrapper(node), cc);
getChildren().add(index, node);
return this;
}
代码示例来源:origin: com.miglayout/miglayout-javafx
public MigPane add(Node node, CC cc) {
if (node.isManaged())
wrapperToCCMap.put(new FXComponentWrapper(node), cc);
getChildren().add(node);
return this;
}
代码示例来源:origin: stackoverflow.com
for (int i = 0; i < getChildren().size(); i++) {
Node node = getChildren().get(i);
if (node.isManaged()) {
final double y = node.getLayoutBounds().getMinY() + node.getLayoutY();
if (!firstManagedChild) {
代码示例来源:origin: com.guigarage/responsivefx
private static void updateManagedProperty(Node n, DeviceType type) {
// first time we've set this invisible => store the preset
if (!n.getProperties().containsKey(PROP_MANAGED_STATE)) {
n.getProperties().put(PROP_MANAGED_STATE, n.isManaged());
}
// don't track changes through this
n.managedProperty().removeListener(MANAGED_LISTENER);
// If it's visible we use the stored value for "managed" property
n.setManaged(n.isVisible() ? (Boolean) n.getProperties().get(PROP_MANAGED_STATE) : false);
// need to track changes through API
n.managedProperty().addListener(MANAGED_LISTENER);
}
代码示例来源:origin: eu.mihosoft.vrl.workflow/vworkflows-fx
if (n instanceof FlowNodeWindow && n.isManaged()) {
if (n instanceof FlowNodeWindow && n.isManaged()) {
FlowNodeWindow w = (FlowNodeWindow) n;
代码示例来源:origin: com.miglayout/miglayout-javafx
if (!node.isManaged())
continue;
内容来源于网络,如有侵权,请联系作者删除!