ij.gui.Overlay.setStrokeColor()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(105)

本文整理了Java中ij.gui.Overlay.setStrokeColor()方法的一些代码示例,展示了Overlay.setStrokeColor()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Overlay.setStrokeColor()方法的具体详情如下:
包路径:ij.gui.Overlay
类名称:Overlay
方法名:setStrokeColor

Overlay.setStrokeColor介绍

[英]Sets the stroke color of all the ROIs in this overlay.
[中]设置此覆盖中所有ROI的笔划颜色。

代码示例

代码示例来源:origin: fiji/TrackMate

@Override
protected void preview()
{
  clean();
  Overlay overlay = imp.getOverlay();
  if ( null == overlay )
  {
    overlay = new Overlay();
  }
  final int nsplit = NumberParser.parseInteger( jTextFieldNSplit.getText() );
  roiList = new ArrayList<>(nsplit*nsplit);
  
  final Interval interval = TMUtils.getInterval( TMUtils.rawWraps( imp ), settings );
  for ( int i = 0; i < nsplit; i++ )
  {
    for ( int j = 0; j < nsplit; j++ )
    {
      final Interval block = BlockLogDetector.getBlock( interval, nsplit, i, j );
      final Roi roi = new Roi( 0.5 + block.min( 0 ), 0.5 + block.min( 1 ), block.dimension( 0 ) - 1, block.dimension( 1 ) - 1 );
      roiList.add( roi );
      overlay.add( roi );
    }
  }
  overlay.setStrokeColor( Color.CYAN.darker() );
  imp.setOverlay( overlay );
  super.preview();
}

代码示例来源:origin: sc.fiji/Colocalisation_Analysis

overlay.setStrokeColor(java.awt.Color.WHITE);
imp.setOverlay(overlay);

代码示例来源:origin: sc.fiji/TrackMate_

@Override
protected void preview()
{
  clean();
  Overlay overlay = imp.getOverlay();
  if ( null == overlay )
  {
    overlay = new Overlay();
  }
  final int nsplit = NumberParser.parseInteger( jTextFieldNSplit.getText() );
  roiList = new ArrayList<>(nsplit*nsplit);
  
  final Interval interval = TMUtils.getInterval( TMUtils.rawWraps( imp ), settings );
  for ( int i = 0; i < nsplit; i++ )
  {
    for ( int j = 0; j < nsplit; j++ )
    {
      final Interval block = BlockLogDetector.getBlock( interval, nsplit, i, j );
      final Roi roi = new Roi( 0.5 + block.min( 0 ), 0.5 + block.min( 1 ), block.dimension( 0 ) - 1, block.dimension( 1 ) - 1 );
      roiList.add( roi );
      overlay.add( roi );
    }
  }
  overlay.setStrokeColor( Color.CYAN.darker() );
  imp.setOverlay( overlay );
  super.preview();
}

代码示例来源:origin: net.imagej/ij

Color color = getColor();
  interp.getRightParen();
  overlay.setStrokeColor(color);
  return Double.NaN;
} else if (name.equals("setStrokeWidth")) {

代码示例来源:origin: imagej/ImageJA

Color color = getColor();
  interp.getRightParen();
  overlay.setStrokeColor(color);
  return Double.NaN;
} else if (name.equals("setStrokeWidth")) {

相关文章