Package ij.gui
Class Arrow
java.lang.Object
ij.gui.Roi
ij.gui.Line
ij.gui.Arrow
- All Implemented Interfaces:
Serializable
,Cloneable
This is an Roi subclass for creating and displaying arrows.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final String
static final int
static final int
static final int
static final int
static final String
static final String
static final String
static final String[]
static final String
Fields inherited from class ij.gui.Line
startxd, startyd, x1, x1d, x1R, x2, x2d, x2R, y1, y1d, y1R, y2, y2d, y2R
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
boolean
contains
(int x, int y) void
Draws this arrow on the image.void
Draws the selection outline on the specified ImageProcessor.Return the bounding rectangle of this arrow.static boolean
static double
static boolean
static int
static double
boolean
double
getMask()
Always returns null for rectangular Roi'sboolean
int
getStyle()
protected void
handleMouseDown
(int sx, int sy) boolean
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
Methods inherited from class ij.gui.Line
drawLine, getAngle, getDrawOffset, getFloatPoints, getFloatPolygon, getLength, getPixels, getPoints, getPolygon, getRawLength, getWidth, grow, handleMouseUp, isHandle, mouseDownInHandle, mouseMoved, moveHandle, nudgeCorner, setDrawOffset, setLocation, setStrokeWidth, setWidth, subPixelResolution
Methods inherited from class ij.gui.Roi
abortPaste, addRoiListener, clone, copyAttributes, drawOverlay, drawPixels, enableSubPixelResolution, endPaste, equals, getAngle, getBoundingRect, getColor, getContourCentroid, 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, getRotationCenter, getRoundRectArcSize, getScaledStroke, getState, getStatistics, getStroke, getStrokeColor, getStrokeWidth, getTPosition, getType, getTypeAsString, getXBase, getYBase, getZPosition, handleMouseDrag, isActiveOverlayRoi, isArea, isCursor, isLine, isVisible, lineCircleIntersection, mouseDragged, mouseReleased, notifyListeners, nudge, removeRoiListener, screenX, screenXD, screenY, screenYD, setColor, setCornerDiameter, setDefaultFillColor, setFillColor, setIgnoreClipRect, setImage, setInstanceColor, setIsCursor, setLineWidth, setLocation, setName, setNonScalable, setPasteMode, setPosition, setPosition, setProperties, setProperty, setPrototypeOverlay, setRotationCenter, setRoundRectArcSize, setStroke, setStrokeColor, setStrokeWidth, showStatus, startPaste, temporarilyHide, toFloat, toInt, toInt, toIntR, toString, update, updateClipRect, updateWideLine
-
Field Details
-
STYLE_KEY
- See Also:
-
WIDTH_KEY
- See Also:
-
SIZE_KEY
- See Also:
-
DOUBLE_HEADED_KEY
- See Also:
-
OUTLINE_KEY
- See Also:
-
FILLED
public static final int FILLED- See Also:
-
NOTCHED
public static final int NOTCHED- See Also:
-
OPEN
public static final int OPEN- See Also:
-
HEADLESS
public static final int HEADLESS- See Also:
-
BAR
public static final int BAR- See Also:
-
styles
-
-
Constructor Details
-
Arrow
public Arrow(double ox1, double oy1, double ox2, double oy2) -
Arrow
-
-
Method Details
-
draw
Draws this arrow on the image. -
getMask
Description copied from class:Roi
Always returns null for rectangular Roi's -
drawPixels
Description copied from class:Roi
Draws the selection outline on the specified ImageProcessor.- Overrides:
drawPixels
in classLine
- See Also:
-
contains
public boolean contains(int x, int y) -
getBounds
Return the bounding rectangle of this arrow. -
handleMouseDown
protected void handleMouseDown(int sx, int sy) - Overrides:
handleMouseDown
in classLine
-
clipRectMargin
protected int clipRectMargin()- Overrides:
clipRectMargin
in classLine
-
isDrawingTool
public boolean isDrawingTool()Description copied from class:Roi
Returns 'true' if this is an ROI primarily used from drawing (e.g., TextRoi or Arrow).- Overrides:
isDrawingTool
in classRoi
-
setDefaultWidth
public static void setDefaultWidth(double width) -
getDefaultWidth
public static double getDefaultWidth() -
setStyle
public void setStyle(int style) -
setStyle
-
getStyle
public int getStyle() -
setDefaultStyle
public static void setDefaultStyle(int style) -
getDefaultStyle
public static int getDefaultStyle() -
setHeadSize
public void setHeadSize(double headSize) -
getHeadSize
public double getHeadSize() -
setDefaultHeadSize
public static void setDefaultHeadSize(double size) -
getDefaultHeadSize
public static double getDefaultHeadSize() -
setDoubleHeaded
public void setDoubleHeaded(boolean b) -
getDoubleHeaded
public boolean getDoubleHeaded() -
setDefaultDoubleHeaded
public static void setDefaultDoubleHeaded(boolean b) -
getDefaultDoubleHeaded
public static boolean getDefaultDoubleHeaded() -
setOutline
public void setOutline(boolean b) -
getOutline
public boolean getOutline() -
setDefaultOutline
public static void setDefaultOutline(boolean b) -
getDefaultOutline
public static boolean getDefaultOutline()
-