public class DefinirDatum extends JPanel implements ActionListener, FocusListener, ItemListener, KeyListener
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static Logger |
logger |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
DefinirDatum() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
void |
cleanData() |
double |
convert(double value,
String measure) |
double |
convert2Degree(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(String unit,
double value) |
double |
convertFromDegree(String unitSource,
String unitTarget,
double value) |
double |
convertFromMeters(String unitSource,
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(FocusEvent e) |
void |
focusLost(FocusEvent e) |
String |
getAngularUnit(int indice) |
JButton |
getBtnImportDatum()
Inicializa el botn Importar del datum
|
JButton |
getBtnImportElipsoide()
Inicializa el botn Importar del Elipsoide
|
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() |
JLabel |
getLblCodigoCrs()
Inicializa el JLabel del Cdigo de Crs
|
JLabel |
getLblDatum()
Inicializa el JLabel Datum
|
JLabel |
getLblDefinir() |
JLabel |
getLblElipsoide()
Inicializa el JLabel Elipsoide
|
JLabel |
getLblInverseFlat() |
JLabel |
getLblLong()
Inicializa el JLabel Longitud
|
JLabel |
getLblMeridian()
Inicializa el JLabel Meridiano
|
JLabel |
getLblNombreCrs()
Inicializa el JLabel del Nombre del Crs
|
JLabel |
getLblSemiejeMayor() |
JLabel |
getLblSemiejeMenor() |
String |
getLengthUnit(int indice) |
JRadioButton |
getRbA_B() |
JRadioButton |
getRbA_Inv() |
JTextField |
getTxtCodigoCrs()
Inicializa el cuadro de texto que contiene el cdigo del Crs definido por el usuario
|
JTextField |
getTxtDatum()
Inicializa el cuadro de texto que contiene el datum
|
JTextField |
getTxtElipsoide()
Inicializa el cuadro de texto que contiene el elipsoide
|
JTextField |
getTxtInvF()
Inicializa el cuadro de texto que contiene el Inverse Flat del Elipsoide
|
JTextField |
getTxtLong()
Inicializa el cuadro de texto que contiene el dato de longitud del
meridiano
|
JTextField |
getTxtMeridian()
Inicializa el cuadro de texto que contiene el meridiano
|
JTextField |
getTxtNombreCrs()
Inicializa el cuadro de texto que contiene el nombre del Crs
|
JTextField |
getTxtSemMay()
Inicializa el cuadro de texto que contiene el Semieje Mayor
del elipsoide
|
JTextField |
getTxtSemMen()
Inicializa el cuadro de texto que contiene el semieje
menor del elipsoide
|
void |
itemStateChanged(ItemEvent e) |
void |
keyPressed(KeyEvent e) |
void |
keyReleased(KeyEvent e) |
void |
keyTyped(KeyEvent e) |
void |
setAngularUnit(ArrayList units) |
void |
setCrs(int code) |
void |
setLengthUnit(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 JButton getBtnImportDatum()
public JButton getBtnImportElipsoide()
public JButton getBtnImportMeridian()
public JComboBox getCbInvF()
public JComboBox getCbLong()
public JComboBox getCbSemMay()
public JComboBox getCbSemMen()
public JLabel getLblDatum()
public JLabel getLblElipsoide()
public JLabel getLblLong()
public JLabel getLblMeridian()
public JLabel getLblCodigoCrs()
public JLabel getLblNombreCrs()
public JLabel getLblInverseFlat()
public JLabel getLblSemiejeMayor()
public JLabel getLblSemiejeMenor()
public JLabel getLblDefinir()
public JRadioButton getRbA_B()
public JRadioButton getRbA_Inv()
public JTextField getTxtDatum()
public JTextField getTxtElipsoide()
public JTextField getTxtInvF()
public JTextField getTxtLong()
public JTextField getTxtMeridian()
public JTextField getTxtSemMay()
public JTextField getTxtSemMen()
public JTextField getTxtCodigoCrs()
public JTextField getTxtNombreCrs()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface 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(String unit, double value)
public double convert2Degree(String unit, double value)
unit
- Unidad de entrada.value
- Valor a convertirpublic double convert(double value, String measure) throws ConversionException
ConversionException
public double convertFromDegree(String unitSource, String unitTarget, double value)
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
public double convertFromMeters(String unitSource, String unitTarget, double value)
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
public void setLengthUnit(ArrayList units)
public void setAngularUnit(ArrayList units)
public String getLengthUnit(int indice)
public String getAngularUnit(int indice)
public void focusGained(FocusEvent e)
focusGained
in interface FocusListener
public void focusLost(FocusEvent e)
focusLost
in interface FocusListener