public class PointList
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
centreX |
protected int |
centreY |
Constructor and Description |
---|
PointList()
Default constructor.
|
PointList(MeasurementHandler mh) |
PointList(PointList ps)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.awt.Point pt)
Add a point to the list defining a shape.
|
void |
calibrate(ImFrame imf)
Calibrate an ImFrame by interacting with the user.
|
void |
clear()
Clear the list to start again.
|
java.awt.Point |
get(int i)
Get a point from the list defining a shape.
|
java.util.List<XYText> |
getLabels()
Get a reference to the list of displayable XYText labels (may be null).
|
MeasurementHandler |
getMeasurementHandler()
Get a reference to the MeasurementHandler associated with this PointList.
|
java.util.List<Measurement> |
getMeasurementList()
Get a reference to the current list of Measurements.
|
java.util.List<java.awt.Point> |
getPoints()
Get a reference to the list of points defining a measureable shape.
|
void |
measureArea(ImFrame imf)
Measure the shape over the given image, assuming it to be a closed curve.
|
void |
measureBlobLine(ImFrame imf)
Measure the straight line between the centres of two blobs.
|
void |
measureCurve(ImFrame imf)
Measure the shape over the given image, assuming it to be an open curve.
|
void |
measureLine(ImFrame imf)
Measure the shape over the given image, assuming it to be a straight
line.
|
void |
measurePoint(ImFrame imf)
Measure the shape over the given image, assuming it to be a single point
(ie, just one point in the list).
|
void |
measureRectangle(ImFrame imf,
DrawingMode mode)
Measure the shape over the given image, assuming it to be a rectangle
(there are only the two opposite corners in the list of points).
|
void |
measureRectangle(ImFrame imf,
java.awt.Point pt1,
java.awt.Point pt2,
DrawingMode mode)
Measure the rectangle defined by the two given points (as opposite
corners) over the given image.
|
void |
measureStarLine(ImFrame imf)
Measure the straight line between two stars in a StarChart.
|
void |
measureWhole(ImFrame imf)
Measure the whole rectangular area of the given image.
|
void |
setLabels(java.util.List<XYText> someLabels)
Set a reference to a list of XYText labels.
|
int |
size()
Get the number of points in the list defining a shape.
|
public PointList(MeasurementHandler mh)
public PointList(PointList ps)
public PointList()
public java.util.List<java.awt.Point> getPoints()
public void add(java.awt.Point pt)
public void clear()
public java.awt.Point get(int i)
public int size()
public java.util.List<XYText> getLabels()
public void setLabels(java.util.List<XYText> someLabels)
public MeasurementHandler getMeasurementHandler()
public java.util.List<Measurement> getMeasurementList()
public void calibrate(ImFrame imf)
public void measureArea(ImFrame imf)
public void measureWhole(ImFrame imf)
public void measureRectangle(ImFrame imf, DrawingMode mode)
public void measureRectangle(ImFrame imf, java.awt.Point pt1, java.awt.Point pt2, DrawingMode mode)
public void measureCurve(ImFrame imf)
public void measureLine(ImFrame imf)
public void measureBlobLine(ImFrame imf)
public void measureStarLine(ImFrame imf)
public void measurePoint(ImFrame imf)