suggestions.put("Music", new MyShape("Music", SVGGlyphLoader.getIcoMoonGlyph("icomoon.svg.music"))); final SVGGlyph icoMoonGlyph = SVGGlyphLoader.getIcoMoonGlyph("icomoon.svg.heart"); icoMoonGlyph.getStyleClass().add("heart"); suggestions.put("Heart", new MyShape("Heart", icoMoonGlyph)); suggestions.put("Film", new MyShape("Film", SVGGlyphLoader.getIcoMoonGlyph("icomoon.svg.film")));
this.glyphId = glyphId; this.name = name; getStyleClass().add(DEFAULT_STYLE_CLASS); this.fill.addListener((observable) -> setBackground(new Background( new BackgroundFill(getFill() == null ? Color.BLACK : getFill(), null, null))));
arrowButton = new SVGGlyph(); arrowButton.pseudoClassStateChanged(isLeftArrow ? left : right, true); arrowButton.getStyleClass().setAll("tab-down-button"); arrowButton.setVisible(isControlButtonShown()); StackPane.setMargin(arrowButton, new Insets(0, 0, 0, isLeftArrow ? -4 : 4));
dropIcon.setStyle( "-fx-min-width:0.4em;-fx-max-width:0.4em;-fx-min-height:0.6em;-fx-max-height:0.6em;"); dropIcon.getStyleClass().add("drop-icon");
this.glyphId = glyphId; this.name = name; getStyleClass().add(DEFAULT_STYLE_CLASS); this.fill.addListener((observable) -> setBackground(new Background( new BackgroundFill(getFill() == null ? Color.BLACK : getFill(), null, null))));
arrowButton = new SVGGlyph(); arrowButton.pseudoClassStateChanged(isLeftArrow ? left : right, true); arrowButton.getStyleClass().setAll("tab-down-button"); arrowButton.setVisible(isControlButtonShown()); StackPane.setMargin(arrowButton, new Insets(0, 0, 0, isLeftArrow ? -4 : 4));
dropIcon.setStyle( "-fx-min-width:0.4em;-fx-max-width:0.4em;-fx-min-height:0.6em;-fx-max-height:0.6em;"); dropIcon.getStyleClass().add("drop-icon");