|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gvsig.fmap.mapcontrol.tools.Events.EnvelopeEvent
public class EnvelopeEvent
RectangleEvent is used to notify a selection of a rectangular area in a view, with the mouse.
| Constructor Summary | |
|---|---|
EnvelopeEvent(org.gvsig.fmap.geom.primitive.Envelope worldRect,
java.awt.event.MouseEvent e,
java.awt.geom.Rectangle2D pixelRect)
Creates a new RectangleEvent with all necessary data. |
|
| Method Summary | |
|---|---|
java.awt.event.MouseEvent |
getEvent()
Gets the event that has been the cause of creating this one. |
java.awt.geom.Rectangle2D |
getPixelCoordRect()
Gets the rectangle selected in pixel coordinates. |
org.gvsig.fmap.geom.primitive.Envelope |
getWorldCoordRect()
Gets the rectangle selected in world coordinates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnvelopeEvent(org.gvsig.fmap.geom.primitive.Envelope worldRect,
java.awt.event.MouseEvent e,
java.awt.geom.Rectangle2D pixelRect)
Creates a new RectangleEvent with all necessary data.
worldRect - rectangle selected in world coordinatespixelRect - rectangle selected in view (pixel) coordinatese - mouse event that has been the cause of creating this event| Method Detail |
|---|
public java.awt.event.MouseEvent getEvent()
Gets the event that has been the cause of creating this one.
public java.awt.geom.Rectangle2D getPixelCoordRect()
Gets the rectangle selected in pixel coordinates.
This is useful for doing some verifications, like if rectangle is thinner than 3 pixels of width and height, keeping the zoom instead of reducing it.
public org.gvsig.fmap.geom.primitive.Envelope getWorldCoordRect()
Gets the rectangle selected in world coordinates.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||