Class MeasureEvent
java.lang.Object
org.gvsig.fmap.mapcontrol.tools.Events.MeasureEvent
MeasureEvent is used to notify the selection of a polyline.
Stores the information about the 2D vertexes and the
GeneralPathX between them.
- Author:
- Vicente Caballero Navarro
-
Constructor Summary
ConstructorsConstructorDescriptionMeasureEvent(Double[] x, Double[] y, MouseEvent e) Creates a newMeasureEventwith all necessary data. -
Method Summary
Modifier and TypeMethodDescriptionorg.gvsig.fmap.geom.Geometryorg.gvsig.fmap.geom.Geometryorg.gvsig.fmap.geom.GeometrygetEvent()Gets the event that has been the cause of creating this one.org.gvsig.fmap.geom.primitive.GeneralPathXgetGP()Gets theGeneralPathXof the measurement.org.gvsig.fmap.geom.GeometryDouble[]getXs()Gets a vector with the X coordinates.Double[]getYs()Gets a vector with the Y coordinates.voidsetGP(org.gvsig.fmap.geom.primitive.GeneralPathX gp) Sets theGeneralPathXof the measurement.
-
Constructor Details
-
MeasureEvent
Creates a new
MeasureEventwith 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.
- Parameters:
x- vector with the X coordinatesy- vector with the Y coordinatese- event that has been the cause of creating this one
-
-
Method Details
-
getGP
public org.gvsig.fmap.geom.primitive.GeneralPathX getGP()Gets the
GeneralPathXof the measurement.- Returns:
- geometric path constructed from straight lines, and quadratic and cubic (Bézier) curves
- See Also:
-
setGP
public void setGP(org.gvsig.fmap.geom.primitive.GeneralPathX gp) Sets the
GeneralPathXof the measurement.- Parameters:
gP- geometric path constructed from straight lines, and quadratic and cubic (Bézier) curves- See Also:
-
getXs
Gets a vector with the X coordinates.
- Returns:
- vector with the X coordinates
-
getYs
Gets a vector with the Y coordinates.
- Returns:
- vector with the Y coordinates
-
getEvent
Gets the event that has been the cause of creating this one.
- Returns:
- mouse event that has been the cause of creating this one
-
getCircle
public org.gvsig.fmap.geom.Geometry getCircle() -
getCircumference
public org.gvsig.fmap.geom.Geometry getCircumference() -
getEllipse
public org.gvsig.fmap.geom.Geometry getEllipse() -
getPeriEllipse
public org.gvsig.fmap.geom.Geometry getPeriEllipse()
-