de.unihalle.informatik.MiToBo.core.imageJ
Class MTBRegion2DSetROI

java.lang.Object
  extended by ij.gui.Roi
      extended by de.unihalle.informatik.MiToBo.core.imageJ.MTBRegion2DSetROI
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class MTBRegion2DSetROI
extends ij.gui.Roi

Class to visualize and handle a MTBRegion2DSet in the ImageJ ROI-Manager. All entries of the region 2D set are listed in one Roi-Manager entry.

Author:
Danny Misiak
See Also:
MTBRegion2DSet, Serialized Form

Field Summary
(package private)  MTBRegion2DSet regionSet
          Set of 2D regions.
 
Fields inherited from class ij.gui.Roi
ANGLE, asp_bk, aspect, cachedMask, center, clipboard, clipHeight, clipWidth, clipX, clipY, COMPOSITE, constrain, CONSTRUCTING, defaultFillColor, fillColor, FREELINE, FREEROI, HANDLE_SIZE, handleColor, ic, ignoreClipRect, imp, instanceColor, LINE, lineWidth, mag, MOVING, MOVING_HANDLE, nonScalable, NORMAL, NOT_PASTING, oldHeight, oldWidth, oldX, oldY, onePixelWide, OVAL, overlay, pasteMode, POINT, POLYGON, POLYLINE, previousRoi, RECTANGLE, RESIZING, ROIColor, stroke, strokeColor, TRACED_ROI, type, updateFullWindow, wideLine, xMax, yMax
 
Constructor Summary
MTBRegion2DSetROI(MTBRegion2DSet regSet, java.lang.String roiLabel)
          Constructor to create a new Roi-Manager-Object, based on a MTBRegion2DSet.
MTBRegion2DSetROI(ij.gui.Roi r)
          Constructor of super class.
 
Method Summary
 MTBRegion2DSetROI clone()
           
 void draw(java.awt.Graphics g)
          Called method to temporary view the selected set of regions from the Roi-Manager into the current image.
 void drawPixels(ij.process.ImageProcessor ip)
          Called method to draw the selected entry from the Roi-Manager into the current image.
 boolean equals(java.lang.Object obj)
           
 MTBRegion2DSet getRegionSet()
          Get 2D region set from Roi.
 
Methods inherited from class ij.gui.Roi
abortPaste, clipRectMargin, contains, copyAttributes, drawOverlay, drawPixels, endPaste, getAngle, getBoundingRect, getBounds, getColor, getConvexHull, getCornerDiameter, getCPosition, getCurrentPasteMode, getDefaultFillColor, getDrawOffset, getFeretsDiameter, getFeretValues, getFillColor, getFloatAngle, getFloatBounds, getFloatPolygon, getImage, getImageID, getInterpolatedPolygon, getInterpolatedPolygon, getInterpolatedPolygon, getLength, getMagnification, getMask, getName, getPasteMode, getPolygon, getPosition, getPrototypeOverlay, getRoundRectArcSize, getScaledStroke, getState, getStroke, getStrokeColor, getStrokeWidth, getTPosition, getType, getTypeAsString, getZPosition, grow, handleMouseDown, handleMouseDrag, handleMouseUp, isActiveOverlayRoi, isArea, isDrawingTool, isHandle, isLine, isVisible, mouseDownInHandle, mouseDragged, mouseReleased, moveHandle, nudge, nudgeCorner, screenX, screenXD, screenY, screenYD, setColor, setCornerDiameter, setDefaultFillColor, setDrawOffset, setFillColor, setIgnoreClipRect, setImage, setInstanceColor, setLineWidth, setLocation, setName, setNonScalable, setPasteMode, setPosition, setPosition, setPrototypeOverlay, setRoundRectArcSize, setStroke, setStrokeColor, setStrokeWidth, setStrokeWidth, showStatus, startPaste, subPixelResolution, temporarilyHide, toFloat, toInt, toInt, toIntR, toString, update, updateClipRect, updateWideLine
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

regionSet

MTBRegion2DSet regionSet
Set of 2D regions.

Constructor Detail

MTBRegion2DSetROI

public MTBRegion2DSetROI(MTBRegion2DSet regSet,
                         java.lang.String roiLabel)
Constructor to create a new Roi-Manager-Object, based on a MTBRegion2DSet.

Parameters:
regSet - set of 2D regions
roiLabel - label of the Roi-Manager entry

MTBRegion2DSetROI

public MTBRegion2DSetROI(ij.gui.Roi r)
Constructor of super class.

Parameters:
r - a given Roi
Method Detail

clone

public MTBRegion2DSetROI clone()
Overrides:
clone in class ij.gui.Roi

draw

public void draw(java.awt.Graphics g)
Called method to temporary view the selected set of regions from the Roi-Manager into the current image. The region is drawn only as polygon, not as filled region. The filled region is only drawn by selecting the draw option from the manager.

Overrides:
draw in class ij.gui.Roi

drawPixels

public void drawPixels(ij.process.ImageProcessor ip)
Called method to draw the selected entry from the Roi-Manager into the current image. Here the region is drawn as filled region.

Overrides:
drawPixels in class ij.gui.Roi

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class ij.gui.Roi

getRegionSet

public MTBRegion2DSet getRegionSet()
Get 2D region set from Roi.