From 3262dda8d65ca4f17f4710334e9b68e36dd5c80b Mon Sep 17 00:00:00 2001 From: NataliaCancinoV Date: Sat, 23 Mar 2024 20:35:23 -0600 Subject: [PATCH] Clase Contenido actualizada --- .../java/uvct/presentadorfx/Contenido.java | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 PresentadorFX/src/main/java/uvct/presentadorfx/Contenido.java diff --git a/PresentadorFX/src/main/java/uvct/presentadorfx/Contenido.java b/PresentadorFX/src/main/java/uvct/presentadorfx/Contenido.java new file mode 100644 index 0000000..5614ff2 --- /dev/null +++ b/PresentadorFX/src/main/java/uvct/presentadorfx/Contenido.java @@ -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 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); + } + +} \ No newline at end of file