ilog.views.maps.beans.editor
Class IlvCoordinatePanelFactory

java.lang.Object
  extended by ilog.views.maps.beans.editor.IlvCoordinatePanelFactory

public class IlvCoordinatePanelFactory
extends Object

This class is a factory for coordinate input panels. Example of use:


 // Create the component.
 IlvCoordinatePanelFactory.CoordPointInputPanel jCoords;
 jCoords= IlvCoordinatePanelFactory.createCoordPointInputPanel(view,new IlvDecimalCoordinateFormatter());
 jCoords.addChangeListener(myActionListener);
 // To be invoked when coordinates change. 
 // Set the inital values shown in the component.
 jCoords.setLatLon(Math.toRadians(-12),Math.toRadians(20));
 jCoords.setLatLon(Math.toRadians(121),Math.toRadians(30)); 
 // Add the coordinate panel to the GUI panel. 
 panel.add(jCoords);
 

Since:
JViews 7.5

Nested Class Summary
static class IlvCoordinatePanelFactory.CoordPointInputPanel
          This class encapsulates one coordinate input panels to select a lat/lon point.
static class IlvCoordinatePanelFactory.CoordRectangleInputPanel
          This class encapsulates two coordinate input panels to select a lat/lon box.
 
Method Summary
static IlvCoordinatePanelFactory.CoordPointInputPanel createCoordPointInputPanel(IlvManagerView view, IlvCoordinateFormatter system)
          Creates a JPanel containing all the necessary GUI elements for managing the entry of lat/lon coordinates, according to the system selected.
static IlvCoordinatePanelFactory.CoordRectangleInputPanel createCoordRectangleInputPanel(IlvManagerView view, IlvCoordinateFormatter system)
          Creates a JPanel containing all the necessary GUI elements for managing the entry of a set of two lat/lon coordinates, according to the system selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createCoordPointInputPanel

public static IlvCoordinatePanelFactory.CoordPointInputPanel createCoordPointInputPanel(IlvManagerView view,
                                                                                        IlvCoordinateFormatter system)
Creates a JPanel containing all the necessary GUI elements for managing the entry of lat/lon coordinates, according to the system selected.

Parameters:
view - The view to use if the "pick coordinate" is required. You can pass null.
system - The coordinate system to use.
Returns:
A JPanel containing the adapted GUI.

createCoordRectangleInputPanel

public static IlvCoordinatePanelFactory.CoordRectangleInputPanel createCoordRectangleInputPanel(IlvManagerView view,
                                                                                                IlvCoordinateFormatter system)
Creates a JPanel containing all the necessary GUI elements for managing the entry of a set of two lat/lon coordinates, according to the system selected.

Parameters:
view - The view to use if the "pick coordinate" is required. You can pass null.
system - The coordinate system to use
Returns:
A JPanel containing the adapted GUI.


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