public class MeasureEvent
extends java.lang.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(java.lang.Double[] x,
java.lang.Double[] y,
java.awt.event.MouseEvent e)
Creates a new
MeasureEvent with all necessary data. |
Modifier and Type | Method and Description |
---|---|
Geometry |
getCircle() |
Geometry |
getCircumference() |
Geometry |
getEllipse() |
java.awt.event.MouseEvent |
getEvent()
Gets the event that has been the cause of creating this one.
|
GeneralPathX |
getGP()
Gets the
GeneralPathX of the measurement. |
Geometry |
getPeriEllipse() |
java.lang.Double[] |
getXs()
Gets a vector with the X coordinates.
|
java.lang.Double[] |
getYs()
Gets a vector with the Y coordinates.
|
void |
setGP(GeneralPathX gp)
Sets the
GeneralPathX of the measurement. |
public MeasureEvent(java.lang.Double[] x, java.lang.Double[] y, java.awt.event.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 java.lang.Double[] getXs()
Gets a vector with the X coordinates.
public java.lang.Double[] getYs()
Gets a vector with the Y coordinates.
public java.awt.event.MouseEvent getEvent()
Gets the event that has been the cause of creating this one.
public Geometry getCircle()
public Geometry getCircumference()
public Geometry getEllipse()
public Geometry getPeriEllipse()