public abstract class SetOperator extends java.lang.Object implements ZoneUnit, java.io.Serializable, java.lang.Cloneable
SetExclusive
,
SetIntersection
,
SetSubtraction
,
SetUnion
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected java.util.List<ZoneUnit> |
elements |
protected static int |
globalSetID |
protected boolean |
isVisible |
protected java.lang.String |
name |
protected ij.gui.ShapeRoi |
roi |
protected int |
setID |
Constructor and Description |
---|
SetOperator(java.util.List<ZoneUnit> zoneUnits)
Creates a new logical operation amongst elements of the given ZoneUnit
list.
|
Modifier and Type | Method and Description |
---|---|
void |
addSetOperatorListener(SetOperatorListener l) |
void |
addZoneUnit(ZoneUnit zoneUnit)
Adds a new ZoneUnit to the current logical operation.
|
void |
addZoneUnitListener(ZoneUnitListener l) |
protected ZoneUnit |
clone() |
java.awt.Rectangle |
getBounds()
Returns the bounding rectangle of this ZoneUnit.
|
java.util.List<ZoneUnit> |
getElements()
Returns the members of the current logical operation.
|
ij.gui.Roi |
getRoi()
Returns an ImageJ ROI version of this ZoneUnit.
|
boolean |
isVisible()
Returns 'true' if the ZoneUnit is visible.
|
void |
removeSetOperatorListener(SetOperatorListener l) |
void |
removeZoneUnit(ZoneUnit zoneUnit)
Removes a new ZoneUnit from the current logical operation.
|
void |
removeZoneUnitListener(ZoneUnitListener l) |
void |
RoiUpdate()
Forces the updating of the result ROI of the current logical operation.
|
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.
|
void |
setVisible(boolean isVisible)
Sets the visibility of the ZoneUnit.
|
java.lang.String |
toString() |
protected boolean isVisible
protected java.util.List<ZoneUnit> elements
protected transient ij.gui.ShapeRoi roi
protected static transient int globalSetID
protected int setID
protected java.lang.String name
public SetOperator(java.util.List<ZoneUnit> zoneUnits)
public boolean isVisible()
ZoneUnit
public void setVisible(boolean isVisible)
ZoneUnit
setVisible
in interface ZoneUnit
public ij.gui.Roi getRoi()
ZoneUnit
public java.awt.Rectangle getBounds()
ZoneUnit
public java.util.List<ZoneUnit> getElements()
public void RoiUpdate()
public void addSetOperatorListener(SetOperatorListener l)
public void removeSetOperatorListener(SetOperatorListener l)
public void addZoneUnitListener(ZoneUnitListener l)
addZoneUnitListener
in interface ZoneUnit
public void removeZoneUnitListener(ZoneUnitListener l)
removeZoneUnitListener
in interface ZoneUnit
public void addZoneUnit(ZoneUnit zoneUnit)
zoneUnit
- public void removeZoneUnit(ZoneUnit zoneUnit)
zoneUnit
- public void setLocation(double x, double y)
ZoneUnit
setLocation
in interface ZoneUnit
public void setName(java.lang.String name)
ZoneUnit
protected ZoneUnit clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object