public class NutritionalValueView
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private javafx.scene.control.Label |
caloriesValue |
private javafx.scene.control.Label |
carbohydratesValue |
private static int |
HEIGHT_SCENE |
private javafx.scene.control.Label |
lipidsValue |
private static java.lang.String |
NUTRITIONAL_VALUE_FXML
The fxml resource for the view
|
private javafx.scene.chart.PieChart |
nutritionalPie |
private NutritionalValues |
nutritionalValues |
private javafx.scene.control.Label |
proteinsValue |
private static int |
WIDTH_SCENE |
Constructor and Description |
---|
NutritionalValueView(NutritionalValues nutritionalValues) |
Modifier and Type | Method and Description |
---|---|
private void |
setupUI()
Sets up the user interface
|
private static final java.lang.String NUTRITIONAL_VALUE_FXML
private static final int HEIGHT_SCENE
private static final int WIDTH_SCENE
private javafx.scene.chart.PieChart nutritionalPie
private javafx.scene.control.Label caloriesValue
private javafx.scene.control.Label proteinsValue
private javafx.scene.control.Label lipidsValue
private javafx.scene.control.Label carbohydratesValue
private NutritionalValues nutritionalValues
public NutritionalValueView(NutritionalValues nutritionalValues) throws java.io.IOException
java.io.IOException