Class AbstractDrawLayers

  • All Implemented Interfaces:
    it.unibo.alchemist.boundary.swingui.effect.api.DrawLayers , it.unibo.alchemist.boundary.swingui.effect.api.Effect , java.io.Serializable

    
    public abstract class AbstractDrawLayers
    extends AbstractDrawOnce implements DrawLayers
                        

    This class collects the following responsibilities: - it manages to draw layers only when necessary (as the apply method will be called for every node). Every subclass must only define the drawLayers method, which is guaranteed to be called only when necessary. - it declares gui controls for the selection of the color to use - it declares gui controls for the selection of a filter, used to filter the layers to draw. In particular, it allows the user to specify a molecule, meaning that only the layer containing such molecule will be drawn (otherwise the effect is applied to all layers)