org.esa.beam.visat.toolviews.placemark
Class PlacemarkDialog

java.lang.Object
  extended by org.esa.beam.framework.ui.AbstractDialog
      extended by org.esa.beam.framework.ui.ModalDialog
          extended by org.esa.beam.visat.toolviews.placemark.PlacemarkDialog

public class PlacemarkDialog
extends ModalDialog

A dialog used to create new placemarks or edit existing placemarks.


Field Summary
 
Fields inherited from class org.esa.beam.framework.ui.ModalDialog
ID_OK_APPLY_CANCEL, ID_OK_APPLY_CANCEL_HELP, ID_OK_CANCEL, ID_OK_CANCEL_HELP, ID_YES_NO, ID_YES_NO_HELP
 
Fields inherited from class org.esa.beam.framework.ui.AbstractDialog
ID_APPLY, ID_CANCEL, ID_CLOSE, ID_HELP, ID_NO, ID_OK, ID_OTHER, ID_RESET, ID_YES
 
Constructor Summary
PlacemarkDialog(Window parent, Product product, PlacemarkDescriptor placemarkDescriptor, boolean switchGeoAndPixelPositionsEditable)
           
 
Method Summary
 String getDescription()
           
 GeoPos getGeoPos()
           
 String getLabel()
           
 float getLat()
           
 float getLon()
           
 String getName()
           
 PixelPos getPixelPos()
           
 float getPixelX()
           
 float getPixelY()
           
 Product getProduct()
           
 String getStyleCss()
           
static void main(String[] args)
           
protected  void onOK()
          Called if the "OK" button has been clicked.
 void setDescription(String description)
           
 void setGeoPos(GeoPos geoPos)
           
 void setLabel(String label)
           
 void setLat(float lat)
           
 void setLon(float lon)
           
 void setName(String name)
           
 void setPixelPos(PixelPos pixelPos)
           
 void setPixelX(float pixelX)
           
 void setPixelY(float pixelY)
           
static boolean showEditPlacemarkDialog(Window parent, Product product, Placemark placemark, PlacemarkDescriptor placemarkDescriptor)
          Shows a dialog to edit the properties of an placemark.
 
Methods inherited from class org.esa.beam.framework.ui.ModalDialog
cancelDialog, close
 
Methods inherited from class org.esa.beam.framework.ui.AbstractDialog
center, collectButtons, getButton, getButtonID, getButtonMask, getContent, getHelpID, getJDialog, getParent, getQualifiedPropertyName, getTitle, hide, onApply, onCancel, onClose, onHelp, onNo, onOther, onReset, onYes, registerButton, setButtonID, setContent, setContent, setHelpID, setTitle, show, showErrorDialog, showInformationDialog, showWarningDialog, verifyUserInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlacemarkDialog

public PlacemarkDialog(Window parent,
                       Product product,
                       PlacemarkDescriptor placemarkDescriptor,
                       boolean switchGeoAndPixelPositionsEditable)
Method Detail

getProduct

public Product getProduct()

onOK

protected void onOK()
Description copied from class: AbstractDialog
Called if the "OK" button has been clicked. The default implementation calls AbstractDialog.hide(). Clients should override this method to implement meaningful behaviour.

Overrides:
onOK in class AbstractDialog

getName

public String getName()

setName

public void setName(String name)

getLabel

public String getLabel()

setLabel

public void setLabel(String label)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getStyleCss

public String getStyleCss()

getPixelX

public float getPixelX()

setPixelX

public void setPixelX(float pixelX)

getPixelY

public float getPixelY()

setPixelY

public void setPixelY(float pixelY)

getLat

public float getLat()

setLat

public void setLat(float lat)

getLon

public float getLon()

setLon

public void setLon(float lon)

getGeoPos

public GeoPos getGeoPos()

setGeoPos

public void setGeoPos(GeoPos geoPos)

getPixelPos

public PixelPos getPixelPos()

setPixelPos

public void setPixelPos(PixelPos pixelPos)

showEditPlacemarkDialog

public static boolean showEditPlacemarkDialog(Window parent,
                                              Product product,
                                              Placemark placemark,
                                              PlacemarkDescriptor placemarkDescriptor)
Shows a dialog to edit the properties of an placemark. If the placemark does not belong to a product it will be added after editing.

Parameters:
parent - the parent window fo the dialog
product - the product where the placemark is already contained or where it will be added
placemark - the placemark to edit
placemarkDescriptor - the descriptor of the placemark
Returns:
true if editing was successful, otherwise false.

main

public static void main(String[] args)
                 throws org.opengis.referencing.operation.TransformException,
                        org.opengis.referencing.FactoryException
Throws:
org.opengis.referencing.operation.TransformException
org.opengis.referencing.FactoryException


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.