List of usage examples for javafx.geometry HPos CENTER
HPos CENTER
To view the source code for javafx.geometry HPos CENTER.
Click Source Link
From source file:com.offbynull.voip.ui.UiWebRegion.java
@Override protected void layoutChildren() { double w = getWidth(); double h = getHeight(); layoutInArea(webView, 0, 0, w, h, 0, HPos.CENTER, VPos.CENTER); }
From source file:de.ks.idnadrev.information.chart.ChartDataEditor.java
protected void addColumnConstraint() { dataContainer.getColumnConstraints().add(new ColumnConstraints(Control.USE_COMPUTED_SIZE, Control.USE_COMPUTED_SIZE, Control.USE_COMPUTED_SIZE, Priority.SOMETIMES, HPos.CENTER, true)); }
From source file:mesclasses.view.JourneeController.java
/** * dessine la grid vie scolaire/*ww w . ja v a 2s . c om*/ * @param eleve * @param rowIndex */ private void drawVieScolaire(Eleve eleve, int rowIndex) { EleveData eleveData = seanceSelect.getValue().getDonnees().get(eleve); drawEleveName(vieScolaireGrid, eleve, rowIndex); if (!eleve.isInClasse(currentDate.getValue())) { return; } CheckBox box = new CheckBox(); Bindings.bindBidirectional(box.selectedProperty(), eleveData.absentProperty()); vieScolaireGrid.add(box, 3, rowIndex, null); TextField retardField = new TextField(); retardField.setMaxWidth(50); Bindings.bindBidirectional(retardField.textProperty(), eleveData.retardProperty(), new IntegerOnlyConverter()); markAsInteger(retardField); vieScolaireGrid.add(retardField, 4, rowIndex, HPos.CENTER); Label cumulRetard = new Label(); retardField.textProperty().addListener((observable, oldValue, newValue) -> { writeAndMarkInRed(cumulRetard, stats.getNbRetardsUntil(eleve, currentDate.getValue()), 3); }); writeAndMarkInRed(cumulRetard, stats.getNbRetardsUntil(eleve, currentDate.getValue()), 3); vieScolaireGrid.add(cumulRetard, 5, rowIndex, null); }
From source file:io.bitsquare.gui.main.overlays.Overlay.java
protected void addSeparator() { if (headLine != null) { Separator separator = new Separator(); separator.setMouseTransparent(true); separator.setOrientation(Orientation.HORIZONTAL); separator.setStyle("-fx-background: #ccc;"); GridPane.setHalignment(separator, HPos.CENTER); GridPane.setRowIndex(separator, ++rowIndex); GridPane.setColumnSpan(separator, 2); gridPane.getChildren().add(separator); }//from w w w . ja v a 2s . c o m }
From source file:io.bitsquare.gui.main.overlays.Overlay.java
protected void addBusyAnimation() { busyAnimation = new BusyAnimation(); GridPane.setHalignment(busyAnimation, HPos.CENTER); GridPane.setRowIndex(busyAnimation, ++rowIndex); GridPane.setColumnSpan(busyAnimation, 2); gridPane.getChildren().add(busyAnimation); }
From source file:org.jacp.demo.components.ContactChartViewComponent.java
protected BarChart<String, Number> createChart() { this.xAxis = new CategoryAxis(); this.yAxis = new NumberAxis(); this.yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(this.yAxis, "$", null)); this.bc = new BarChart<String, Number>(this.xAxis, this.yAxis); this.bc.setAnimated(true); this.bc.setTitle(" "); this.xAxis.getStyleClass().add("jacp-bar"); this.yAxis.getStyleClass().add("jacp-bar"); this.xAxis.setLabel("Year"); this.yAxis.setLabel("Price"); this.series1 = new XYChart.Series<String, Number>(); this.series1.setName("electronic"); this.series2 = new XYChart.Series<String, Number>(); this.series2.setName("clothes"); this.series3 = new XYChart.Series<String, Number>(); this.series3.setName("hardware"); this.series4 = new XYChart.Series<String, Number>(); this.series4.setName("books"); GridPane.setHalignment(this.bc, HPos.CENTER); GridPane.setVgrow(this.bc, Priority.ALWAYS); GridPane.setHgrow(this.bc, Priority.ALWAYS); GridPane.setMargin(this.bc, new Insets(0, 6, 0, 0)); return this.bc; }
From source file:org.mskcc.shenkers.control.alignment.AlignmentOverlay.java
private void populateGridPane() { ObservableList<Node> children = this.getChildren(); children.clear();//from w w w .ja va2 s . c om int l = nodes.size(); boolean flip = flipProperty.get(); for (int i = 0; i < l; i++) { Node n = nodes.get(i); GridPane.setHalignment(n, HPos.CENTER); GridPane.setValignment(n, VPos.CENTER); GridPane.setHgrow(n, Priority.ALWAYS); GridPane.setVgrow(n, Priority.ALWAYS); GridPane.setRowIndex(n, 0); GridPane.setColumnIndex(n, flip ? l - i - 1 : i); children.add(n); } }