-
- All Implemented Interfaces:
-
javafx.fxml.Initializable
public class EffectBarController<P extends Position2D<out P>> implements InitializableThis class models a JavaFX controller for EffectBar.fxml.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringEFFECT_BAR_LAYOUTprivate Optional<FXOutputMonitor<out Object, out Object>>displayMonitor
-
Constructor Summary
Constructors Constructor Description EffectBarController(EffectGroupCell<P> parentCell, JFXDrawersStack stack, JFXDrawer thisDrawer)Default constructor. EffectBarController(FXOutputMonitor<out Object, out Object> displayMonitor, EffectGroupCell<P> parentCell, JFXDrawersStack stack, JFXDrawer thisDrawer)Constructor.
-
Method Summary
Modifier and Type Method Description final Optional<FXOutputMonitor<out Object, out Object>>getDisplayMonitor()Getter method for the graphical it.unibo.alchemist.boundary.interfaces.OutputMonitor. final voidsetDisplayMonitor(@Nullable() FXOutputMonitor<out Object, out Object> displayMonitor)Setter method for the graphical it.unibo.alchemist.boundary.interfaces.OutputMonitor. voidinitialize(URL location, ResourceBundle resources)voidaddEffectToGroup(EffectFX<P> effect)Add the Effect to the ListView controlled by this class and to the it.unibo.alchemist.boundary.gui.effects.EffectGroup that the GUI controlled by this claass is representation of. StringPropertygroupNameProperty()The name property of this representation of the group. -
-
Constructor Detail
-
EffectBarController
EffectBarController(EffectGroupCell<P> parentCell, JFXDrawersStack stack, JFXDrawer thisDrawer)
Default constructor.- Parameters:
parentCell- the cell that EffectGroupCell that will open this drawerstack- the stack where to open the effect propertiesthisDrawer- the drawer the layout this controller is assigned to is loaded into
-
EffectBarController
EffectBarController(FXOutputMonitor<out Object, out Object> displayMonitor, EffectGroupCell<P> parentCell, JFXDrawersStack stack, JFXDrawer thisDrawer)
Constructor.- Parameters:
displayMonitor- the graphical it.unibo.alchemist.boundary.interfaces.OutputMonitorparentCell- the cell that EffectGroupCell that will open this drawerstack- the stack where to open the effect propertiesthisDrawer- the drawer the layout this controller is assigned to is loaded into
-
-
Method Detail
-
getDisplayMonitor
final Optional<FXOutputMonitor<out Object, out Object>> getDisplayMonitor()
Getter method for the graphical it.unibo.alchemist.boundary.interfaces.OutputMonitor.
-
setDisplayMonitor
final void setDisplayMonitor(@Nullable() FXOutputMonitor<out Object, out Object> displayMonitor)
Setter method for the graphical it.unibo.alchemist.boundary.interfaces.OutputMonitor.
- Parameters:
displayMonitor- the graphical it.unibo.alchemist.boundary.interfaces.OutputMonitor to set; if null, it will be unset
-
initialize
void initialize(URL location, ResourceBundle resources)
-
addEffectToGroup
void addEffectToGroup(EffectFX<P> effect)
Add the Effect to the ListView controlled by this class and to the it.unibo.alchemist.boundary.gui.effects.EffectGroup that the GUI controlled by this claass is representation of.
- Parameters:
effect- the effect to add
-
groupNameProperty
StringProperty groupNameProperty()
The name property of this representation of the group.
-
-
-
-