org.scijava.plugin.Plugin.<init>()方法的使用及代码示例

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

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

Plugin.<init>介绍

暂无

代码示例

代码示例来源:origin: org.scijava/scijava-ui-swing

/**
 * Inspect the ObjectService
 * 
 * @author Grant Harris
 */
@Plugin(type = Command.class, menuPath = "Plugins>Debug>Inspect Objects")
public class InspectObjects implements Command {

  @Parameter
  private ObjectService objectService;

  @Override
  public void run() {
    Inspector.inspect(objectService);
  }

}

代码示例来源:origin: imagej/imagej-ops

/** Op that computes the logical NOT ({@literal !}) of a boolean value. */
@Plugin(type = Ops.Logic.Not.class, priority = 0.5)
public static class BooleanNot extends AbstractOp
  implements Ops.Logic.Not
{
  @Parameter(type = ItemIO.OUTPUT)
  private boolean result;
  @Parameter
  private boolean a;
  @Override
  public void run() {
    result = !a;
  }
}

代码示例来源:origin: imagej/imagej-ops

/** Op that computes the absolute value of a int value. */
@Plugin(type = Ops.Math.Abs.class, priority = 0.4)
public static class IntegerAbs extends AbstractOp
  implements Ops.Math.Abs
{
  @Parameter(type = ItemIO.OUTPUT)
  private int result;
  @Parameter
  private int a;
  @Override
  public void run() {
    result = Math.abs(a);
  }
}

代码示例来源:origin: imagej/imagej-ops

/** Op that computes the natural logarithm of one plus a double value. */
@Plugin(type = Ops.Math.LogOnePlusX.class, priority = 0.1)
public static class DoubleLogOnePlusX extends AbstractOp
  implements Ops.Math.LogOnePlusX
{
  @Parameter(type = ItemIO.OUTPUT)
  private double result;
  @Parameter
  private double a;
  @Override
  public void run() {
    result = Math.log1p(a);
  }
}

代码示例来源:origin: imagej/imagej-ops

/** Op that rounds a double value. */
@Plugin(type = Ops.Math.Round.class, priority = 0.1)
public static class DoubleRound extends AbstractOp
  implements Ops.Math.Round
{
  @Parameter(type = ItemIO.OUTPUT)
  private double result;
  @Parameter
  private double a;
  @Override
  public void run() {
    result = Math.round(a);
  }
}

代码示例来源:origin: imagej/imagej-ops

/** Op that computes the hyperbolic tangent of a double value. */
@Plugin(type = Ops.Math.Tanh.class, priority = 0.1)
public static class DoubleTanh extends AbstractOp
  implements Ops.Math.Tanh
{
  @Parameter(type = ItemIO.OUTPUT)
  private double result;
  @Parameter
  private double a;
  @Override
  public void run() {
    result = Math.tanh(a);
  }
}

代码示例来源:origin: imagej/imagej-ops

/** Op that computes the signum of a float value. */
@Plugin(type = Ops.Math.Signum.class, priority = 0.2)
public static class FloatSignum extends AbstractOp
  implements Ops.Math.Signum
{
  @Parameter(type = ItemIO.OUTPUT)
  private float result;
  @Parameter
  private float a;
  @Override
  public void run() {
    result = Math.signum(a);
  }
}

代码示例来源:origin: imagej/imagej-ops

/** Op that computes the natural logarithm of a double value. */
@Plugin(type = Ops.Math.Log.class, priority = 0.1)
public static class DoubleLog extends AbstractOp
  implements Ops.Math.Log
{
  @Parameter(type = ItemIO.OUTPUT)
  private double result;
  @Parameter
  private double a;
  @Override
  public void run() {
    result = Math.log(a);
  }
}

代码示例来源:origin: imagej/imagej-ops

/** Op that computes the signum of a double value. */
@Plugin(type = Ops.Math.Signum.class, priority = 0.1)
public static class DoubleSignum extends AbstractOp
  implements Ops.Math.Signum
{
  @Parameter(type = ItemIO.OUTPUT)
  private double result;
  @Parameter
  private double a;
  @Override
  public void run() {
    result = Math.signum(a);
  }
}

代码示例来源:origin: imagej/imagej-ops

/** Op that computes the square root of a double value. */
@Plugin(type = Ops.Math.Sqrt.class, priority = 0.1)
public static class DoubleSqrt extends AbstractOp
  implements Ops.Math.Sqrt
{
  @Parameter(type = ItemIO.OUTPUT)
  private double result;
  @Parameter
  private double a;
  @Override
  public void run() {
    result = Math.sqrt(a);
  }
}

代码示例来源:origin: imagej/imagej-ops

@Plugin(type = Op.class, name = "test.arrr!")
public static class Captain extends NoOp {
  @Parameter
  private Booty inventory;
}

代码示例来源:origin: imagej/imagej-ops

@Plugin(type = Foo.class)
public static class AppleIface2Foo extends NoOp implements Foo {
  @Parameter(type = ItemIO.INPUT)
  private AppleIface2 in;
}

代码示例来源:origin: imagej/imagej-ops

@Plugin(type = Foo.class)
public static class OrangeIfaceFoo extends NoOp implements Foo {
  @Parameter(type = ItemIO.INPUT)
  private OrangeIface in;
}

代码示例来源:origin: imagej/imagej-ops

@Plugin(type = Foo.class)
public static class OrangeClassFoo extends NoOp implements Foo {
  @Parameter(type = ItemIO.INPUT)
  private OrangeClass in;
}

代码示例来源:origin: imagej/imagej-ops

@Plugin(type = FruitOp.class, name = "test.fakeInplaceD")
public static class FakeInplaceA extends AbstractFruitOp {
  @Parameter(type = ItemIO.BOTH)
  private Apple a;
}

代码示例来源:origin: imagej/imagej-ops

@Plugin(type = FruitOp.class, name = "test.fakeInplaceS")
public static class FakeInplaceO extends AbstractFruitOp {
  @Parameter(type = ItemIO.BOTH)
  private Orange a;
}

代码示例来源:origin: imagej/imagej-ops

@Plugin(type = Op.class, name = "test.arrr!",
  priority = Priority.HIGH)
public static class FirstMate extends NoOp {
  @Parameter(required = false)
  private EyePatch inventory;
}

代码示例来源:origin: scijava/scijava-common

@Plugin(type = Command.class)
public static class TestCommand implements Command {
  @Parameter
  public StringBuffer string;
  @Override
  public void run() {
    string.setLength(0);
    string.append("Hello, World!");
  }
}

代码示例来源:origin: imagej/imagej-ops

@Plugin(type = Foo.class)
public static class AppleIface1Foo extends NoOp implements Foo {
  @Parameter(type = ItemIO.INPUT)
  private AppleIface1 in;
}

代码示例来源:origin: imagej/imagej-ops

@Plugin(type = Foo.class)
public static class AppleIfaceFoo extends NoOp implements Foo {
  @Parameter(type = ItemIO.INPUT)
  private AppleIface in;
}

相关文章