@Override public Action getDoubleClickAction() { return actions.getEditAction(); }
public MaskAction getCopyAction() { return getMaskAction(CopyAction.class); }
model.setRasterName(rasterNames[0]); final RangeEditorDialog rangeEditorDialog = new RangeEditorDialog(getWindow(e), model); if (rangeEditorDialog.show() == AbstractDialog.ID_OK) { RasterDataNode referencedRaster = getMaskForm().getProduct().getRasterDataNode(model.getRasterName());
@Override public final void updateState() { for (MaskAction maskAction : actions.getAllActions()) { maskAction.updateState(); } }
MaskManagerForm(ToolTopComponent maskTopComponent, ListSelectionListener selectionListener) { super(true, selectionListener); helpButton = ToolButtonFactory.createButton(UIUtils.loadImageIcon("icons/Help22.png"), false); helpButton.setName("helpButton"); actions = new MaskFormActions(maskTopComponent, this); updateState(); }
@Override public void actionPerformed(ActionEvent e) { Window window = getWindow(e); final Product sourcProduct = getMaskForm().getProduct(); Mask[] selectedMasks = getMaskForm().getSelectedMasks(); Product[] allProducts = SnapApp.getDefault().getProductManager().getProducts(); final TransferMaskDialog dialog = new TransferMaskDialog(window, sourcProduct, allProducts, selectedMasks); if (dialog.show() == AbstractDialog.ID_OK) { Product[] maskPixelTargetProducts = dialog.getMaskPixelTargets(); copyMaskPixel(selectedMasks, sourcProduct, maskPixelTargetProducts); Product[] maskDefinitionTargetProducts = dialog.getMaskDefinitionTargets(); copyMaskDefinition(selectedMasks, maskDefinitionTargetProducts); } }
final MaskAction[] allActions = actions.getAllActions(); for (int i = 0; i < allActions.length; i += 2) { buttonPanel.add(allActions[i].createComponent(), gbc);
public MaskAction getNewRangeAction() { return getMaskAction(NewRangeAction.class); }
@Override public void actionPerformed(ActionEvent e) { Window window = getWindow(e); Mask selectedMask = getMaskForm().getSelectedMask(); PropertyContainer selectedMaskConfig = selectedMask.getImageConfig();
public MaskAction getExportAction() { return getMaskAction(ExportAction.class); }
public MaskAction getNewBandMathAction() { return getMaskAction(NewBandMathsAction.class); }
public MaskAction getNewIntersectionAction() { return getMaskAction(NewIntersectionAction.class); }
public MaskAction getNewUnionAction() { return getMaskAction(NewUnionAction.class); }
public MaskAction getNewSubtractionAction() { return getMaskAction(NewDifferenceAction.class); }
public MaskAction getEditAction() { return getMaskAction(EditAction.class); }
public MaskAction getImportAction() { return getMaskAction(ImportAction.class); }
public MaskAction getNewInversionAction() { return getMaskAction(NewComplementAction.class); }
public MaskAction getRemoveAction() { return getMaskAction(RemoveAction.class); }
public MaskAction getNullAction() { return getMaskAction(NullAction.class); }