public class AreaWrapper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AreaWrapper.PaintParameters |
Modifier and Type | Field and Description |
---|---|
static int |
PAINT_ERODE |
static int |
PAINT_EXCLUDE |
static int |
PAINT_OVERLAP |
static AreaWrapper.PaintParameters |
PP |
Constructor and Description |
---|
AreaWrapper() |
AreaWrapper(Area area) |
AreaWrapper(Displayable source,
Area area) |
Modifier and Type | Method and Description |
---|---|
void |
add(Area a,
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(Area wa,
Layer layer)
Add an area in world coordinates.
|
void |
fillHoles() |
Area |
getArea() |
Displayable |
getSource() |
void |
keyPressed(KeyEvent ke,
DisplayCanvas dc,
Layer la) |
static 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 Area |
makeMouseBrush(int diameter,
double mag) |
void |
mouseDragged(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(MouseEvent me,
Layer la,
int x_p_w,
int y_p_w,
double mag) |
void |
mousePressed(MouseEvent me,
Layer la,
int x_p_w,
int y_p_w,
double mag,
List<Runnable> post_tasks) |
void |
mouseReleased(MouseEvent me,
Layer la,
int x_p,
int y_p,
int x_d,
int y_d,
int x_r,
int y_r) |
void |
paint(Graphics2D g,
AffineTransform aff,
boolean fill,
Color color) |
void |
putData(Area a)
Does not set the @param area, but copies its internal data.
|
void |
setSource(Displayable source) |
void |
subtract(Area wa,
Layer layer)
Subtract an area in world coordinates.
|
public static final int PAINT_OVERLAP
public static final int PAINT_EXCLUDE
public static final int PAINT_ERODE
public static final AreaWrapper.PaintParameters PP
public AreaWrapper(Displayable source, Area area)
public AreaWrapper()
public AreaWrapper(Area area)
public void setSource(Displayable source)
public Displayable getSource()
public Area getArea()
public void putData(Area a)
public void add(Area a, AffineTransform to_world)
public void paint(Graphics2D g, AffineTransform aff, boolean fill, Color color)
public static Area makeMouseBrush(int diameter, double mag)
public static Area makeBrush(int diameter, double mag)
public void mousePressed(MouseEvent me, Layer la, int x_p_w, int y_p_w, double mag)
public void mousePressed(MouseEvent me, Layer la, int x_p_w, int y_p_w, double mag, List<Runnable> post_tasks)
public void mouseDragged(MouseEvent me, Layer la, int x_p, int y_p, int x_d, int y_d, int x_d_old, int y_d_old)
public void mouseReleased(MouseEvent me, Layer la, int x_p, int y_p, int x_d, int y_d, int x_r, int y_r)
public void keyPressed(KeyEvent ke, DisplayCanvas dc, Layer la)
public void fillHoles()
Copyright © 2015–2021 Fiji. All rights reserved.