ij.gui
Class Arrow
java.lang.Object
ij.gui.Roi
ij.gui.Line
ij.gui.Arrow
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class Arrow
- extends Line
This is an Roi subclass for creating and displaying arrows.
- See Also:
- Serialized Form
Fields inherited from class ij.gui.Line |
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, imp, instanceColor, LINE, lineWidth, mag, MOVING, MOVING_HANDLE, name, 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 |
Arrow(double ox1,
double oy1,
double ox2,
double oy2)
|
Arrow(int sx,
int sy,
ImagePlus imp)
|
Methods inherited from class ij.gui.Line |
contains, getBounds, getLength, getPixels, getPolygon, getRawLength, getWidth, grow, isHandle, mouseDownInHandle, moveHandle, nudgeCorner, setStrokeWidth, setWidth |
Methods inherited from class ij.gui.Roi |
abortPaste, clone, copyAttributes, drawOverlay, drawPixels, endPaste, equals, getAngle, getBoundingRect, getColor, getConvexHull, getCurrentPasteMode, getDefaultFillColor, getFeretsDiameter, getFeretValues, getFillColor, getFloatPolygon, getImageID, getMask, getName, getPasteMode, getRoundRectArcSize, getScaledStroke, getState, getStroke, getStrokeColor, getStrokeWidth, getType, getTypeAsString, handleMouseDown, handleMouseDrag, handleMouseUp, isArea, isLine, isVisible, nudge, setColor, setDefaultFillColor, setFillColor, setImage, setInstanceColor, setLineWidth, setLocation, setName, setNonScalable, setPasteMode, setRoundRectArcSize, setStroke, setStrokeColor, showStatus, startPaste, toString, update, updateClipRect, updateWideLine |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
STYLE_KEY
public static final java.lang.String STYLE_KEY
- See Also:
- Constant Field Values
WIDTH_KEY
public static final java.lang.String WIDTH_KEY
- See Also:
- Constant Field Values
SIZE_KEY
public static final java.lang.String SIZE_KEY
- See Also:
- Constant Field Values
DOUBLE_HEADED_KEY
public static final java.lang.String DOUBLE_HEADED_KEY
- See Also:
- Constant Field Values
FILLED
public static final int FILLED
- See Also:
- Constant Field Values
NOTCHED
public static final int NOTCHED
- See Also:
- Constant Field Values
OPEN
public static final int OPEN
- See Also:
- Constant Field Values
styles
public static final java.lang.String[] styles
Arrow
public Arrow(double ox1,
double oy1,
double ox2,
double oy2)
Arrow
public Arrow(int sx,
int sy,
ImagePlus imp)
draw
public void draw(java.awt.Graphics g)
- Draws this arrow on the image.
- Overrides:
draw
in class Line
drawPixels
public void drawPixels(ImageProcessor ip)
- Description copied from class:
Roi
- Draws the selection outline on the specified ImageProcessor.
- Overrides:
drawPixels
in class Line
- See Also:
ImageProcessor.setColor(java.awt.Color)
,
ImageProcessor.setLineWidth(int)
clipRectMargin
protected int clipRectMargin()
- Overrides:
clipRectMargin
in class Line
isDrawingTool
public boolean isDrawingTool()
- Description copied from class:
Roi
- Returns 'true' if this is an ROI primarily used from drawing
(e.g., Rounded Rectangle, TextRoi or Arrow).
- Overrides:
isDrawingTool
in class Roi
setDefaultWidth
public static void setDefaultWidth(double width)
getDefaultWidth
public static double getDefaultWidth()
setStyle
public void setStyle(int style)
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()