77787980818283
/** Creates a new ImageJ application context with all available services. */ public ImageJ() { // TODO: Consider whether to restrict available services // to SciJava, SCIFIO and ImageJ by default. this(new Context()); }
87888990919293
* * @param empty If true, the context will be empty; otherwise, it will be * initialized with all available services. */ public ImageJ(final boolean empty) { this(new Context(empty)); }
114115116117118119120
* @throws ClassCastException If any of the given arguments do not implement * the {@link Service} interface. */ @SuppressWarnings({ "rawtypes" }) public ImageJ(final Class... serviceClasses) { this(new Context(serviceClasses)); }
125126127128129130131
* * @param serviceClasses A collection of types that implement the * {@link Service} interface (e.g., {@code DisplayService.class}). */ public ImageJ(final Collection<Class<? extends Service>> serviceClasses) { this(new Context(serviceClasses)); }