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() |
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.
|
close
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
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 float getPixelX()
public void setPixelX(float pixelX)
public float getPixelY()
public void setPixelY(float pixelY)
public float getLat()
public void setLat(float lat)
public float getLon()
public void setLon(float 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 © 2002–2014 Brockmann Consult GmbH. All rights reserved.