@Override protected void layoutChildren() { super.layoutChildren(); clip.resizeRelocate(0,0,getWidth(), getHeight()); } }
@Override protected void layoutChildren() { super.layoutChildren(); clip.resizeRelocate(0,0,getWidth(), getHeight()); }
@Override protected void layoutChildren(double x, double y, double w, double h) { super.layoutChildren(x, y, w, h); double hInsets = snappedLeftInset() + snappedRightInset(); double vInsets = snappedTopInset() + snappedBottomInset(); double width = w + hInsets; double height = h + vInsets; colorBox.resizeRelocate(0, 0, width, height); pickerColorClip.resizeRelocate(0,0, width, height); }
@Override protected void layoutChildren(double x, double y, double w, double h) { track.resizeRelocate(x, y, w, h); secondaryBar.resizeRelocate(x, y, secondaryBarWidth, h); bar.resizeRelocate(x, y, getSkinnable().isIndeterminate() ? w : barWidth, h); clip.resizeRelocate(0,0, w, h); if (getSkinnable().isIndeterminate()) { createIndeterminateTimeline(); if (getSkinnable().impl_isTreeVisible()) { indeterminateTransition.play(); } // apply clip bar.setClip(clip); } else if (indeterminateTransition != null) { clearAnimation(); // remove clip bar.setClip(null); } }
child.resizeRelocate(blockX, blockY, blockWidth, blockHeight); } else { BoundingBox oldBoundingBox = oldBoxes.get(child); child.resizeRelocate(blockX, blockY, blockWidth, blockHeight); child.setOpacity(0); child.setPrefSize(blockWidth, blockHeight); child.resizeRelocate(blockX, blockY, blockWidth, blockHeight);
@Override protected void layoutChildren() { super.layoutChildren(); clip.resizeRelocate(0,0,getWidth(), getHeight()); }
@Override protected void layoutChildren() { super.layoutChildren(); clip.resizeRelocate(0,0,getWidth(), getHeight()); } }
@Override protected void layoutChildren() { //if (model == null) return; if (this.selection != null) { LineNode.this.textLayer.applyCss(); LineNode.this.textLayer.layout(); double begin = LineNode.this.textLayer.getCharLocation(this.selection.lowerEndpoint().intValue()); double end = LineNode.this.textLayer.getCharLocation(this.selection.upperEndpoint().intValue()); if (this.selection.upperEndpoint().intValue() == LineNode.this.lineHelper.getLength(LineNode.this.index) && this.continues) { end = getWidth(); } this.selectionMarker.resizeRelocate(begin, 0, end - begin, getHeight()); } } }
@Override protected void layoutChildren(double x, double y, double w, double h) { super.layoutChildren(x, y, w, h); double hInsets = snappedLeftInset() + snappedRightInset(); double vInsets = snappedTopInset() + snappedBottomInset(); double width = w + hInsets; double height = h + vInsets; colorBox.resizeRelocate(0, 0, width, height); pickerColorClip.resizeRelocate(0,0, width, height); }
@Override protected void layoutChildren(){ double contentX = getInsets().getLeft(); double contentY = getInsets().getTop(); double contentWidth = getWidth() - getHorizontalInsets(); double contentHeight = getHeight() - getVerticalInsets(); double labelWidth = Math.min( contentWidth, getFieldSet().getForm().getLabelContainerWidth( getHeight() ) ); if( isHorizontalLabelPosition() ){ if( labelHasContent() ){ this.labelContainer.resizeRelocate(contentX,contentY,labelWidth,contentHeight); double inputX = contentX + labelWidth; double inputWidth = contentWidth - labelWidth; getInputContainer().resizeRelocate(inputX,contentY,inputWidth,contentHeight); } else { getInputContainer().resizeRelocate(contentX,contentY,contentWidth,contentHeight); } } else { // vertical label position if( labelHasContent() ){ double labelPrefHeight = labelContainer.prefHeight( getWidth() ); double labelHeight = Math.min(labelPrefHeight, contentHeight); labelContainer.resizeRelocate(contentX, contentY, Math.min( labelWidth, contentWidth), labelHeight ); double restHeight = contentHeight - labelHeight; getInputContainer().resizeRelocate( contentX, contentY + labelHeight, contentWidth, restHeight ); } else { getInputContainer().resizeRelocate( contentX, contentY, contentWidth, contentHeight ); } } }
@Override protected void layoutChildren(double x, double y, double w, double h) { track.resizeRelocate(x, y, w, h); secondaryBar.resizeRelocate(x, y, secondaryBarWidth, h); bar.resizeRelocate(x, y, getSkinnable().isIndeterminate() ? w : barWidth, h); clip.resizeRelocate(0,0, w, h); if (getSkinnable().isIndeterminate()) { createIndeterminateTimeline(); if (NodeHelper.isTreeShowing(getSkinnable())) { indeterminateTransition.play(); } // apply clip bar.setClip(clip); } else if (indeterminateTransition != null) { clearAnimation(); // remove clip bar.setClip(null); } }
child.resizeRelocate(blockX, blockY, blockWidth, blockHeight); } else { BoundingBox oldBoundingBox = oldBoxes.get(child); child.resizeRelocate(blockX, blockY, blockWidth, blockHeight); child.setOpacity(0); child.setPrefSize(blockWidth, blockHeight); child.resizeRelocate(blockX, blockY, blockWidth, blockHeight);
double x1 = this.textLayoutNode.localToParent(this.selectionStartNode.getBoundsInParent().getMinX(), 0).getX() + this.selectionStartX; double x2 = this.textLayoutNode.localToParent(this.selectionEndNode.getBoundsInParent().getMinX(), 0).getX() + this.selectionEndX; this.selectionMarker.resizeRelocate(x1, 0, x2 - x1, getHeight());