public class Arrow extends Line
Line.PointIterator
Modifier and Type | Field and Description |
---|---|
static int |
BAR |
static String |
DOUBLE_HEADED_KEY |
static int |
FILLED |
static int |
HEADLESS |
static int |
NOTCHED |
static int |
OPEN |
static String |
OUTLINE_KEY |
static String |
SIZE_KEY |
static String |
STYLE_KEY |
static String[] |
styles |
static String |
WIDTH_KEY |
startxd, startyd, x1, x1d, x1R, x2, x2d, x2R, y1, y1d, y1R, y2, y2d, y2R
ANGLE, asp_bk, aspect, cachedMask, center, clipboard, clipHeight, clipWidth, clipX, clipY, COMPOSITE, constrain, CONSTRUCTING, defaultColor, defaultFillColor, FERET_ARRAY_POINTOFFSET, FERET_ARRAYSIZE, fillColor, flattenScale, 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 and Description |
---|
Arrow(double ox1,
double oy1,
double ox2,
double oy2) |
Arrow(int sx,
int sy,
ImagePlus imp) |
Modifier and Type | Method and Description |
---|---|
protected int |
clipRectMargin() |
boolean |
contains(int x,
int y)
Returns whether the center of pixel (x,y) is contained in the Roi.
|
void |
draw(Graphics g)
Draws this arrow on the image.
|
void |
drawPixels(ImageProcessor ip)
If the width of this line is less than or equal to one, draws the line.
|
Rectangle |
getBounds()
Return the bounding rectangle of this arrow.
|
static boolean |
getDefaultDoubleHeaded() |
static double |
getDefaultHeadSize() |
static boolean |
getDefaultOutline() |
static int |
getDefaultStyle() |
static double |
getDefaultWidth() |
boolean |
getDoubleHeaded() |
double |
getHeadSize() |
ImageProcessor |
getMask()
Always returns null for rectangular Roi's
|
boolean |
getOutline() |
int |
getStyle() |
protected void |
handleMouseDown(int sx,
int sy) |
boolean |
isDrawingTool()
Returns 'true' if this is an ROI primarily used from drawing
(e.g., TextRoi or Arrow).
|
static void |
setDefaultDoubleHeaded(boolean b) |
static void |
setDefaultHeadSize(double size) |
static void |
setDefaultOutline(boolean b) |
static void |
setDefaultStyle(int style) |
static void |
setDefaultWidth(double width) |
void |
setDoubleHeaded(boolean b) |
void |
setHeadSize(double headSize) |
void |
setOutline(boolean b) |
void |
setStyle(int style) |
void |
setStyle(String style) |
create, drawLine, getAngle, getFloatPoints, getFloatPolygon, getFloatPolygon, getLength, getPixels, getPoints, getPolygon, getRawLength, getRotationCenter, getWidth, grow, handleMouseUp, isHandle, iterator, mouseDownInHandle, mouseMoved, moveHandle, nudgeCorner, setLocation, setStrokeWidth, setWidth, showStatus, size, subPixelResolution
abortModification, abortPaste, addRoiListener, clone, containsPoint, convertLineToArea, convertToPolygon, copyAttributes, create, drawOverlay, drawPixels, enableSubPixelResolution, endPaste, equals, getAngle, getAntiAlias, getBoundingRect, getColor, getContainedFloatPoints, getContainedPoints, getContourCentroid, getConvexHull, getCornerDiameter, getCPosition, getCurrentPasteMode, getDebugInfo, getDefaultFillColor, getDefaultGroup, getDefaultHandleSize, getDefaultStrokeWidth, getDrawOffset, getFeretsDiameter, getFeretValues, getFillColor, getFloatAngle, getFloatBounds, getFloatConvexHull, getFloatHeight, getFloatPolygon, getFloatWidth, getGroup, getGroupName, getGroupNames, getHandleSize, getHashCode, getImage, getImageID, getInterpolatedPolygon, getInterpolatedPolygon, getInterpolatedPolygon, getInverse, getMagnification, getName, getPasteMode, getPosition, getProperties, getProperty, getPropertyCount, getPrototypeOverlay, getRoundRectArcSize, getScaledStroke, getScaleStrokeWidth, getState, getStatistics, getStroke, getStrokeColor, getStrokeWidth, getTPosition, getType, getTypeAsString, getXBase, getYBase, getZPosition, handleMouseDrag, hasHyperStackPosition, isActiveOverlayRoi, isArea, isCursor, isInteger, isLine, isLineOrPoint, isVisible, lineCircleIntersection, magnificationForSubPixel, magnificationForSubPixel, mouseDragged, mouseReleased, notifyListeners, nudge, offScreenX, offScreenXD, offScreenY, offScreenYD, removeRoiListener, resetDefaultHandleSize, saveGroupNames, screenX, screenXD, screenY, screenYD, setAntiAlias, setBounds, setColor, setCornerDiameter, setDefaultColor, setDefaultFillColor, setDefaultGroup, setDefaultStrokeWidth, setDrawOffset, setFillColor, setFlattenScale, setGroup, setGroupName, setGroupNames, setHandleSize, setIgnoreClipRect, setImage, setInstanceColor, setIsCursor, setLineWidth, setLocation, setName, setNonScalable, setPasteMode, setPosition, setPosition, setPosition, setProperties, setProperty, setPrototypeOverlay, setRenderingHint, setRotationCenter, setRoundRectArcSize, setStroke, setStrokeColor, setStrokeWidth, setUnscalableStrokeWidth, startPaste, temporarilyHide, toFloat, toInt, toInt, toIntR, toString, update, updateClipRect, updateWideLine, useLineSubpixelConvention
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final String STYLE_KEY
public static final String WIDTH_KEY
public static final String SIZE_KEY
public static final String DOUBLE_HEADED_KEY
public static final String OUTLINE_KEY
public static final int FILLED
public static final int NOTCHED
public static final int OPEN
public static final int HEADLESS
public static final int BAR
public static final String[] styles
public Arrow(double ox1, double oy1, double ox2, double oy2)
public Arrow(int sx, int sy, ImagePlus imp)
public ImageProcessor getMask()
Roi
public void drawPixels(ImageProcessor ip)
Line
drawPixels
in class Line
ImageProcessor.setColor(java.awt.Color)
,
ImageProcessor.setLineWidth(int)
public boolean contains(int x, int y)
Roi
public Rectangle getBounds()
protected void handleMouseDown(int sx, int sy)
handleMouseDown
in class Line
protected int clipRectMargin()
clipRectMargin
in class Line
public boolean isDrawingTool()
Roi
isDrawingTool
in class Roi
public static void setDefaultWidth(double width)
public static double getDefaultWidth()
public void setStyle(int style)
public void setStyle(String style)
public int getStyle()
public static void setDefaultStyle(int style)
public static int getDefaultStyle()
public void setHeadSize(double headSize)
public double getHeadSize()
public static void setDefaultHeadSize(double size)
public static double getDefaultHeadSize()
public void setDoubleHeaded(boolean b)
public boolean getDoubleHeaded()
public static void setDefaultDoubleHeaded(boolean b)
public static boolean getDefaultDoubleHeaded()
public void setOutline(boolean b)
public boolean getOutline()
public static void setDefaultOutline(boolean b)
public static boolean getDefaultOutline()
Copyright © 1997–2020 NIH. All rights reserved.