|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.beans.editor.IlvCoordinatePanelFactory
public class IlvCoordinatePanelFactory
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);
| 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 |
|---|
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
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||