Login  Register

Re: custom ImageProcessor sub-class (no-gui) question

Posted by Albert Cardona on May 01, 2008; 9:33pm
URL: http://imagej.273.s1.nabble.com/custom-ImageProcessor-sub-class-no-gui-question-tp3696367p3696369.html

> Well, to answer my own question, line 68 in ImageProcessor
> instantiates an awt component:
>
>     protected Color drawingColor = Color.black;
>
>
> Is there anyway to avoid this?


A hackerous way is to emulate the headless.jar of ImageJA: declare your
own java.awt.Color class, which does not belong to the real java.awt
package. I.e. by adding your own jar in the classpath you can shadow the
internal one.

Albert

--
Albert Cardona
http://www.mcdb.ucla.edu/Research/Hartenstein/acardona