Source code for Layer.java

What follows is the highlighted source code with comments. You can also download this file directly: Layer.java.

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package layers;

import java.awt.Graphics2D;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;

/**
 *
 * @author pat
 */
public interface Layer extends MouseListener, MouseMotionListener {
    /** render the parts of the layer that do not change frequently */
    public void render(Graphics2D g);
    /** render the parts which are changing constantly (ie. when the mouse moves) */
    public void renderActive(Graphics2D g);
}
HOOPER >>>>> JAVA TUTORIAL
Last modified on August 17, 2018.
[check html] [check css]