ilog.views.maps.beans.editor
Class IlvPickCoordinateEvent

java.lang.Object
  extended by java.util.EventObject
      extended by ilog.views.maps.beans.editor.IlvPickCoordinateEvent
All Implemented Interfaces:
Serializable

public class IlvPickCoordinateEvent
extends EventObject

This event will be generated by picking on the map.

Since:
JViews 7.5
See Also:
IlvCoordinatePanelFactory.createCoordPointInputPanel(IlvManagerView, ilog.views.maps.IlvCoordinateFormatter), IlvPickCoordinateListener, Serialized Form

Nested Class Summary
static class IlvPickCoordinateEvent.CoordType
          Class used to store a type of coordinate and its specific conversion method.
static class IlvPickCoordinateEvent.PickType
          Type of picking required.
 
Field Summary
static IlvPickCoordinateEvent.CoordType LATLON
          Screen to Lat/Lon coordinate transformation.
static IlvPickCoordinateEvent.PickType PICK_AREA
          User has or will have to pick an area on the map.
static IlvPickCoordinateEvent.PickType PICK_CANCELED
          Pick has been canceled.
static IlvPickCoordinateEvent.PickType PICK_POINT
          User has or will have to pick a point on the map.
static IlvPickCoordinateEvent.CoordType SCREEN
          Screen to Screen coordinate transformation.
static IlvPickCoordinateEvent.CoordType VIEW
          Screen to View (manager coordinates) coordinate transformation.
 
Fields inherited from class java.util.EventObject
source
 
Method Summary
 IlvManagerView getContext()
          Returns the context provided for this event.
 double getHeight(IlvPickCoordinateEvent.CoordType coordType)
          Returns the height of this event in the specified coordinate type.
 IlvPickCoordinateEvent.PickType getType()
          Returns the type of this event.
 double getWidth(IlvPickCoordinateEvent.CoordType coordType)
          Returns the width of this event in the specified coordinate type.
 double getX1(IlvPickCoordinateEvent.CoordType coordType)
          Returns the x coordinate of first point of this event in the specified coordinate type.
 double getX2(IlvPickCoordinateEvent.CoordType coordType)
          Returns the x coordinate of last point of this event in the specified coordinate type.
 double getY1(IlvPickCoordinateEvent.CoordType coordType)
          Returns the y coordinate of first point of this event in the specified coordinate type.
 double getY2(IlvPickCoordinateEvent.CoordType coordType)
          Returns the y coordinate of last point of this event in the specified coordinate type.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SCREEN

public static final IlvPickCoordinateEvent.CoordType SCREEN
Screen to Screen coordinate transformation.


VIEW

public static final IlvPickCoordinateEvent.CoordType VIEW
Screen to View (manager coordinates) coordinate transformation.


LATLON

public static final IlvPickCoordinateEvent.CoordType LATLON
Screen to Lat/Lon coordinate transformation.


PICK_CANCELED

public static final IlvPickCoordinateEvent.PickType PICK_CANCELED
Pick has been canceled.


PICK_POINT

public static final IlvPickCoordinateEvent.PickType PICK_POINT
User has or will have to pick a point on the map.


PICK_AREA

public static final IlvPickCoordinateEvent.PickType PICK_AREA
User has or will have to pick an area on the map.

Method Detail

getContext

public IlvManagerView getContext()
Returns the context provided for this event.

Returns:
the context of this event.

getType

public IlvPickCoordinateEvent.PickType getType()
Returns the type of this event.

Returns:
the type of event.

getWidth

public double getWidth(IlvPickCoordinateEvent.CoordType coordType)
Returns the width of this event in the specified coordinate type.

Parameters:
coordType - type of system used.
Returns:
the difference between X1 and X2, in the selected CoordType system.

getHeight

public double getHeight(IlvPickCoordinateEvent.CoordType coordType)
Returns the height of this event in the specified coordinate type.

Parameters:
coordType - type of system used.
Returns:
the difference between Y1 and Y2, in the selected CoordType system.

getX1

public double getX1(IlvPickCoordinateEvent.CoordType coordType)
Returns the x coordinate of first point of this event in the specified coordinate type.

Parameters:
coordType - type of system used.
Returns:
the x of first point in the specified CoordType system.
See Also:
IlvPickCoordinateEvent.CoordType.convertFromScreen(IlvManagerView, double, double, IlvPoint)

getY1

public double getY1(IlvPickCoordinateEvent.CoordType coordType)
Returns the y coordinate of first point of this event in the specified coordinate type.

Parameters:
coordType - type of system used.
Returns:
the y of first point in the specified CoordType system.
See Also:
IlvPickCoordinateEvent.CoordType.convertFromScreen(IlvManagerView, double, double, IlvPoint)

getX2

public double getX2(IlvPickCoordinateEvent.CoordType coordType)
Returns the x coordinate of last point of this event in the specified coordinate type.

Parameters:
coordType - type of system used.
Returns:
the x of second point in the specified CoordType system.
See Also:
IlvPickCoordinateEvent.CoordType.convertFromScreen(IlvManagerView, double, double, IlvPoint)

getY2

public double getY2(IlvPickCoordinateEvent.CoordType coordType)
Returns the y coordinate of last point of this event in the specified coordinate type.

Parameters:
coordType - type of system used.
Returns:
the y of second point in the specified CoordType system.
See Also:
IlvPickCoordinateEvent.CoordType.convertFromScreen(IlvManagerView, double, double, IlvPoint)


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.