public class IlvCoordinatePanelFactory extends Object
// 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);
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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. |
public static IlvCoordinatePanelFactory.CoordPointInputPanel createCoordPointInputPanel(IlvManagerView view, IlvCoordinateFormatter system)
lat/lon
coordinates, according to the system selected.view
- The view to use if the "pick coordinate" is required. You can pass
null
.system
- The coordinate system to use.public static IlvCoordinatePanelFactory.CoordRectangleInputPanel createCoordRectangleInputPanel(IlvManagerView view, IlvCoordinateFormatter system)
lat/lon
coordinates, according to the system selected.view
- The view to use if the "pick coordinate" is required. You can pass
null
.system
- The coordinate system to use© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.