public class BandSelectorPanel extends AbstractPanel implements TableModelListener
JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_DIALOG |
static int |
TYPE_PROPERTIES |
hasChanged, remainsWithDefaultPreferredSizeaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
BandSelectorPanel()
Constructor to be instantiated from the properties panels
|
BandSelectorPanel(int type)
This method initializes
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept()
Notifies to this panel of an accept action.
|
void |
addFiles(RasterDataStore dstore)
Añade la lista de georasterfiles a la tabla
|
void |
apply()
Aplica y guarda los cambios del panel
|
void |
assignBand(int nBand,
int flag)
Mantiene la asignación entre R, G o B y la banda de la imagen que le
corresponde
|
void |
cancel()
Notifies this panel of a cancel action.
|
void |
componentHidden(ComponentEvent e) |
void |
componentMoved(ComponentEvent e) |
void |
componentShown(ComponentEvent e) |
TableContainer |
getARGBTable()
Obtiene la Tabla
|
String |
getBandName(int i)
Obtiene el nombre de la banda de la posición i de la tabla
|
JPanel |
getButtonsPanel()
Obtiene el Panel con botón de salvado y selector de bandas.
|
String |
getColorInterpretationByBand(int nBand)
Obtiene la interpretación de color por número de banda
|
int |
getColorInterpretationByColorBandBand(int flag)
Obtiene la correspondencia entre el R, G o B y la banda asignada
|
BandSelectorFileList |
getFileList()
Obtiene el panel que contiene la lista de ficheros por banda.
|
AbstractBandSelectorListener |
getListener() |
int |
getNBands()
Obtiene el número de bandas de la lista
|
JComboBox |
getNumBandSelectorCombo()
Obtiene el combo del selector del número de bandas
|
RasterDataStore |
getResult() |
JButton |
getSaveButton()
Botón de salvar la interpretación de color seleccionada como predeterminada en
la capa
|
ColorInterpretation |
getSelectedColorInterpretation() |
protected void |
initialize()
This method initializes this
|
void |
onlyApply()
Aplicar los cambios sin guardar su estado
|
void |
readDrawedBands()
Lee desde el renderizador las bandas que se han dibujado y en que posición se ha hecho.
|
void |
removeFile(String file)
Elimina un fichero de la lista
|
void |
resetMode(int mode)
Cuando cambiamos el combo de seleccion de numero de bandas a visualizar
debemos resetear la tabla de checkbox para que no haya activados más de los
permitidos
|
void |
restoreStatus()
Deja la capa en el último estado guardado y la refresca
|
void |
selected()
Notifies this panel that has been selected at the
AbstractPanelGroup |
void |
setEnabled(boolean enabled)
Activa y desactiva el control
|
void |
setReference(Object ref)
Sets the current layer when the panel is opened from
raster properties
|
void |
tableChanged(TableModelEvent e) |
compareTo, getID, getLabel, getLabelGroup, getPanelGroup, getPriority, getReference, hasChanged, isAlwaysApplicable, isInGroupGUI, remainsWithItsDefaultPreferredSize, resetChangedStatus, setAlwaysApplicable, setID, setInGroupGUI, setLabel, setLabelGroup, setPanelGroup, setPreferredSize, setPriority, toStringgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, 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, validateTreeaction, 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, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final int TYPE_PROPERTIES
public static final int TYPE_DIALOG
public BandSelectorPanel()
public BandSelectorPanel(int type)
type - public AbstractBandSelectorListener getListener()
protected void initialize()
initialize in class AbstractPanelpublic BandSelectorFileList getFileList()
public TableContainer getARGBTable()
public JPanel getButtonsPanel()
public JComboBox getNumBandSelectorCombo()
public JButton getSaveButton()
public void addFiles(RasterDataStore dstore) throws NotInitializeException
dstore - NotInitializeExceptionpublic void removeFile(String file)
file - Nombre del fichero a eliminarpublic void resetMode(int mode)
mode - public int getNBands()
public String getBandName(int i)
i - public void assignBand(int nBand,
int flag)
nBand - Banda de la imagen que correspondeflag - R, G o B se selecciona por medio de un flag que los identificapublic int getColorInterpretationByColorBandBand(int flag)
flag - R, G o B se selecciona por medio de un flag que los identificapublic String getColorInterpretationByBand(int nBand)
nBand - Número de bandapublic ColorInterpretation getSelectedColorInterpretation()
public void tableChanged(TableModelEvent e)
tableChanged in interface TableModelListenerpublic RasterDataStore getResult()
public void readDrawedBands()
public void accept()
IPanelNotifies to this panel of an accept action.
public void apply()
public void onlyApply()
public void restoreStatus()
public void cancel()
IPanelNotifies this panel of a cancel action.
public void setEnabled(boolean enabled)
setEnabled in class JComponentenabled - true para activar y false para desactivarpublic void setReference(Object ref)
setReference in interface IPanelsetReference in class AbstractPanelref - an objectIPanel.getReference()public void componentHidden(ComponentEvent e)
e - public void componentShown(ComponentEvent e)
e - public void componentMoved(ComponentEvent e)
e - public void selected()
IPanelNotifies this panel that has been selected at the AbstractPanelGroup