public class Grafico
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
Grafico.Destacados
Clase de elemento destacado.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
CIRCULO
Tipo de dibujo circular.
|
private java.util.List<Grafico.Destacados> |
destacados
Los elementos destacados.
|
static int |
DURACION
Duración de la animación.
|
static int |
RECTANGULO
Tipo de dibujo rectuangular.
|
private javafx.scene.Scene |
scene
La escena donde está cosas graficas.
|
static int |
TEXTO
Tipo de dibjuo texto
|
| Constructor and Description |
|---|
Grafico(javafx.scene.Scene scene)
Graficar una escena.
|
| Modifier and Type | Method and Description |
|---|---|
static javafx.scene.layout.StackPane |
crearCaja(Colores colores,
java.lang.String label)
Crear un rectangulo.
|
static javafx.scene.layout.StackPane |
crearCaja(Colores colores,
java.lang.String label,
java.lang.String texto)
Crear un rectangulo con texto adentro.
|
static javafx.scene.layout.StackPane |
crearFlechaAbajo()
Crear una flecha que apunta por abajo.
|
static javafx.scene.layout.StackPane |
crearFlechaArriba()
Crear una flecha que apunta por arriba.
|
static javafx.scene.layout.StackPane |
crearHashCajas(Colores colores,
java.lang.String label)
Crear 3 rectangulos.
|
static javafx.scene.layout.Pane |
crearLineaCircular(int cajas)
Crear la linea circular con flecha.
|
static javafx.scene.layout.StackPane |
crearLineaVertical()
Crear una linea vertical.
|
private static javafx.animation.PauseTransition |
createPauseTransition(javafx.scene.shape.Circle circle,
javafx.scene.paint.Color colorBackground)
Crear un animacion de transicion usando colores que cambian.
|
private static javafx.animation.PauseTransition |
createPauseTransition(javafx.scene.shape.Rectangle rectangle,
javafx.scene.paint.Color colorBackground)
Crear un animacion de transicion usando colores que cambian.
|
private static javafx.animation.PauseTransition |
createPauseTransition(javafx.scene.text.Text text,
javafx.scene.paint.Color colorText)
Crear un animacion de transicion usando colores que cambian.
|
void |
destacar(java.lang.String id,
int tipo)
Destacar un elemento
|
void |
removerDestacar()
Remover todos los elementos destacados.
|
public static final int DURACION
public static final int RECTANGULO
public static final int CIRCULO
public static final int TEXTO
private final javafx.scene.Scene scene
private java.util.List<Grafico.Destacados> destacados
public Grafico(javafx.scene.Scene scene)
scene - La scene a destacar.public static javafx.scene.layout.StackPane crearFlechaAbajo()
public static javafx.scene.layout.StackPane crearFlechaArriba()
public static javafx.scene.layout.StackPane crearLineaVertical()
public static javafx.scene.layout.Pane crearLineaCircular(int cajas)
cajas - int: La cantidad de cajas que están.public static javafx.scene.layout.StackPane crearCaja(Colores colores, java.lang.String label)
colores - Colores: Los colores para dar color al rectangulo.label - String: El texto por el ID de fxml.public static javafx.scene.layout.StackPane crearCaja(Colores colores, java.lang.String label, java.lang.String texto)
colores - Colores: Los colores para dar color al rectangulo.label - String: El texto por el ID de fxml.texto - String: El texto a colocar dentro el rectangulo.public static javafx.scene.layout.StackPane crearHashCajas(Colores colores, java.lang.String label)
colores - Colores: Los colores para dar color a los rectangulos.label - String: El texto por el ID de fxml.private static javafx.animation.PauseTransition createPauseTransition(javafx.scene.shape.Rectangle rectangle,
javafx.scene.paint.Color colorBackground)
rectangle - Rectangle: El objeto que desea animar.colorBackground - Color: Color del fondo de destacar.private static javafx.animation.PauseTransition createPauseTransition(javafx.scene.shape.Circle circle,
javafx.scene.paint.Color colorBackground)
circle - Circle: El objeto que desea animar.colorBackground - Color: Color del fondo de destacar.private static javafx.animation.PauseTransition createPauseTransition(javafx.scene.text.Text text,
javafx.scene.paint.Color colorText)
text - Text: El texto que desea animar.colorText - Color: Color del texto.public void destacar(java.lang.String id,
int tipo)
public void removerDestacar()