private void addTabContentHolder(Tab tab) { // create new content place holder TabContentHolder tabContentHolder = new TabContentHolder(tab); tabContentHolder.setClip(new Rectangle()); tabContentHolders.add(tabContentHolder); // always add tab content holder below its header tabsContainer.getChildren().add(0, tabContentHolder); }
/** * creates empty drawers stack */ public JFXDrawersStack() { final Rectangle clip = new Rectangle(); clip.widthProperty().bind(this.widthProperty()); clip.heightProperty().bind(this.heightProperty()); this.setClip(clip); }
rectangle = new Rectangle(SQUARE_SIZE, SQUARE_SIZE); if (color == null) { rectangle.setFill(Color.WHITE);
calendarPlaceHolder.getChildren().add(contentHolder); Rectangle clip = new Rectangle(); clip.widthProperty().bind(calendarPlaceHolder.widthProperty()); clip.heightProperty().bind(calendarPlaceHolder.heightProperty());
switch (getMaskType()) { case RECT: mask = new Rectangle(bounds.getMinX() + diffMinX - snappedLeftInset(), bounds.getMinY() + diffMinY - snappedTopInset(), width - 2 * borderWidth, break; default: mask = new Rectangle(bounds.getMinX() + diffMinX - snappedLeftInset(), bounds.getMinY() + diffMinY - snappedTopInset(), width - 2 * borderWidth,
Rectangle clip = new Rectangle(); clip.widthProperty().bind(((Region) node).widthProperty()); clip.heightProperty().bind(((Region) node).heightProperty());
tabsContainerHolder = new AnchorPane(); tabsContainerHolder.getChildren().add(tabsContainer); tabsClip = new Rectangle(); tabsContainerHolder.setClip(tabsClip); getChildren().add(0, tabsContainerHolder); clip = new Rectangle(tabPane.getWidth(), tabPane.getHeight()); getSkinnable().setClip(clip); if (getSkinnable().getTabs().size() == 0) {
Rectangle clip = new Rectangle(); this.setClip(clip); clip.widthProperty().bind(this.widthProperty());
track.setFill(Color.TRANSPARENT); fillRect = new Rectangle(); fillRect.setFill(Color.TRANSPARENT); text = new Text();
clip = new Rectangle(); headersRegion = new StackPane() { @Override
clip = new Rectangle(0, gap / 2, getWidth(), getHeight() - gap); setClip(clip); } else {
Rectangle clip = new Rectangle(); clip.widthProperty().bind(calendarPlaceHolder.widthProperty()); clip.heightProperty().bind(calendarPlaceHolder.heightProperty());
public static Node warningDecoration(Color color) { Rectangle d = new Rectangle(7, 7); d.setFill(color); return d; } }
public static Node rectDecoration(Color color) { Rectangle d = new Rectangle(7, 7); d.setFill(color); return d; }
private void addTabContentHolder(Tab tab) { // create new content place holder TabContentHolder tabContentHolder = new TabContentHolder(tab); tabContentHolder.setClip(new Rectangle()); tabContentHolders.add(tabContentHolder); // always add tab content holder below its header tabsContainer.getChildren().add(0, tabContentHolder); }
private Rectangle buidlRectangle(double stroke) { Rectangle r = new Rectangle(); r.setStrokeType(StrokeType.INSIDE); r.setStrokeWidth(stroke); r.setStroke(Color.RED); r.setFill(Color.TRANSPARENT); return r; }
private Node createLegendEntry(String text, Color color) { HBox hbox = new HBox(); hbox.setAlignment(Pos.CENTER_LEFT); hbox.setSpacing(3); hbox.getChildren().add(new Rectangle(15, 15, color)); hbox.getChildren().add(new Label(text)); VBox.setMargin(hbox, new Insets(1.5, 3, 1.5, 3)); return hbox; }
public ScrollbarPane() { this.horizontal = new ScrollBar(); this.horizontal.setOrientation(Orientation.HORIZONTAL); this.vertical = new ScrollBar(); this.vertical.setOrientation(Orientation.VERTICAL); this.clip = new Rectangle(); getChildren().setAll(this.horizontal, this.vertical); }
public DragButton(@Nonnull String text) { setCursor(Cursor.W_RESIZE); rectangle = new Rectangle(); rectangle.setFill(Color.GRAY); rectangle.setArcHeight(5.0); rectangle.setArcWidth(5.0); line = new Line(); label = Components.label(text); label.setTextFill(Color.WHITE); getChildren().addAll(rectangle, line, label); }
/** * creates empty drawers stack */ public JFXDrawersStack() { final Rectangle clip = new Rectangle(); clip.widthProperty().bind(this.widthProperty()); clip.heightProperty().bind(this.heightProperty()); this.setClip(clip); }