ini.trakem2.display
Class Overlay

java.lang.Object
  extended by ini.trakem2.display.Overlay

public class Overlay
extends java.lang.Object


Constructor Summary
Overlay()
           
 
Method Summary
 void add(java.awt.Shape shape, java.awt.Color color, java.awt.Stroke stroke)
          Add a new Shape to be painted above all other elements in the canvas.
 void add(java.awt.Shape shape, java.awt.Color color, java.awt.Stroke stroke, boolean as_XOR_color)
           
 void add(java.awt.Shape shape, java.awt.Color color, java.awt.Stroke stroke, boolean fill, boolean as_XOR_color, float alpha)
           
 void clear()
           
 void paint(java.awt.Graphics2D g, java.awt.Rectangle srcRect, double mag)
           
 void remove(java.awt.Shape shape)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Overlay

public Overlay()
Method Detail

add

public void add(java.awt.Shape shape,
                java.awt.Color color,
                java.awt.Stroke stroke)
Add a new Shape to be painted above all other elements in the canvas. The color and stroke may be null, defaulting to Color.yellow and a line of width 1.


add

public void add(java.awt.Shape shape,
                java.awt.Color color,
                java.awt.Stroke stroke,
                boolean as_XOR_color)

add

public void add(java.awt.Shape shape,
                java.awt.Color color,
                java.awt.Stroke stroke,
                boolean fill,
                boolean as_XOR_color,
                float alpha)

remove

public void remove(java.awt.Shape shape)

clear

public void clear()

paint

public void paint(java.awt.Graphics2D g,
                  java.awt.Rectangle srcRect,
                  double mag)