ij.plugin
Class ColorGenerator

java.lang.Object
  extended by ij.process.ImageProcessor
      extended by ij.process.ColorProcessor
          extended by ij.plugin.ColorGenerator

 class ColorGenerator
extends ColorProcessor


Field Summary
(package private)  int[] colors
           
(package private)  int h
           
(package private)  ImagePlus imp
           
(package private)  int w
           
 
Fields inherited from class ij.process.ColorProcessor
pixels, RGB_DILATE, RGB_ERODE, RGB_FIND_EDGES, RGB_MEDIAN, RGB_NOISE, RGB_THRESHOLD, snapshotPixels
 
Fields inherited from class ij.process.ImageProcessor
antialiasedText, baseCM, BLACK, BLACK_AND_WHITE_LUT, bLUT1, bLUT2, boldFont, CENTER_JUSTIFY, clipXMax, clipXMin, clipYMax, clipYMin, cm, cm2, cTable, cx, cy, defaultColorModel, drawingColor, fmImage, font, fontMetrics, gLUT1, gLUT2, height, histogramMax, histogramMin, histogramSize, image, img, interpolate, inversionTested, invertedLut, justification, LEFT_JUSTIFY, lineWidth, lutAnimation, lutUpdateMode, maxThreshold, minThreshold, newPixels, NO_LUT_UPDATE, NO_THRESHOLD, OVER_UNDER_LUT, raster, RED_LUT, RIGHT_JUSTIFY, rLUT1, rLUT2, roiHeight, roiWidth, roiX, roiY, sampleModel, snapshotHeight, snapshotWidth, source, width, xMax, xMin, yMax, yMin
 
Constructor Summary
ColorGenerator(int width, int height, int[] pixels, ImagePlus imp)
           
 
Method Summary
(package private)  void drawColor(int x, int y, java.awt.Color c)
           
(package private)  void drawColors(int colorWidth, int colorHeight, int columns, int rows)
           
(package private)  void drawRamp()
           
(package private)  void drawSpectrum(double h)
           
(package private)  void flipper()
           
 void refreshBackground()
           
 void refreshForeground()
           
(package private)  void resetBW()
           
 
Methods inherited from class ij.process.ColorProcessor
applyTable, applyTable, autoThreshold, convolve, convolve3x3, copyBits, createImage, createProcessor, crop, dilate, drawPixel, duplicate, erode, fill, fill, filter, filterRGB, findEdges, flipVertical, get, get, getBestIndex, getBrightness, getColor, getf, getf, getHistogram, getHistogram, getHSB, getInterpolatedPixel, getInterpolatedRGBPixel, getMax, getMin, getNChannels, getPixel, getPixel, getPixels, getPixelsCopy, getPixelValue, getRGB, getSnapshotPixels, getWeightingFactors, invertLut, isInvertedLut, makeThumbnail, medianFilter, noise, putPixel, putPixel, putPixelValue, reset, reset, resize, rotate, scale, set, set, setBackgroundValue, setBrightness, setColor, setf, setf, setHSB, setMinAndMax, setMinAndMax, setPixels, setPixels, setRGB, setSnapshotPixels, setValue, setWeightingFactors, snapshot, threshold, toFloat
 
Methods inherited from class ij.process.ImageProcessor
abs, add, add, and, convertToByte, convertToFloat, convertToRGB, convertToShort, drawDot, drawDot2, drawLine, drawOval, drawPolygon, drawRect, drawString, drawString, exp, fillOval, fillPolygon, flipHorizontal, gamma, getAutoThreshold, getAutoThreshold, getCalibrationTable, getColorModel, getColumn, getCurrentColorModel, getDefaultColorModel, getFloatArray, getFontMetrics, getHeight, getHistogramMax, getHistogramMin, getHistogramSize, getIndexSampleModel, getIntArray, getInterpolate, getInterpolatedValue, getLine, getLutUpdateMode, getMask, getMaskArray, getMaxThreshold, getMinThreshold, getPixelCount, getRoi, getRow, getStringWidth, getWidth, hideProgress, insert, invert, isColorLut, isKillable, isPseudoColorLut, lineTo, log, makeDefaultColorModel, maskSizeError, max, maxValue, min, minValue, moveTo, multiply, or, putColumn, putRow, resetBinaryThreshold, resetMinAndMax, resetRoi, resetThreshold, resize, rotateLeft, rotateRight, setAntialiasedText, setCalibrationTable, setClipRect, setColor, setColorModel, setFloatArray, setFont, setHistogramRange, setHistogramSize, setIntArray, setInterpolate, setJustification, setLineWidth, setLutAnimation, setMask, setProgressBar, setRoi, setRoi, setRoi, setRoi, setSnapshotCopyMode, setThreshold, sharpen, showProgress, smooth, sqr, sqrt, toString, xor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

w

int w

h

int h

imp

ImagePlus imp

colors

int[] colors
Constructor Detail

ColorGenerator

public ColorGenerator(int width,
                      int height,
                      int[] pixels,
                      ImagePlus imp)
Method Detail

drawColors

void drawColors(int colorWidth,
                int colorHeight,
                int columns,
                int rows)

drawColor

void drawColor(int x,
               int y,
               java.awt.Color c)

refreshBackground

public void refreshBackground()

refreshForeground

public void refreshForeground()

drawSpectrum

void drawSpectrum(double h)

drawRamp

void drawRamp()

resetBW

void resetBW()

flipper

void flipper()