public class MeasureEvent extends Object
MeasureEvent
is used to notify the selection of a polyline.
Stores the information about the 2D vertexes and the GeneralPathX
between them.
Constructor and Description |
---|
MeasureEvent(Double[] x,
Double[] y,
MouseEvent e)
Creates a new
MeasureEvent with all necessary data. |
Modifier and Type | Method and Description |
---|---|
MouseEvent |
getEvent()
Gets the event that has been the cause of creating this one.
|
GeneralPathX |
getGP()
Gets the
GeneralPathX of the measurement. |
Double[] |
getXs()
Gets a vector with the X coordinates.
|
Double[] |
getYs()
Gets a vector with the Y coordinates.
|
void |
setGP(GeneralPathX gp)
Sets the
GeneralPathX of the measurement. |
public MeasureEvent(Double[] x, Double[] y, MouseEvent e)
Creates a new MeasureEvent
with all necessary data.
The general path is calculated according the enclosed regions of the path alternate between interior and exterior areas are traversed from the outside of the path towards a point inside the region.
x
- vector with the X coordinatesy
- vector with the Y coordinatese
- event that has been the cause of creating this onepublic GeneralPathX getGP()
Gets the GeneralPathX
of the measurement.
GeneralPathX
public void setGP(GeneralPathX gp)
Sets the GeneralPathX
of the measurement.
gP
- geometric path constructed from straight lines, and quadratic and cubic (Bézier) curvesGeneralPathX
public Double[] getXs()
Gets a vector with the X coordinates.
public Double[] getYs()
Gets a vector with the Y coordinates.
public MouseEvent getEvent()
Gets the event that has been the cause of creating this one.