本文整理了Java中ij.gui.Line.setWidth()
方法的一些代码示例,展示了Line.setWidth()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Line.setWidth()
方法的具体详情如下:
包路径:ij.gui.Line
类名称:Line
方法名:setWidth
暂无
代码示例来源:origin: net.imagej/ij
public void run() {
while (!done) {
synchronized(this) {
try {wait();}
catch(InterruptedException e) {}
if (done) return;
Line.setWidth(value);
if (setText) tf.setText(""+value);
setText = false;
updateRoi();
}
}
}
代码示例来源:origin: imagej/ImageJA
public void run() {
while (!done) {
synchronized(this) {
try {wait();}
catch(InterruptedException e) {}
if (done) return;
Line.setWidth(value);
if (setText) tf.setText(""+value);
setText = false;
updateRoi();
}
}
}
代码示例来源:origin: net.imagej/imagej-legacy
private void lineWidthOptions() {
final OptionsLineWidth optionsLineWidth =
optionsService.getOptions(OptionsLineWidth.class);
Line.setWidth(optionsLineWidth.getLineWidth());
}
代码示例来源:origin: sc.fiji/Time_Lapse
@Override
public void mouseWheelMoved(MouseWheelEvent e) {
if ((e.getModifiersEx() & (e.CTRL_DOWN_MASK | e.ALT_DOWN_MASK)) == e.CTRL_DOWN_MASK) {
int newWidth = Line.getWidth() - e.getWheelRotation();
Line.setWidth(newWidth);
if (roi != null) {
roi.updateWideLine(newWidth);
getImagePlus(e).setRoi(roi);
}
e.consume();
}
}
代码示例来源:origin: stackoverflow.com
stripe.setWidth(sw);
stripe.setColor(Color.oldgloryred);
for (int row = 0; row < 7; row++) {
代码示例来源:origin: net.imagej/ij
void lineWidth() {
int width = (int)IJ.getNumber("Line Width:", Line.getWidth());
if (width==IJ.CANCELED) return;
Line.setWidth(width);
LineWidthAdjuster.update();
ImagePlus imp = WindowManager.getCurrentImage();
if (imp!=null && imp.isProcessor()) {
ImageProcessor ip = imp.getProcessor();
ip.setLineWidth(Line.getWidth());
Roi roi = imp.getRoi();
if (roi!=null && roi.isLine()) imp.draw();
}
}
代码示例来源:origin: imagej/ImageJA
void lineWidth() {
int width = (int)IJ.getNumber("Line Width:", Line.getWidth());
if (width==IJ.CANCELED) return;
Line.setWidth(width);
LineWidthAdjuster.update();
ImagePlus imp = WindowManager.getCurrentImage();
if (imp!=null && imp.isProcessor()) {
ImageProcessor ip = imp.getProcessor();
ip.setLineWidth(Line.getWidth());
Roi roi = imp.getRoi();
if (roi!=null && roi.isLine()) imp.draw();
}
}
代码示例来源:origin: net.imagej/ij
FloatBlitter.divideByZeroValue = divideByZeroValue;
FileSaver.setJpegQuality(jpegQuality);
Line.setWidth(saveLineWidth);
ImageConverter.setDoScaling(doScaling);
if (weightedColor!=Prefs.weightedColor) {
代码示例来源:origin: imagej/ImageJA
newTitle = gd.getNextString();
width = (int)gd.getNextNumber();
Line.setWidth(width);
if (stackSize>1)
processStack = gd.getNextBoolean();
imp2.setCalibration(cal);
imp2.show();
if (isMacro) Line.setWidth(originalWidth);
代码示例来源:origin: imagej/ImageJA
FloatBlitter.divideByZeroValue = divideByZeroValue;
FileSaver.setJpegQuality(jpegQuality);
Line.setWidth(saveLineWidth);
ImageConverter.setDoScaling(doScaling);
if (weightedColor!=Prefs.weightedColor) {
代码示例来源:origin: net.imagej/ij
newTitle = gd.getNextString();
width = (int)gd.getNextNumber();
Line.setWidth(width);
if (stackSize>1)
processStack = gd.getNextBoolean();
imp2.setCalibration(cal);
imp2.show();
if (isMacro) Line.setWidth(originalWidth);
代码示例来源:origin: net.imagej/ij
ip.lineTo((int)(j*xScale+0.5), base-(int)((profile[j]-min)*yScale+0.5));
Line.setWidth(1);
ImagePlus plots = new Plots();
plots.setProcessor("Plots of "+imp.getShortTitle(), ip);
代码示例来源:origin: imagej/ImageJA
ip.lineTo((int)(j*xScale+0.5), base-(int)((profile[j]-min)*yScale+0.5));
Line.setWidth(1);
ImagePlus plots = new Plots();
plots.setProcessor("Plots of "+imp.getShortTitle(), ip);
内容来源于网络,如有侵权,请联系作者删除!