|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grelf.grip.PointList
public class PointList
Holds the data for points and lines which can be drawn in GlassPane. This may comprise a shape for measuring and some text. Has the methods for making measurements on any of the shapes and then invoking a MeasurementHandler to process them.
| Field Summary | |
|---|---|
protected int |
centreX
|
protected int |
centreY
|
| Constructor Summary | |
|---|---|
PointList()
Default constructor. |
|
PointList(MeasurementHandler mh)
|
|
PointList(PointList ps)
Copy constructor |
|
| Method Summary | |
|---|---|
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)
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)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int centreX
protected int centreY
| Constructor Detail |
|---|
public PointList(MeasurementHandler mh)
public PointList(PointList ps)
public PointList()
| Method Detail |
|---|
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)
public void measureRectangle(ImFrame imf,
java.awt.Point pt1,
java.awt.Point pt2)
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||