Class AbstractImageLayer

    • Field Detail

    • Constructor Detail

      • AbstractImageLayer

        public AbstractImageLayer()
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class BasePanel
      • setName

        public abstract void setName​(String value)
        Sets the name of the layer.
        Overrides:
        setName in class Component
        Parameters:
        value - the name
      • setImage

        public void setImage​(BufferedImage value)
        Sets the image to display.
        Parameters:
        value - the image, null to clear
      • getImage

        public BufferedImage getImage()
        Returns the underlying image.
        Returns:
        the image, null if none set
      • draw

        public void draw​(Graphics2D g2d)
        Performs the drawing.
        Overrides:
        draw in class AbstractLayer
        Parameters:
        g2d - the graphics context