public class DefSistCoordenadas extends JPanel implements ActionListener, ItemListener
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
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
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
DefSistCoordenadas() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Fija los eventos de los RadioButtons y dem�s controles
|
void |
ajustarTamanoTabla() |
void |
cleanData() |
double |
convert(double value,
String measure) |
double |
convert2Degree(String unit,
double value) |
double |
convert2Meters(String unit,
double value) |
double |
convert2Unitless(String unit,
double value) |
double |
convertFromDegree(String unitSource,
String unitTarget,
double value) |
double |
convertFromMeters(String unitSource,
String unitTarget,
double value) |
double |
convertFromUnitless(String unitSource,
String unitTarget,
double value) |
void |
fillData(CoordinateReferenceSystem crs) |
void |
fillData(ICrs crs) |
void |
fillTable(String projection) |
JButton |
getBtnImportar()
Inicializa el boton que importa la proyeccion actual
|
JPanel |
getCardPanel() |
JComboBox |
getCbProyeccion()
Contiene los nombres de las distintas proyecciones
|
JComboBox |
getCbUnits()
Contiene los nombres de las distintas unidades
|
ICrs |
getCrs()
Obtiene el CRS actual
|
JLabel |
getLblNombreProy()
Inicializa el label que contiene el Nombre de la Proyeccin
|
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() |
String |
getProjection(int indice)
Obtencion de la proyecion utilizada a traves del indice.
|
JPanel |
getProyectadoPanel()
Inicializa el panel que contiene las opciones
si el crs seleccionado es proyectado
|
JRadioButton |
getRbGeografico()
Inicializa el radio button Geogr�fico 2D
|
JRadioButton |
getRbProyectado()
Inicializa el radio button Proyectado
|
JScrollPane |
getScrollTable()
Crear scrollPane y agregar la tabla en �l
|
JTable |
getTableParametros()
Crea la tabla donde se definen los par�metros de la
proyecci�n seleccionada en el combobox
|
JPanel |
getTop()
Inicializa el panel superior donde se define el sistema
de coordenadas
|
String |
getTrueParametersNames(int indice)
Consigue los nombres buenos de los parametros utilizados en una proyeccion
|
JTextField |
getTxtNombreProy()
Inicializa el cuadro de texto que contiene el nombre de la proyeccin
|
void |
itemStateChanged(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(ArrayList proj)
Seleccion de la proyeccion que estamos utilizando.
|
void |
setTrueParametersNames(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 JPanel getCardPanel()
public JRadioButton getRbGeografico()
public JRadioButton getRbProyectado()
public JPanel getProyectadoPanel()
public JPanel getTop()
public JLabel getLblProyeccion()
public JTable getTableParametros()
public JComboBox getCbUnits()
public JScrollPane getScrollTable()
public JComboBox getCbProyeccion()
public JLabel getLblNombreProy()
public JTextField getTxtNombreProy()
public void ajustarTamanoTabla()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void fillData(ICrs crs)
public void fillData(CoordinateReferenceSystem crs)
public void fillTable(String projection)
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
public void cleanData()
public double convert(double value, String measure) throws ConversionException
ConversionException
public double convert2Meters(String unit, double value)
public double convert2Unitless(String unit, double value)
public double convert2Degree(String unit, double value)
public double convertFromMeters(String unitSource, String unitTarget, double value)
public double convertFromUnitless(String unitSource, String unitTarget, double value)
public double convertFromDegree(String unitSource, String unitTarget, double value)
public Proj4 getProj4()
public void setPos(int pos)
pos
- public int getPos()
public JButton getBtnImportar()
public void setCrs(int code)
code
- public ICrs getCrs()
public void setProjection(ArrayList proj)
proj
- public String getProjection(int indice)
indice
- public void setTrueParametersNames(ArrayList names)
names
- public String getTrueParametersNames(int indice)
indice
-