Java Code Examples for javafx.scene.paint.Color#LIGHTGRAY
The following examples show how to use
javafx.scene.paint.Color#LIGHTGRAY .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ScatterChartPane.java From constellation with Apache License 2.0 | 6 votes |
public ScatterChartPane(final ScatterPlotPane parent) { this.scatterPlot = parent; final LinearGradient gradient = new LinearGradient(0.0, 0.0, 0.0, 0.75, true, CycleMethod.NO_CYCLE, new Stop[]{new Stop(0, Color.LIGHTGRAY), new Stop(1, Color.GRAY.darker())}); this.selection = new Rectangle(0, 0, 0, 0); selection.setFill(Color.WHITE); selection.setStroke(Color.BLACK); selection.setOpacity(0.4); selection.setMouseTransparent(true); selection.setStroke(Color.SILVER); selection.setStrokeWidth(2d); selection.setFill(gradient); selection.setSmooth(true); selection.setArcWidth(5.0); selection.setArcHeight(5.0); this.tooltip = new Tooltip(); this.currentData = Collections.synchronizedSet(new HashSet<>()); this.currentSelectedData = new HashSet<>(); this.getChildren().addAll(selection); this.setId("scatter-chart-pane"); this.setPadding(new Insets(5)); }
Example 2
Source File: Overlay1Controller.java From examples-javafx-repos1 with Apache License 2.0 | 6 votes |
private void createTopHighlightBorder() { Stop[] stops = new Stop[] { new Stop(0, Color.WHITE), new Stop(.3, Color.LIGHTGRAY), new Stop(1, Color.TRANSPARENT) }; LinearGradient lg1 = new LinearGradient(0, 0, 0, 1, true, CycleMethod.NO_CYCLE, stops); topHighlightBorder = new Border(new BorderStroke( lg1, null, null, null, BorderStrokeStyle.SOLID, BorderStrokeStyle.NONE, BorderStrokeStyle.NONE, BorderStrokeStyle.NONE, CornerRadii.EMPTY, new BorderWidths( 8.0d ), null )); }
Example 3
Source File: GanttDisplay.java From Open-Lowcode with Eclipse Public License 2.0 | 5 votes |
/** * sets the attribute name used for displaying background color of the GANNT task * * @param attributename name of the attribute * @param defaultcolor default color. If nothing specified, will be light gray */ public void SetAttributeColorMapping(String attributename, Color defaultcolor) { if (this.attributemappingforcolor != null) throw new RuntimeException("Attribute mapping can be set for only one attribute, got a request for '" + attributename + "- while '" + this.attributemappingforcolor + "' already set"); this.attributemappingforcolor = attributename; this.defaultcolorforattributemapping = defaultcolor; if (defaultcolor == null) this.defaultcolorforattributemapping = Color.LIGHTGRAY; mappingcolorforattributes = new HashMap<String, Color>(); }
Example 4
Source File: ParallelCoordinatesChart.java From charts with Apache License 2.0 | 5 votes |
public ParallelCoordinatesChart() { _axisColor = Color.BLACK; _headerColor = Color.BLACK; _unitColor = Color.BLACK; _tickLabelColor = Color.BLACK; _locale = Locale.US; _decimals = 0; _tickMarksVisible = true; _selectedColor = Color.BLUE; _unselectedColor = Color.LIGHTGRAY; _selectionRectColor = Color.BLUE; _smoothConnections = false; selectionRectCategory = ""; formatString = new StringBuilder("%.").append(_decimals).append("f").toString(); selectedItems = new HashMap<>(); selectedObjects = new LinkedHashSet<>(); selectionRect = new CtxBounds(); items = FXCollections.observableArrayList(); itemListener = e -> redraw(); objectListListener = c -> { while (c.next()) { if (c.wasAdded()) { c.getAddedSubList().forEach(addedObject -> addedObject.getProperties().values().forEach(item -> item.setOnItemEvent(itemListener))); } else if (c.wasRemoved()) { c.getRemoved().forEach(removedObject -> removedObject.getProperties().values().forEach(item -> item.removeItemEventListener(itemListener))); } } prepareData(); redraw(); }; categories = new ArrayList<>(); categoryObjectMap = new HashMap<>(); categoryObjectItemMap = new HashMap<>(); wasDragged = false; mouseHandler = e -> handleMouseEvent(e); listeners = new CopyOnWriteArrayList<>(); initGraphics(); registerListeners(); }
Example 5
Source File: LetterAvatar.java From youtube-comment-suite with MIT License | 4 votes |
LetterAvatar(char character) { this(character, Color.LIGHTGRAY); }