public class Primitive extends java.lang.Object implements ZoneUnit, java.io.Serializable, java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
void |
addZoneUnitListener(ZoneUnitListener l) |
protected ZoneUnit |
clone() |
static Primitive |
createPrimitive(ij.gui.Roi r,
boolean isVisible)
You can create a geometric primitive from the Rectangle, Oval, Polygon or
Freehand ROI.
|
ZoneUnit |
duplicate()
Returns a shadow copy of this ZoneUnit.
|
java.awt.Rectangle |
getBounds()
Returns the bounding rectangle of this ZoneUnit.
|
java.lang.String |
getName()
Returns the name of this ZoneUnit.
|
ij.gui.Roi |
getRoi()
Returns an ImageJ ROI version of this ZoneUnit.
|
ij.gui.ShapeRoi |
getShapeRoi()
Returns a new ShapeRoi.
|
int |
getType()
Returns the type of the ROI.
|
boolean |
isVisible()
Returns 'true' if the ZoneUnit is visible.
|
void |
removeZoneUnitListener(ZoneUnitListener l) |
void |
setLocation(double x,
double y)
Sets the new location of this ZoneUnit.
|
void |
setName(java.lang.String name)
Sets the name of this ZoneUnit.
|
boolean |
setRoi(ij.gui.Roi r)
Sets a new ROI.
|
void |
setVisible(boolean isVisible)
Sets the visibility of the ZoneUnit.
|
java.lang.String |
toString() |
public static Primitive createPrimitive(ij.gui.Roi r, boolean isVisible)
public java.lang.String getName()
ZoneUnit
public ij.gui.Roi getRoi()
ZoneUnit
public ij.gui.ShapeRoi getShapeRoi()
public java.awt.Rectangle getBounds()
ZoneUnit
public boolean setRoi(ij.gui.Roi r)
r
- public java.lang.String toString()
toString
in class java.lang.Object
public int getType()
public boolean isVisible()
ZoneUnit
public void setVisible(boolean isVisible)
ZoneUnit
setVisible
in interface ZoneUnit
public void addZoneUnitListener(ZoneUnitListener l)
addZoneUnitListener
in interface ZoneUnit
public void removeZoneUnitListener(ZoneUnitListener l)
removeZoneUnitListener
in interface ZoneUnit
public void setLocation(double x, double y)
ZoneUnit
setLocation
in interface ZoneUnit
protected ZoneUnit clone()
clone
in class java.lang.Object
public ZoneUnit duplicate()
ZoneUnit