Class Sink

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, GraphicComponent, JobContainer

public class Sink extends JComponent implements JobContainer, GraphicComponent
Class for a sink in the animation.
Author:
Lorenzo Torri Date: 01-apr-2024 Time: 11.31
See Also:
  • Constructor Details

    • Sink

      public Sink(JPanel container, boolean centered, Point pos, AnimationClass anim)
      Constructor
      Parameters:
      container - , JPanel that contains this sink
      centered - , if the component is centered with respect to the Jpanel
      pos - , position of the component. If it is centered then this pos is not important, it can be anything
      anim - , AnimationClass associated to this component. It is needed in order to remove the job arrived to the sink also from the list of jobs of the AnimationClass
  • Method Details