本文整理汇总了Java中fiji.util.gui.GenericDialogPlus.getMessage方法的典型用法代码示例。如果您正苦于以下问题:Java GenericDialogPlus.getMessage方法的具体用法?Java GenericDialogPlus.getMessage怎么用?Java GenericDialogPlus.getMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类fiji.util.gui.GenericDialogPlus
的用法示例。
在下文中一共展示了GenericDialogPlus.getMessage方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: run
import fiji.util.gui.GenericDialogPlus; //导入方法依赖的package包/类
@Override
public void run(String arg0)
{
GenericDialogPlus gd = new GenericDialogPlus("Stitch Image Collection");
//gd.addStringField("Layout file", fileNameStatic, 50);
gd.addFileField("Layout file", fileNameStatic, 50);
gd.addCheckbox("compute_overlap (otherwise use the coordinates given in the layout file)", computeOverlapStatic );
gd.addChoice("Channels_for_Registration", colorList, handleRGBStatic);
gd.addChoice("rgb_order", rgbTypes, rgbOrderStatic);
gd.addChoice("Fusion_Method", methodListCollection, methodListCollection[LIN_BLEND]);
gd.addNumericField("Fusion alpha", alphaStatic, 2);
gd.addNumericField("Regression Threshold", thresholdRStatic, 2);
gd.addNumericField("Max/Avg Displacement Threshold", thresholdDisplacementRelativeStatic, 2);
gd.addNumericField("Absolute Avg Displacement Threshold", thresholdDisplacementAbsoluteStatic, 2);
gd.addCheckbox("Create_only_Preview", previewOnlyStatic);
gd.addMessage("");
gd.addMessage("This Plugin is developed by Stephan Preibisch\n" + myURL);
MultiLineLabel text = (MultiLineLabel) gd.getMessage();
addHyperLinkListener(text, myURL);
gd.showDialog();
if (gd.wasCanceled()) return;
String fileName = gd.getNextString();
fileNameStatic = fileName;
boolean computeOverlap = gd.getNextBoolean();
computeOverlapStatic = computeOverlap;
String handleRGB = gd.getNextChoice();
handleRGBStatic = handleRGB;
this.rgbOrder = gd.getNextChoice();
rgbOrderStatic = rgbOrder;
String fusionMethod = gd.getNextChoice();
fusionMethodStatic = fusionMethod;
this.alpha = gd.getNextNumber();
alphaStatic = alpha;
this.thresholdR = gd.getNextNumber();
thresholdRStatic = thresholdR;
this.thresholdDisplacementRelative = gd.getNextNumber();
thresholdDisplacementRelativeStatic = thresholdDisplacementRelative;
this.thresholdDisplacementAbsolute = gd.getNextNumber();
thresholdDisplacementAbsoluteStatic = thresholdDisplacementAbsolute;
boolean previewOnly = gd.getNextBoolean();
previewOnlyStatic = previewOnly;
work(fileName, previewOnly, computeOverlap, fusionMethod, handleRGB, true);
}
示例2: stitchCollection
import fiji.util.gui.GenericDialogPlus; //导入方法依赖的package包/类
/**
* Manages the dialog for stitching a collection of images defined by a Tileconfiguration file
*/
public void stitchCollection()
{
final GenericDialogPlus gd = new GenericDialogPlus("Stitch Image Collection");
//gd.addStringField("Layout file", fileNameStatic, 50);
gd.addFileField( "Layout file", fileNameStatic, 50 );
gd.addCheckbox( "compute_overlap (otherwise use the coordinates given in the layout file)", computeOverlapStatic );
gd.addChoice( "Channels_for_Registration", colorList, handleRGBStatic );
gd.addChoice( "rgb_order", rgbTypes, rgbOrderStatic );
gd.addChoice( "Fusion_Method", methodListCollection, methodListCollection[LIN_BLEND] );
gd.addNumericField( "Fusion alpha", alphaStatic, 2 );
gd.addNumericField( "Regression Threshold", thresholdRStatic, 2 );
gd.addNumericField( "Max/Avg Displacement Threshold", thresholdDisplacementRelativeStatic, 2 );
gd.addNumericField( "Absolute Avg Displacement Threshold", thresholdDisplacementAbsoluteStatic, 2 );
gd.addCheckbox( "Create_only_Preview", previewOnlyStatic );
gd.addMessage( "");
gd.addMessage( "This Plugin is developed by Stephan Preibisch\n" + myURL );
MultiLineLabel text = (MultiLineLabel) gd.getMessage();
addHyperLinkListener(text, myURL);
gd.showDialog();
if (gd.wasCanceled()) return;
String fileName = gd.getNextString();
fileNameStatic = fileName;
boolean computeOverlap = gd.getNextBoolean();
computeOverlapStatic = computeOverlap;
String handleRGB = gd.getNextChoice();
handleRGBStatic = handleRGB;
String rgbOrder = gd.getNextChoice();
rgbOrderStatic = rgbOrder;
String fusionMethod = gd.getNextChoice();
fusionMethodStatic = fusionMethod;
double alpha = gd.getNextNumber();
alphaStatic = alpha;
double thresholdR = gd.getNextNumber();
thresholdRStatic = thresholdR;
double thresholdDisplacementRelative = gd.getNextNumber();
thresholdDisplacementRelativeStatic = thresholdDisplacementRelative;
double thresholdDisplacementAbsolute = gd.getNextNumber();
thresholdDisplacementAbsoluteStatic = thresholdDisplacementAbsolute;
boolean previewOnly = gd.getNextBoolean();
previewOnlyStatic = previewOnly;
runStitching();
}