org.esa.beam.visat.toolviews.placemark
Class PlacemarkDialog
java.lang.Object
org.esa.beam.framework.ui.AbstractDialog
org.esa.beam.framework.ui.ModalDialog
org.esa.beam.visat.toolviews.placemark.PlacemarkDialog
public class PlacemarkDialog
- extends ModalDialog
A dialog used to create new placemarks or edit existing placemarks.
| 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 |
PlacemarkDialog
public PlacemarkDialog(Window parent,
Product product,
PlacemarkDescriptor placemarkDescriptor,
boolean switchGeoAndPixelPositionsEditable)
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 dialogproduct - the product where the placemark is already contained or where it will be addedplacemark - the placemark to editplacemarkDescriptor - 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.