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

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

@ALDMetaInfo(export=ALLOWED)
public class MTBPolygon2DSetROI
extends ij.gui.Roi

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

Author:
Danny Misiak
See Also:
MTBPolygon2DSet, Serialized Form

Field Summary
 
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
MTBPolygon2DSetROI(MTBPolygon2DSet polySet, String roiLabel)
          Constructor to create a new Roi-Manager-Object, based on a MTBPolygon2DSet.
MTBPolygon2DSetROI(ij.gui.Roi r)
          Constructor of super class.
 
Method Summary
 MTBPolygon2DSetROI clone()
           
 void draw(Graphics g)
          Called method to temporary view the selected set of polygons 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(Object obj)
           
 MTBPolygon2DSet getPolygonSet()
          Get 2D polygon set from Roi.
 
Methods inherited from class ij.gui.Roi
abortPaste, clipRectMargin, contains, copyAttributes, drawOverlay, drawPixels, enableSubPixelResolution, endPaste, getAngle, getAngle, getBoundingRect, getBounds, getColor, getConvexHull, getCornerDiameter, getCPosition, getCurrentPasteMode, getDebugInfo, getDefaultFillColor, getDrawOffset, getFeretsDiameter, getFeretValues, getFillColor, getFloatAngle, getFloatBounds, getFloatHeight, getFloatPolygon, getFloatWidth, getHashCode, getImage, getImageID, getInterpolatedPolygon, getInterpolatedPolygon, getInterpolatedPolygon, getLength, getMagnification, getMask, getName, getPasteMode, getPolygon, getPosition, getProperties, getProperty, getPropertyCount, getPrototypeOverlay, getRoundRectArcSize, getScaledStroke, getState, getStroke, getStrokeColor, getStrokeWidth, getTPosition, getType, getTypeAsString, getXBase, getYBase, getZPosition, grow, handleMouseDown, handleMouseDrag, handleMouseUp, isActiveOverlayRoi, isArea, isDrawingTool, isHandle, isLine, isVisible, lineCircleIntersection, mouseDownInHandle, mouseDragged, mouseMoved, mouseReleased, moveHandle, nudge, nudgeCorner, screenX, screenXD, screenY, screenYD, setColor, setCornerDiameter, setDefaultFillColor, setDrawOffset, setFillColor, setIgnoreClipRect, setImage, setInstanceColor, setLineWidth, setLocation, setLocation, setName, setNonScalable, setPasteMode, setPosition, setPosition, setProperties, setProperty, 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
 

Constructor Detail

MTBPolygon2DSetROI

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

Parameters:
r - a given Roi

MTBPolygon2DSetROI

public MTBPolygon2DSetROI(MTBPolygon2DSet polySet,
                          String roiLabel)
Constructor to create a new Roi-Manager-Object, based on a MTBPolygon2DSet.

Parameters:
polySet - set of 2D polygons
roiLabel - label of the Roi-Manager entry
Method Detail

clone

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

equals

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

getPolygonSet

public MTBPolygon2DSet getPolygonSet()
Get 2D polygon set from Roi.


draw

public void draw(Graphics g)
Called method to temporary view the selected set of polygons 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


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.