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

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

public class MTBContour2DSetROI
extends ij.gui.Roi

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

Author:
Danny Misiak
See Also:
MTBContour2DSet, Serialized Form

Field Summary
(package private)  MTBContour2DSet contourSet
          Set of 2D contours.
 
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
MTBContour2DSetROI(MTBContour2DSet contSet, java.lang.String roiLabel)
          Constructor to create a new Roi-Manager-Object, based on a MTBContour2DSet.
MTBContour2DSetROI(ij.gui.Roi r)
          Constructor of super class.
 
Method Summary
 MTBContour2DSetROI clone()
           
 void draw(java.awt.Graphics g)
          Called method to temporary view the selected set of contours 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)
           
 MTBContour2DSet getContourSet()
          Get 2D contour 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

contourSet

MTBContour2DSet contourSet
Set of 2D contours.

Constructor Detail

MTBContour2DSetROI

public MTBContour2DSetROI(MTBContour2DSet contSet,
                          java.lang.String roiLabel)
Constructor to create a new Roi-Manager-Object, based on a MTBContour2DSet.

Parameters:
contSet - set of 2D contours
roiLabel - label of the Roi-Manager entry

MTBContour2DSetROI

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

Parameters:
r - a given Roi
Method Detail

clone

public MTBContour2DSetROI 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 contours from the Roi-Manager into the current image.

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.

Overrides:
drawPixels in class ij.gui.Roi

equals

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

getContourSet

public MTBContour2DSet getContourSet()
Get 2D contour set from Roi.