Package com.kheops.jmap.client.views
Class ViewRendererStateChangedEvent
java.lang.Object
java.util.EventObject
com.kheops.jmap.client.views.ViewRendererStateChangedEvent
- All Implemented Interfaces:
Serializable
This event is fired when the state of the renderer is changed. The state is changed when a
zoom or pan operation is performed on it.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionViewRendererStateChangedEvent
(ViewRenderer viewRenderer, double scale, double zoom, OrientedRectangle region) Constructs a ViewRendererChangedEvent -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
ViewRendererStateChangedEvent
public ViewRendererStateChangedEvent(ViewRenderer viewRenderer, double scale, double zoom, OrientedRectangle region) Constructs a ViewRendererChangedEvent- Parameters:
viewRenderer
- the view renderer which changed.scale
- the scalezoom
- the zoom levelregion
- the rectangular region
-
-
Method Details
-
getScale
public double getScale()Gets the scale- Returns:
- scale
-
getZoom
public double getZoom()Gets the zoom level- Returns:
- zoom
-
getRegion
Gets the region- Returns:
- region the retangular section that is displayed
-
getViewRenderer
-