Clase Contenido actualizada

This commit is contained in:
NataliaCancinoV 2024-03-23 20:35:23 -06:00
parent ae3a2e0140
commit 3262dda8d6
1 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,33 @@
package uvct.presentadorfx;
import javafx.collections.ObservableList;
import javafx.scene.Node;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.HBox;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
public class Contenido extends AnchorPane {
private ObservableList <Node> contenidos;
public Contenido() {
super();
this.setMaxSize(800, 500);
this.setStyle("-fx-background-color: #FFFFFF;");
this.setLayoutX(0);
this.setLayoutY(200);
contenidos = this.getChildren();
}
public void agregaElemento(NC_Texto t) {
this.contenidos.add(t);
}
public void agregaElemento(NC_CuadroTexto ct) {
this.contenidos.add(ct);
}
public void agregaElemento(NC_GraficaBarras gb) {
this.contenidos.add(gb);
}
}