public class GraphicsElements extends Object
Constructor and Description |
---|
GraphicsElements() |
Modifier and Type | Method and Description |
---|---|
static PolygonRoi |
getCircle(double x,
double y,
Color color,
double radius)
Generate filled circle.
|
static ij.process.FloatPolygon |
getCircle(Point2d base,
float radius)
Return circle.
|
static PolygonRoi |
getLine(float[] x,
float[] y,
int npoints,
Color color)
Generate line.
|
static PolygonRoi |
getLine(Polygon points,
Color color)
Generate line.
|
static PolygonRoi |
getLine(Polygon points,
Color color,
int frame)
Generate line on frame f.
|
static PolygonRoi |
getLine(Polygon points,
int npoints,
Color color)
Generate line.
|
static PointRoi |
getPoint(double x,
double y,
Color color)
Generate point roi.
|
static PointRoi |
getPoint(int[] x,
int[] y,
Color color)
Generate points roi.
|
static PointRoi |
getPoint(Polygon poly,
Color color)
Generate points roi.
|
static ij.process.FloatPolygon |
plotArrow(Vector2d direction,
Point2d base,
float length,
float baselength)
Create an arrow.
|
public static ij.process.FloatPolygon plotArrow(Vector2d direction, Point2d base, float length, float baselength)
Warning
input parameters can be modified
direction
- Directional vectorbase
- base pointlength
- Length of arrowbaselength
- length of base as percentage of \a lengthpublic static ij.process.FloatPolygon getCircle(Point2d base, float radius)
base
- centerradius
- radiuspublic static PolygonRoi getCircle(double x, double y, Color color, double radius)
x
- x coordinate of centery
- y coordinate of centercolor
- colorradius
- radiuspublic static PointRoi getPoint(double x, double y, Color color)
x
- coordinatey
- coordinatecolor
- colorpublic static PointRoi getPoint(int[] x, int[] y, Color color)
x
- coordinatey
- coordinatecolor
- colorpublic static PointRoi getPoint(Polygon poly, Color color)
poly
- polygoncolor
- colorpublic static PolygonRoi getLine(Polygon points, int npoints, Color color)
points
- Coordinates of line defined in Polygon.npoints
- Number of points in points to use.color
- Color of the linepublic static PolygonRoi getLine(Polygon points, Color color)
points
- Coordinates of line defined in Polygon.color
- Color of the linepublic static PolygonRoi getLine(Polygon points, Color color, int frame)
points
- Coordinates of line defined in Polygon.color
- Color of the lineframe
- Frame to set ROI at.public static PolygonRoi getLine(float[] x, float[] y, int npoints, Color color)
x
- Array with x coordinatesy
- Array wit y coordinates.npoints
- Number of points to considercolor
- colorCopyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.