public class Arrow extends Line
| Modifier and Type | Field and Description |
|---|---|
static int |
BAR |
static java.lang.String |
DOUBLE_HEADED_KEY |
static int |
FILLED |
static int |
HEADLESS |
static int |
NOTCHED |
static int |
OPEN |
static java.lang.String |
OUTLINE_KEY |
static java.lang.String |
SIZE_KEY |
static java.lang.String |
STYLE_KEY |
static java.lang.String[] |
styles |
static java.lang.String |
WIDTH_KEY |
startxd, startyd, x1, x1d, x1R, x2, x2d, x2R, y1, y1d, y1R, y2, y2d, y2RANGLE, 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 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) |
void |
draw(java.awt.Graphics g)
Draws this arrow on the image.
|
void |
drawPixels(ImageProcessor ip)
Draws the selection outline on the specified ImageProcessor.
|
java.awt.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(java.lang.String style) |
drawLine, getAngle, getDrawOffset, getFloatPoints, getFloatPolygon, getLength, getPixels, getPoints, getPolygon, getRawLength, getWidth, grow, handleMouseUp, isHandle, mouseDownInHandle, mouseMoved, moveHandle, nudgeCorner, setDrawOffset, setLocation, setStrokeWidth, setWidth, subPixelResolutionabortPaste, addRoiListener, clone, copyAttributes, drawOverlay, drawPixels, enableSubPixelResolution, endPaste, equals, getAngle, getBoundingRect, getColor, getConvexHull, getCornerDiameter, getCPosition, getCurrentPasteMode, getDebugInfo, getDefaultFillColor, getFeretsDiameter, getFeretValues, getFillColor, getFloatAngle, getFloatBounds, getFloatHeight, getFloatWidth, getHashCode, getImage, getImageID, getInterpolatedPolygon, getInterpolatedPolygon, getInterpolatedPolygon, getMagnification, getName, getPasteMode, getPosition, getProperties, getProperty, getPropertyCount, getPrototypeOverlay, getRoundRectArcSize, getScaledStroke, getState, getStroke, getStrokeColor, getStrokeWidth, getTPosition, getType, getTypeAsString, getXBase, getYBase, getZPosition, handleMouseDrag, isActiveOverlayRoi, isArea, isLine, isVisible, lineCircleIntersection, mouseDragged, mouseReleased, notifyListeners, nudge, removeRoiListener, screenX, screenXD, screenY, screenYD, setColor, setCornerDiameter, setDefaultFillColor, setFillColor, setIgnoreClipRect, setImage, setInstanceColor, setLineWidth, setLocation, setName, setNonScalable, setPasteMode, setPosition, setPosition, setProperties, setProperty, setPrototypeOverlay, setRoundRectArcSize, setStroke, setStrokeColor, setStrokeWidth, showStatus, startPaste, temporarilyHide, toFloat, toInt, toInt, toIntR, toString, update, updateClipRect, updateWideLinepublic static final java.lang.String STYLE_KEY
public static final java.lang.String WIDTH_KEY
public static final java.lang.String SIZE_KEY
public static final java.lang.String DOUBLE_HEADED_KEY
public static final java.lang.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 java.lang.String[] styles
public Arrow(double ox1,
double oy1,
double ox2,
double oy2)
public Arrow(int sx,
int sy,
ImagePlus imp)
public void draw(java.awt.Graphics g)
public ImageProcessor getMask()
Roipublic void drawPixels(ImageProcessor ip)
RoidrawPixels in class LineImageProcessor.setColor(java.awt.Color),
ImageProcessor.setLineWidth(int)public java.awt.Rectangle getBounds()
protected void handleMouseDown(int sx,
int sy)
handleMouseDown in class Lineprotected int clipRectMargin()
clipRectMargin in class Linepublic boolean isDrawingTool()
RoiisDrawingTool in class Roipublic static void setDefaultWidth(double width)
public static double getDefaultWidth()
public void setStyle(int style)
public void setStyle(java.lang.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()