ini.trakem2.display
Class AreaWrapper

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

public class AreaWrapper
extends java.lang.Object


Nested Class Summary
static class AreaWrapper.PaintParameters
           
 
Field Summary
static int PAINT_ERODE
           
static int PAINT_EXCLUDE
           
static int PAINT_OVERLAP
           
static AreaWrapper.PaintParameters PP
           
 
Constructor Summary
AreaWrapper()
           
AreaWrapper(java.awt.geom.Area area)
           
AreaWrapper(Displayable source, java.awt.geom.Area area)
           
 
Method Summary
 void add(java.awt.geom.Area a, java.awt.geom.AffineTransform to_world)
          Add an area that needs to be transformed by tmp first to bring it to world coordinates; will MODIFY the to_world AffineTransform object.
 void add(java.awt.geom.Area wa, Layer layer)
          Add an area in world coordinates.
 void fillHoles()
           
 java.awt.geom.Area getArea()
           
 Displayable getSource()
           
 void keyPressed(java.awt.event.KeyEvent ke, DisplayCanvas dc, Layer la)
           
static java.awt.geom.Area makeBrush(int diameter, double mag)
          This method could get tones of improvement, which should be pumped upstream into ImageJ's RoiBrush class which is creating it at every while(true) {} iteration!!! The returned area has its coordinates centered around 0,0
static java.awt.geom.Area makeMouseBrush(int diameter, double mag)
           
 void mouseDragged(java.awt.event.MouseEvent me, Layer la, int x_p, int y_p, int x_d, int y_d, int x_d_old, int y_d_old)
           
 void mousePressed(java.awt.event.MouseEvent me, Layer la, int x_p_w, int y_p_w, double mag)
           
 void mousePressed(java.awt.event.MouseEvent me, Layer la, int x_p_w, int y_p_w, double mag, java.util.List<java.lang.Runnable> post_tasks)
           
 void mouseReleased(java.awt.event.MouseEvent me, Layer la, int x_p, int y_p, int x_d, int y_d, int x_r, int y_r)
           
 void paint(java.awt.Graphics2D g, java.awt.geom.AffineTransform aff, boolean fill, java.awt.Color color)
           
 void putData(java.awt.geom.Area a)
          Does not set the @param area, but copies its internal data.
 void setSource(Displayable source)
           
 void subtract(java.awt.geom.Area wa, Layer layer)
          Subtract an area in world coordinates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PAINT_OVERLAP

public static final int PAINT_OVERLAP
See Also:
Constant Field Values

PAINT_EXCLUDE

public static final int PAINT_EXCLUDE
See Also:
Constant Field Values

PAINT_ERODE

public static final int PAINT_ERODE
See Also:
Constant Field Values

PP

public static final AreaWrapper.PaintParameters PP
Constructor Detail

AreaWrapper

public AreaWrapper(Displayable source,
                   java.awt.geom.Area area)

AreaWrapper

public AreaWrapper()

AreaWrapper

public AreaWrapper(java.awt.geom.Area area)
Method Detail

setSource

public void setSource(Displayable source)

getSource

public Displayable getSource()

getArea

public java.awt.geom.Area getArea()

putData

public void putData(java.awt.geom.Area a)
Does not set the @param area, but copies its internal data.


add

public void add(java.awt.geom.Area wa,
                Layer layer)
Add an area in world coordinates.


subtract

public void subtract(java.awt.geom.Area wa,
                     Layer layer)
Subtract an area in world coordinates.


add

public void add(java.awt.geom.Area a,
                java.awt.geom.AffineTransform to_world)
Add an area that needs to be transformed by tmp first to bring it to world coordinates; will MODIFY the to_world AffineTransform object.


paint

public void paint(java.awt.Graphics2D g,
                  java.awt.geom.AffineTransform aff,
                  boolean fill,
                  java.awt.Color color)

makeMouseBrush

public static java.awt.geom.Area makeMouseBrush(int diameter,
                                                double mag)

makeBrush

public static java.awt.geom.Area makeBrush(int diameter,
                                           double mag)
This method could get tones of improvement, which should be pumped upstream into ImageJ's RoiBrush class which is creating it at every while(true) {} iteration!!! The returned area has its coordinates centered around 0,0


mousePressed

public void mousePressed(java.awt.event.MouseEvent me,
                         Layer la,
                         int x_p_w,
                         int y_p_w,
                         double mag)

mousePressed

public void mousePressed(java.awt.event.MouseEvent me,
                         Layer la,
                         int x_p_w,
                         int y_p_w,
                         double mag,
                         java.util.List<java.lang.Runnable> post_tasks)

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent me,
                         Layer la,
                         int x_p,
                         int y_p,
                         int x_d,
                         int y_d,
                         int x_d_old,
                         int y_d_old)

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent me,
                          Layer la,
                          int x_p,
                          int y_p,
                          int x_d,
                          int y_d,
                          int x_r,
                          int y_r)

keyPressed

public void keyPressed(java.awt.event.KeyEvent ke,
                       DisplayCanvas dc,
                       Layer la)

fillHoles

public void fillHoles()