jfig.utils
Class ColorTestChart
java.lang.Object
jfig.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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INCH
public static final double INCH
- See Also:
- Constant Field Values
DPI
public static final double DPI
- See Also:
- Constant Field Values
ColorTestChart
public ColorTestChart()
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)