MaskFormActions(ToolTopComponent maskTopComponent, MaskForm maskForm) { maskActions = new MaskAction[]{ new NewBandMathsAction(maskForm), new NewRangeAction(maskForm), new NewVectorDataNodeAction(maskForm), new NullAction(maskForm), new NewUnionAction(maskForm), new NewIntersectionAction(maskForm), new NewDifferenceAction(maskForm), new NewInvDifferenceAction(maskForm), new NewComplementAction(maskForm), new NullAction(maskForm), new CopyAction(maskForm), new EditAction(maskForm), new RemoveAction(maskForm), new TransferAction(maskForm), new ImportAction(maskTopComponent, maskForm), new ExportAction(maskTopComponent, maskForm), new ZoomToVectorMaskAction(maskTopComponent, maskForm), new NullAction(maskForm), }; }
@Override void updateState() { setEnabled(getMaskForm().isInManagementMode() && getMaskForm().getSelectedRowCount() == 1); } }
@Override void updateState() { setEnabled(getMaskForm().isInManagementMode() && getMaskForm().getSelectedRowCount() > 1); } }
public void testMaskViewerForm() { assertSame(product, maskViewerForm.getProduct()); assertNull(maskViewerForm.getHelpButton()); assertNotNull(maskViewerForm.createContentPanel()); assertEquals(10, maskViewerForm.getRowCount()); }
@Override public void setUp() { product = createTestProduct(); maskManagerForm = new MaskManagerForm(null, null); maskManagerForm.reconfigureMaskTable(product, null); maskViewerForm = new MaskViewerForm(null); maskViewerForm.reconfigureMaskTable(product, null); }
void setProduct(Product product, RasterDataNode visibleBand) { saveColumnWidths(); getModel().setProduct(product, visibleBand); reconfigureColumnModel(); }
@Override void updateState() { setEnabled(getMaskForm().isInManagementMode() && getMaskForm().getSelectedRowCount() >= 1); } }
@Override void updateState() { setEnabled(getMaskForm().isInManagementMode() && getMaskForm().getSelectedRowCount() > 1); } }
@Override void updateState() { setEnabled(getMaskForm().isInManagementMode() && getMaskForm().getSelectedRowCount() > 0); }
@Override void updateState() { setEnabled(getMaskForm().isInManagementMode() && getMaskForm().getSelectedRowCount() == 1); } }
@Override void updateState() { setEnabled(getMaskForm().isInManagementMode() && getMaskForm().getSelectedRowCount() > 1); }
@Override void updateState() { setEnabled(getMaskForm().isInManagementMode() && getMaskForm().getSelectedRowCount() > 1); }
@Override void updateState() { setEnabled(getMaskForm().isInManagementMode() && getMaskForm().getSelectedRowCount() > 0); }
@Override String getCode(ActionEvent e) { Mask[] selectedMasks = getMaskForm().getSelectedMasks(); return "!(" + createCodeFromSelection("||", selectedMasks, 0) + ")"; }
@Override void updateState() { setEnabled(getMaskForm().isInManagementMode()); }
@Override void updateState() { setEnabled(getMaskForm().isInManagementMode()); }
@Override public final void updateState() { for (MaskAction maskAction : actions.getAllActions()) { maskAction.updateState(); } }
public RasterDataNode getRaster() { return maskTable.getModel().getVisibleBand(); }
private void handleSelectionStateChange() { maskManagerForm.reconfigureMaskTable(selectedProduct, selectedBand); maskViewerForm.reconfigureMaskTable(selectedProduct, selectedBand); } }