fixed improper generic parameter use in Tree.duplicateAs > Map, necessary
[trakem2.git] / TrakEM2_ / src / main / java / ini / trakem2 / display / graphics / GraphicsSource.java
blob1604874fd7c8b4b7589b71f694aac8350adc3c1b
1 package ini.trakem2.display.graphics;
3 import ini.trakem2.display.Display;
4 import ini.trakem2.display.Paintable;
6 import java.awt.Graphics2D;
7 import java.awt.Rectangle;
8 import java.util.List;
10 public interface GraphicsSource {
12 /** Takes as list of Paintable and returns the same or another list with perhaps a different number of Paintable objects, or some replaced by new Paintable instances. */
13 public List<? extends Paintable> asPaintable(final List<? extends Paintable> ds);
15 /** The canvas will call this method after painting everything else. */
16 public void paintOnTop(final Graphics2D g, final Display display, final Rectangle srcRect, final double magnification);