public static class ImagePanel.LineInfo
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
LineInfo(int x1,
int y1,
int x2,
int y2)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getX1()
Returns (zero based) x-coordinate of the start pixel, counted from the left.
|
int |
getX2()
Returns (zero based) x-coordinate of the end pixel, counted from the left.
|
int |
getY1()
Returns (zero based) y-coordinate of the start pixel, counted from the top.
|
int |
getY2()
Returns (zero based) y-coordinate of the end pixel, counted from the top.
|
public LineInfo(int x1, int y1, int x2, int y2)
x1
- x-coordinate of start pixel.y1
- y-coordinate of start pixel.x2
- x-coordinate of end pixel.y2
- y-coordinate of end pixel.public int getX1()
ImageEvent
, the returned coordinate might have to be backtransformed into the original
image coordinate system using e.g. ImageTools.backTransformCoordinate(ImageEvent, Point)
.public int getY1()
ImageEvent
, the returned coordinate might have to be backtransformed into the original
image coordinate system using e.g. ImageTools.backTransformCoordinate(ImageEvent, Point)
.public int getX2()
ImageEvent
, the returned coordinate might have to be backtransformed into the original
image coordinate system using e.g. ImageTools.backTransformCoordinate(ImageEvent, Point)
.public int getY2()
ImageEvent
, the returned coordinate might have to be backtransformed into the original
image coordinate system using e.g. ImageTools.backTransformCoordinate(ImageEvent, Point)
.