public class DefSistCoordenadas
extends javax.swing.JPanel
implements java.awt.event.ActionListener, java.awt.event.ItemListener
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 |
---|
DefSistCoordenadas() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Fija los eventos de los RadioButtons y dem�s controles
|
void |
ajustarTamanoTabla() |
void |
cleanData() |
double |
convert(double value,
java.lang.String measure) |
double |
convert2Degree(java.lang.String unit,
double value) |
double |
convert2Meters(java.lang.String unit,
double value) |
double |
convert2Unitless(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) |
double |
convertFromUnitless(java.lang.String unitSource,
java.lang.String unitTarget,
double value) |
void |
fillData(CoordinateReferenceSystem crs) |
void |
fillData(ICrs crs) |
void |
fillTable(java.lang.String projection) |
javax.swing.JButton |
getBtnImportar()
Inicializa el boton que importa la proyeccion actual
|
javax.swing.JPanel |
getCardPanel() |
javax.swing.JComboBox |
getCbProyeccion()
Contiene los nombres de las distintas proyecciones
|
javax.swing.JComboBox |
getCbUnits()
Contiene los nombres de las distintas unidades
|
ICrs |
getCrs()
Obtiene el CRS actual
|
javax.swing.JLabel |
getLblNombreProy()
Inicializa el label que contiene el Nombre de la Proyeccin
|
javax.swing.JLabel |
getLblProyeccion()
Inicializa el label Proyecci�n
|
int |
getPos()
Obtiene la posición de la proyección seleccionada dentro de la lista
de proyecciones de proj4.
|
Proj4 |
getProj4() |
java.lang.String |
getProjection(int indice)
Obtencion de la proyecion utilizada a traves del indice.
|
javax.swing.JPanel |
getProyectadoPanel()
Inicializa el panel que contiene las opciones
si el crs seleccionado es proyectado
|
javax.swing.JRadioButton |
getRbGeografico()
Inicializa el radio button Geogr�fico 2D
|
javax.swing.JRadioButton |
getRbProyectado()
Inicializa el radio button Proyectado
|
javax.swing.JScrollPane |
getScrollTable()
Crear scrollPane y agregar la tabla en �l
|
javax.swing.JTable |
getTableParametros()
Crea la tabla donde se definen los par�metros de la
proyecci�n seleccionada en el combobox
|
javax.swing.JPanel |
getTop()
Inicializa el panel superior donde se define el sistema
de coordenadas
|
java.lang.String |
getTrueParametersNames(int indice)
Consigue los nombres buenos de los parametros utilizados en una proyeccion
|
javax.swing.JTextField |
getTxtNombreProy()
Inicializa el cuadro de texto que contiene el nombre de la proyeccin
|
void |
itemStateChanged(java.awt.event.ItemEvent e) |
void |
setCrs(int code)
CRS que estamos cogiendo para poder rellenar los datos
|
void |
setPos(int pos)
Contiene la posición de la proyección seleccionada dentro de la lista
de proyecciones de proj4.
|
void |
setProjection(java.util.ArrayList proj)
Seleccion de la proyeccion que estamos utilizando.
|
void |
setTrueParametersNames(java.util.ArrayList names)
define los parametros utilizados por una proyeccion.
|
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.JPanel getCardPanel()
public javax.swing.JRadioButton getRbGeografico()
public javax.swing.JRadioButton getRbProyectado()
public javax.swing.JPanel getProyectadoPanel()
public javax.swing.JPanel getTop()
public javax.swing.JLabel getLblProyeccion()
public javax.swing.JTable getTableParametros()
public javax.swing.JComboBox getCbUnits()
public javax.swing.JScrollPane getScrollTable()
public javax.swing.JComboBox getCbProyeccion()
public javax.swing.JLabel getLblNombreProy()
public javax.swing.JTextField getTxtNombreProy()
public void ajustarTamanoTabla()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void fillData(ICrs crs)
public void fillData(CoordinateReferenceSystem crs)
public void fillTable(java.lang.String projection)
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
public void cleanData()
public double convert(double value, java.lang.String measure) throws ConversionException
ConversionException
public double convert2Meters(java.lang.String unit, double value)
public double convert2Unitless(java.lang.String unit, double value)
public double convert2Degree(java.lang.String unit, double value)
public double convertFromMeters(java.lang.String unitSource, java.lang.String unitTarget, double value)
public double convertFromUnitless(java.lang.String unitSource, java.lang.String unitTarget, double value)
public double convertFromDegree(java.lang.String unitSource, java.lang.String unitTarget, double value)
public Proj4 getProj4()
public void setPos(int pos)
pos
- public int getPos()
public javax.swing.JButton getBtnImportar()
public void setCrs(int code)
code
- public ICrs getCrs()
public void setProjection(java.util.ArrayList proj)
proj
- public java.lang.String getProjection(int indice)
indice
- public void setTrueParametersNames(java.util.ArrayList names)
names
- public java.lang.String getTrueParametersNames(int indice)
indice
-