public class PlacemarkDialog extends ModalDialog
ID_OK_APPLY_CANCEL, ID_OK_APPLY_CANCEL_HELP, ID_OK_CANCEL, ID_OK_CANCEL_HELP, ID_YES_NO, ID_YES_NO_HELP
Constructor and Description |
---|
PlacemarkDialog(Window parent,
Product product,
PlacemarkDescriptor placemarkDescriptor,
boolean switchGeoAndPixelPositionsEditable) |
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
GeoPos |
getGeoPos() |
String |
getLabel() |
double |
getLat() |
double |
getLon() |
String |
getName() |
PixelPos |
getPixelPos() |
double |
getPixelX() |
double |
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(double lat) |
void |
setLon(double lon) |
void |
setName(String name) |
void |
setPixelPos(PixelPos pixelPos) |
void |
setPixelX(double pixelX) |
void |
setPixelY(double pixelY) |
static boolean |
showEditPlacemarkDialog(Window parent,
Product product,
Placemark placemark,
PlacemarkDescriptor placemarkDescriptor)
Shows a dialog to edit the properties of an placemark.
|
close
center, collectButtons, getButton, getButtonID, getButtonMask, getButtonPanel, 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
public PlacemarkDialog(Window parent, Product product, PlacemarkDescriptor placemarkDescriptor, boolean switchGeoAndPixelPositionsEditable)
public Product getProduct()
protected void onOK()
AbstractDialog
AbstractDialog.hide()
.
Clients should override this method to implement meaningful behaviour.onOK
in class AbstractDialog
public String getName()
public void setName(String name)
public String getLabel()
public void setLabel(String label)
public String getDescription()
public void setDescription(String description)
public String getStyleCss()
public double getPixelX()
public void setPixelX(double pixelX)
public double getPixelY()
public void setPixelY(double pixelY)
public double getLat()
public void setLat(double lat)
public double getLon()
public void setLon(double lon)
public GeoPos getGeoPos()
public void setGeoPos(GeoPos geoPos)
public PixelPos getPixelPos()
public void setPixelPos(PixelPos pixelPos)
public static boolean showEditPlacemarkDialog(Window parent, Product product, Placemark placemark, PlacemarkDescriptor placemarkDescriptor)
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 placemarktrue
if editing was successful, otherwise false
.public static void main(String[] args) throws org.opengis.referencing.operation.TransformException, org.opengis.referencing.FactoryException
org.opengis.referencing.operation.TransformException
org.opengis.referencing.FactoryException
Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.