|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gvsig.fmap.mapcontrol.tools.Events.MeasureEvent
public class MeasureEvent
MeasureEvent is used to notify the selection of a polyline.
Stores the information about the 2D vertexes and the GeneralPathX
between them.
| Constructor Summary | |
|---|---|
MeasureEvent(Double[] x,
Double[] y,
MouseEvent e)
Creates a new MeasureEvent with all necessary data. |
|
| Method Summary | |
|---|---|
MouseEvent |
getEvent()
Gets the event that has been the cause of creating this one. |
org.gvsig.fmap.geom.primitive.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(org.gvsig.fmap.geom.primitive.GeneralPathX gp)
Sets the GeneralPathX of the measurement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 one| Method Detail |
|---|
public org.gvsig.fmap.geom.primitive.GeneralPathX getGP()
Gets the GeneralPathX of the measurement.
GeneralPathXpublic void setGP(org.gvsig.fmap.geom.primitive.GeneralPathX gp)
Sets the GeneralPathX of the measurement.
gP - geometric path constructed from straight lines, and quadratic and cubic (Bézier) curvesGeneralPathXpublic 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||