jfig.utils
Class ColorTestChart

java.lang.Object
  extended byjfig.utils.ColorTestChart

public class ColorTestChart
extends java.lang.Object

create and paint a color test chart with some markers for later orientation matching after scanning and either the 216 web colors or an 8*8*8 color palette and optionally some additional colors (like shades of green or skin tones).


Field Summary
static double DPI
           
static double INCH
           
 
Constructor Summary
ColorTestChart()
           
 
Method Summary
 java.awt.Color[][] getColorMatrix()
           
 double getSize()
           
static void main(java.lang.String[] argv)
           
static void msg(java.lang.String s)
           
 void paintAboutString(java.awt.Graphics g)
           
 void paintBackground(java.awt.Graphics g, int w, int h)
           
 void paintColorMatrix(java.awt.Graphics graphics)
           
 void paintMarkers(java.awt.Graphics g)
           
 void paintOneMarker(java.awt.Graphics g, int ix, int iy)
           
 void paintOneRectangle(java.awt.Graphics gr, java.awt.Color color, int ix, int iy)
           
 void setSize(double size)
           
static void usage()
           
 void writeChart(java.lang.String filename, int resolution)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INCH

public static final double INCH
See Also:
Constant Field Values

DPI

public static final double DPI
See Also:
Constant Field Values
Constructor Detail

ColorTestChart

public ColorTestChart()
Method Detail

getColorMatrix

public java.awt.Color[][] getColorMatrix()

setSize

public void setSize(double size)

getSize

public double getSize()

paintBackground

public void paintBackground(java.awt.Graphics g,
                            int w,
                            int h)

paintOneMarker

public void paintOneMarker(java.awt.Graphics g,
                           int ix,
                           int iy)

paintMarkers

public void paintMarkers(java.awt.Graphics g)

paintAboutString

public void paintAboutString(java.awt.Graphics g)

paintOneRectangle

public void paintOneRectangle(java.awt.Graphics gr,
                              java.awt.Color color,
                              int ix,
                              int iy)

paintColorMatrix

public void paintColorMatrix(java.awt.Graphics graphics)

writeChart

public void writeChart(java.lang.String filename,
                       int resolution)

usage

public static void usage()

msg

public static void msg(java.lang.String s)

main

public static void main(java.lang.String[] argv)