public class DefinirDatum
extends javax.swing.JPanel
implements java.awt.event.ActionListener, java.awt.event.FocusListener, java.awt.event.ItemListener, java.awt.event.KeyListener
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static Logger |
logger |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
DefinirDatum() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
cleanData() |
double |
convert(double value,
java.lang.String measure) |
double |
convert2Degree(java.lang.String unit,
double value)
Convierte una valor en las unidades indicadas a grados sexagesimales según los factores
de conversión obtenidos de la base de datos de la EPSG.
|
double |
convert2Meters(java.lang.String unit,
double value) |
double |
convertFromDegree(java.lang.String unitSource,
java.lang.String unitTarget,
double value) |
double |
convertFromMeters(java.lang.String unitSource,
java.lang.String unitTarget,
double value) |
void |
fillData(CoordinateReferenceSystem crsGT) |
void |
fillData(ICrs crs) |
void |
fillData(ICrs crs,
boolean editing) |
void |
fillDatum(ICrs crs) |
void |
fillEllipsoid(ICrs crs) |
void |
fillPrimeMeridian(ICrs crs) |
void |
focusGained(java.awt.event.FocusEvent e) |
void |
focusLost(java.awt.event.FocusEvent e) |
java.lang.String |
getAngularUnit(int indice) |
javax.swing.JButton |
getBtnImportDatum()
Inicializa el botn Importar del datum
|
javax.swing.JButton |
getBtnImportElipsoide()
Inicializa el botn Importar del Elipsoide
|
javax.swing.JButton |
getBtnImportMeridian()
Inicializa el botn Importar del Meridiano
|
JComboBox |
getCbInvF()
Inicializa el Combo box con las unidades de Inverse Flat
|
JComboBox |
getCbLong()
Inicializa el Combo box con las unidades de Longitud
|
JComboBox |
getCbSemMay()
Inicializa el Combo box con las unidades de Semieje Mayor
|
JComboBox |
getCbSemMen()
Inicializa el Combo box con las unidades de Semieje Menor
|
ICrs |
getCrs() |
javax.swing.JLabel |
getLblCodigoCrs()
Inicializa el JLabel del Cdigo de Crs
|
javax.swing.JLabel |
getLblDatum()
Inicializa el JLabel Datum
|
javax.swing.JLabel |
getLblDefinir() |
javax.swing.JLabel |
getLblElipsoide()
Inicializa el JLabel Elipsoide
|
javax.swing.JLabel |
getLblInverseFlat() |
javax.swing.JLabel |
getLblLong()
Inicializa el JLabel Longitud
|
javax.swing.JLabel |
getLblMeridian()
Inicializa el JLabel Meridiano
|
javax.swing.JLabel |
getLblNombreCrs()
Inicializa el JLabel del Nombre del Crs
|
javax.swing.JLabel |
getLblSemiejeMayor() |
javax.swing.JLabel |
getLblSemiejeMenor() |
java.lang.String |
getLengthUnit(int indice) |
javax.swing.JRadioButton |
getRbA_B() |
javax.swing.JRadioButton |
getRbA_Inv() |
javax.swing.JTextField |
getTxtCodigoCrs()
Inicializa el cuadro de texto que contiene el cdigo del Crs definido por el usuario
|
javax.swing.JTextField |
getTxtDatum()
Inicializa el cuadro de texto que contiene el datum
|
javax.swing.JTextField |
getTxtElipsoide()
Inicializa el cuadro de texto que contiene el elipsoide
|
javax.swing.JTextField |
getTxtInvF()
Inicializa el cuadro de texto que contiene el Inverse Flat del Elipsoide
|
javax.swing.JTextField |
getTxtLong()
Inicializa el cuadro de texto que contiene el dato de longitud del
meridiano
|
javax.swing.JTextField |
getTxtMeridian()
Inicializa el cuadro de texto que contiene el meridiano
|
javax.swing.JTextField |
getTxtNombreCrs()
Inicializa el cuadro de texto que contiene el nombre del Crs
|
javax.swing.JTextField |
getTxtSemMay()
Inicializa el cuadro de texto que contiene el Semieje Mayor
del elipsoide
|
javax.swing.JTextField |
getTxtSemMen()
Inicializa el cuadro de texto que contiene el semieje
menor del elipsoide
|
void |
itemStateChanged(java.awt.event.ItemEvent e) |
void |
keyPressed(java.awt.event.KeyEvent e) |
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e) |
void |
setAngularUnit(java.util.ArrayList units) |
void |
setCrs(int code) |
void |
setLengthUnit(java.util.ArrayList units) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public javax.swing.JButton getBtnImportDatum()
public javax.swing.JButton getBtnImportElipsoide()
public javax.swing.JButton getBtnImportMeridian()
public JComboBox getCbInvF()
public JComboBox getCbLong()
public JComboBox getCbSemMay()
public JComboBox getCbSemMen()
public javax.swing.JLabel getLblDatum()
public javax.swing.JLabel getLblElipsoide()
public javax.swing.JLabel getLblLong()
public javax.swing.JLabel getLblMeridian()
public javax.swing.JLabel getLblCodigoCrs()
public javax.swing.JLabel getLblNombreCrs()
public javax.swing.JLabel getLblInverseFlat()
public javax.swing.JLabel getLblSemiejeMayor()
public javax.swing.JLabel getLblSemiejeMenor()
public javax.swing.JLabel getLblDefinir()
public javax.swing.JRadioButton getRbA_B()
public javax.swing.JRadioButton getRbA_Inv()
public javax.swing.JTextField getTxtDatum()
public javax.swing.JTextField getTxtElipsoide()
public javax.swing.JTextField getTxtInvF()
public javax.swing.JTextField getTxtLong()
public javax.swing.JTextField getTxtMeridian()
public javax.swing.JTextField getTxtSemMay()
public javax.swing.JTextField getTxtSemMen()
public javax.swing.JTextField getTxtCodigoCrs()
public javax.swing.JTextField getTxtNombreCrs()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void fillData(ICrs crs)
public void fillData(ICrs crs, boolean editing)
public void fillDatum(ICrs crs)
public void fillData(CoordinateReferenceSystem crsGT)
public void fillEllipsoid(ICrs crs)
public void fillPrimeMeridian(ICrs crs)
public void setCrs(int code)
public ICrs getCrs()
public void cleanData()
public double convert2Meters(java.lang.String unit, double value)
public double convert2Degree(java.lang.String unit, double value)
unit
- Unidad de entrada.value
- Valor a convertirpublic double convert(double value, java.lang.String measure) throws ConversionException
ConversionException
public double convertFromDegree(java.lang.String unitSource, java.lang.String unitTarget, double value)
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
public double convertFromMeters(java.lang.String unitSource, java.lang.String unitTarget, double value)
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void setLengthUnit(java.util.ArrayList units)
public void setAngularUnit(java.util.ArrayList units)
public java.lang.String getLengthUnit(int indice)
public java.lang.String getAngularUnit(int indice)
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener