Clase NC_Texto actualizada

This commit is contained in:
NataliaCancinoV 2024-03-23 20:37:44 -06:00
parent 4ee8d6be2c
commit 012f1dea26
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
package uvct.presentadorfx;
import javafx.scene.paint.Color;
import javafx.scene.text.Font;
import javafx.scene.text.FontWeight;
import javafx.scene.text.Text;
public class NC_Texto extends Text {
public NC_Texto() {
super();
}
public void setTexto(String t, int tam, Color c) {
this.setFont(Font.font("Arial", FontWeight.NORMAL, tam));
this.setFill(c);
this.setText(t);
}
public void setPosicion(int x, int y) {
this.setLayoutX(x);
this.setLayoutY(y);
}
}