Class OverlayComponent

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class OverlayComponent extends JComponent
The JComponent implementing an overlay. Author Kazo Csaba
See Also:
  • Constructor Details

    • OverlayComponent

      public OverlayComponent(Overlay overlay, org.loboevolution.img.ImageComponent image)

      Constructor for OverlayComponent.

      Parameters:
      overlay - a Overlay object.
      image - a ImageComponent object.
  • Method Details

    • paintComponent

      protected void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • getMaximumSize

      public Dimension getMaximumSize()
      Overrides:
      getMaximumSize in class JComponent
    • getOverlay

      public Overlay getOverlay()

      Getter for the field overlay.

      Returns:
      the overlay
    • setOverlay

      public void setOverlay(Overlay overlay)

      Setter for the field overlay.

      Parameters:
      overlay - the overlay to set
    • getTheImage

      public org.loboevolution.img.ImageComponent getTheImage()

      Getter for the field theImage.

      Returns:
      the theImage
    • setTheImage

      public void setTheImage(org.loboevolution.img.ImageComponent theImage)

      Setter for the field theImage.

      Parameters:
      theImage - the theImage to set