FreeHEP API
Version current

org.freehep.graphicsio.ps
Class ColorMap

java.lang.Object
  extended byorg.freehep.graphicsio.ps.ColorMap

public class ColorMap
extends Object

Version:
$Id: ColorMap.java,v 1.1 2002/07/30 19:11:28 duns Exp $
Author:
Charles Loomis
Source Code:
ColorMap.java

Field Summary
static int black
           
static int blackAsGray
           
static int blackInvisible
           
static int blue
           
static int blueAsGray
           
static int blueInvisible
           
protected static MappedColor bwBlack
           
protected static MappedColor bwBlackAsGray
           
protected static MappedColor bwBlackInvisible
           
protected static MappedColor bwBlue
           
protected static MappedColor bwBlueAsGray
           
protected static MappedColor bwBlueInvisible
           
protected static MappedColor bwCyan
           
protected static MappedColor bwCyanAsGray
           
protected static MappedColor bwCyanInvisible
           
protected static MappedColor bwDarkGray
           
protected static MappedColor bwDarkGrayAsGray
           
protected static MappedColor bwDarkGrayInvisible
           
protected static MappedColor bwGray
           
protected static MappedColor bwGrayAsGray
           
protected static MappedColor bwGrayInvisible
           
protected static MappedColor bwGreen
           
protected static MappedColor bwGreenAsGray
           
protected static MappedColor bwGreenInvisible
           
protected static MappedColor bwLightGray
           
protected static MappedColor bwLightGrayAsGray
           
protected static MappedColor bwLightGrayInvisible
           
protected static MappedColor bwMagenta
           
protected static MappedColor bwMagentaAsGray
           
protected static MappedColor bwMagentaInvisible
           
protected static MappedColor[] bwMap
           
protected static MappedColor bwOrange
           
protected static MappedColor bwOrangeAsGray
           
protected static MappedColor bwOrangeInvisible
           
protected static MappedColor bwPink
           
protected static MappedColor bwPinkAsGray
           
protected static MappedColor bwPinkInvisible
           
protected static MappedColor bwRed
           
protected static MappedColor bwRedAsGray
           
protected static MappedColor bwRedInvisible
           
protected static MappedColor bwWhite
           
protected static MappedColor bwWhiteAsGray
           
protected static MappedColor bwWhiteInvisible
           
protected static MappedColor bwYellow
           
protected static MappedColor bwYellowAsGray
           
protected static MappedColor bwYellowInvisible
           
protected  MappedColor[] currentColorMap
           
static int cyan
           
static int cyanAsGray
           
static int cyanInvisible
           
static int darkGray
           
static int darkGrayAsGray
           
static int darkGrayInvisible
           
protected static MappedColor displayBlack
           
protected static MappedColor displayBlackAsGray
           
protected static MappedColor displayBlackInvisible
           
protected static MappedColor displayBlue
           
protected static MappedColor displayBlueAsGray
           
protected static MappedColor displayBlueInvisible
           
protected static MappedColor displayCyan
           
protected static MappedColor displayCyanAsGray
           
protected static MappedColor displayCyanInvisible
           
protected static MappedColor displayDarkGray
           
protected static MappedColor displayDarkGrayAsGray
           
protected static MappedColor displayDarkGrayInvisible
           
protected static MappedColor displayGray
           
protected static MappedColor displayGrayAsGray
           
protected static MappedColor displayGrayInvisible
           
protected static MappedColor displayGreen
           
protected static MappedColor displayGreenAsGray
           
protected static MappedColor displayGreenInvisible
           
protected static MappedColor displayLightGray
           
protected static MappedColor displayLightGrayAsGray
           
protected static MappedColor displayLightGrayInvisible
           
protected static MappedColor displayMagenta
           
protected static MappedColor displayMagentaAsGray
           
protected static MappedColor displayMagentaInvisible
           
protected static MappedColor[] displayMap
           
protected static MappedColor displayOrange
           
protected static MappedColor displayOrangeAsGray
           
protected static MappedColor displayOrangeInvisible
           
protected static MappedColor displayPink
           
protected static MappedColor displayPinkAsGray
           
protected static MappedColor displayPinkInvisible
           
protected static MappedColor displayRed
           
protected static MappedColor displayRedAsGray
           
protected static MappedColor displayRedInvisible
           
protected static MappedColor displayWhite
           
protected static MappedColor displayWhiteAsGray
           
protected static MappedColor displayWhiteInvisible
           
protected static MappedColor displayYellow
           
protected static MappedColor displayYellowAsGray
           
protected static MappedColor displayYellowInvisible
           
static int gray
           
static int grayAsGray
           
protected static MappedColor grayBlack
           
protected static MappedColor grayBlackAsGray
           
protected static MappedColor grayBlackInvisible
           
protected static MappedColor grayBlue
           
protected static MappedColor grayBlueAsGray
           
protected static MappedColor grayBlueInvisible
           
protected static MappedColor grayCyan
           
protected static MappedColor grayCyanAsGray
           
protected static MappedColor grayCyanInvisible
           
protected static MappedColor grayDarkGray
           
protected static MappedColor grayDarkGrayAsGray
           
protected static MappedColor grayDarkGrayInvisible
           
protected static MappedColor grayGray
           
protected static MappedColor grayGrayAsGray
           
protected static MappedColor grayGrayInvisible
           
protected static MappedColor grayGreen
           
protected static MappedColor grayGreenAsGray
           
protected static MappedColor grayGreenInvisible
           
static int grayInvisible
           
protected static MappedColor grayLightGray
           
protected static MappedColor grayLightGrayAsGray
           
protected static MappedColor grayLightGrayInvisible
           
protected static MappedColor grayMagenta
           
protected static MappedColor grayMagentaAsGray
           
protected static MappedColor grayMagentaInvisible
           
protected static MappedColor[] grayMap
           
protected static MappedColor grayOrange
           
protected static MappedColor grayOrangeAsGray
           
protected static MappedColor grayOrangeInvisible
           
protected static MappedColor grayPink
           
protected static MappedColor grayPinkAsGray
           
protected static MappedColor grayPinkInvisible
           
protected static MappedColor grayRed
           
protected static MappedColor grayRedAsGray
           
protected static MappedColor grayRedInvisible
           
protected static MappedColor grayWhite
           
protected static MappedColor grayWhiteAsGray
           
protected static MappedColor grayWhiteInvisible
           
protected static MappedColor grayYellow
           
protected static MappedColor grayYellowAsGray
           
protected static MappedColor grayYellowInvisible
           
static int green
           
static int greenAsGray
           
static int greenInvisible
           
static int lightGray
           
static int lightGrayAsGray
           
static int lightGrayInvisible
           
static int magenta
           
static int magentaAsGray
           
static int magentaInvisible
           
static int orange
           
static int orangeAsGray
           
static int orangeInvisible
           
static int pink
           
static int pinkAsGray
           
static int pinkInvisible
           
protected static MappedColor printBlack
           
protected static MappedColor printBlackAsGray
           
protected static MappedColor printBlackInvisible
           
protected static MappedColor printBlue
           
protected static MappedColor printBlueAsGray
           
protected static MappedColor printBlueInvisible
           
protected static MappedColor printCyan
           
protected static MappedColor printCyanAsGray
           
protected static MappedColor printCyanInvisible
           
protected static MappedColor printDarkGray
           
protected static MappedColor printDarkGrayAsGray
           
protected static MappedColor printDarkGrayInvisible
           
protected static MappedColor printGray
           
protected static MappedColor printGrayAsGray
           
protected static MappedColor printGrayInvisible
           
protected static MappedColor printGreen
           
protected static MappedColor printGreenAsGray
           
protected static MappedColor printGreenInvisible
           
protected static MappedColor printLightGray
           
protected static MappedColor printLightGrayAsGray
           
protected static MappedColor printLightGrayInvisible
           
protected static MappedColor printMagenta
           
protected static MappedColor printMagentaAsGray
           
protected static MappedColor printMagentaInvisible
           
protected static MappedColor[] printMap
           
protected static MappedColor printOrange
           
protected static MappedColor printOrangeAsGray
           
protected static MappedColor printOrangeInvisible
           
protected static MappedColor printPink
           
protected static MappedColor printPinkAsGray
           
protected static MappedColor printPinkInvisible
           
protected static MappedColor printRed
           
protected static MappedColor printRedAsGray
           
protected static MappedColor printRedInvisible
           
protected static MappedColor printWhite
           
protected static MappedColor printWhiteAsGray
           
protected static MappedColor printWhiteInvisible
           
protected static MappedColor printYellow
           
protected static MappedColor printYellowAsGray
           
protected static MappedColor printYellowInvisible
           
static String[] psColorTag
           
static int red
           
static int redAsGray
           
static int redInvisible
           
static int white
           
static int whiteAsGray
           
static int whiteInvisible
           
static int yellow
           
static int yellowAsGray
           
static int yellowInvisible
           
 
Constructor Summary
ColorMap()
          Constructor takes no arguments.
 
Method Summary
 Color getColor(int colorIndex)
          Retrieve a mapped color as a Java Color from the color map.
 MappedColor getMappedColor(int colorIndex)
          Retrieve a mapped color from the color map.
static String getTag(int colorIndex)
          Get a terse tag which describes which color a particular color index represents.
 void useBlackAndWhiteColorMap()
          Change to the black&white color map.
 void useDisplayColorMap()
          Change to the display color map.
 void useGrayscaleColorMap()
          Change to the grayscale color map.
 void usePrintColorMap()
          Change to the print color map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

red

public static final int red
See Also:
Constant Field Values

green

public static final int green
See Also:
Constant Field Values

blue

public static final int blue
See Also:
Constant Field Values

cyan

public static final int cyan
See Also:
Constant Field Values

magenta

public static final int magenta
See Also:
Constant Field Values

yellow

public static final int yellow
See Also:
Constant Field Values

orange

public static final int orange
See Also:
Constant Field Values

pink

public static final int pink
See Also:
Constant Field Values

white

public static final int white
See Also:
Constant Field Values

lightGray

public static final int lightGray
See Also:
Constant Field Values

gray

public static final int gray
See Also:
Constant Field Values

darkGray

public static final int darkGray
See Also:
Constant Field Values

black

public static final int black
See Also:
Constant Field Values

redAsGray

public static final int redAsGray
See Also:
Constant Field Values

greenAsGray

public static final int greenAsGray
See Also:
Constant Field Values

blueAsGray

public static final int blueAsGray
See Also:
Constant Field Values

cyanAsGray

public static final int cyanAsGray
See Also:
Constant Field Values

magentaAsGray

public static final int magentaAsGray
See Also:
Constant Field Values

yellowAsGray

public static final int yellowAsGray
See Also:
Constant Field Values

orangeAsGray

public static final int orangeAsGray
See Also:
Constant Field Values

pinkAsGray

public static final int pinkAsGray
See Also:
Constant Field Values

whiteAsGray

public static final int whiteAsGray
See Also:
Constant Field Values

lightGrayAsGray

public static final int lightGrayAsGray
See Also:
Constant Field Values

grayAsGray

public static final int grayAsGray
See Also:
Constant Field Values

darkGrayAsGray

public static final int darkGrayAsGray
See Also:
Constant Field Values

blackAsGray

public static final int blackAsGray
See Also:
Constant Field Values

redInvisible

public static final int redInvisible
See Also:
Constant Field Values

greenInvisible

public static final int greenInvisible
See Also:
Constant Field Values

blueInvisible

public static final int blueInvisible
See Also:
Constant Field Values

cyanInvisible

public static final int cyanInvisible
See Also:
Constant Field Values

magentaInvisible

public static final int magentaInvisible
See Also:
Constant Field Values

yellowInvisible

public static final int yellowInvisible
See Also:
Constant Field Values

orangeInvisible

public static final int orangeInvisible
See Also:
Constant Field Values

pinkInvisible

public static final int pinkInvisible
See Also:
Constant Field Values

whiteInvisible

public static final int whiteInvisible
See Also:
Constant Field Values

lightGrayInvisible

public static final int lightGrayInvisible
See Also:
Constant Field Values

grayInvisible

public static final int grayInvisible
See Also:
Constant Field Values

darkGrayInvisible

public static final int darkGrayInvisible
See Also:
Constant Field Values

blackInvisible

public static final int blackInvisible
See Also:
Constant Field Values

psColorTag

public static final String[] psColorTag

displayRed

protected static final MappedColor displayRed

printRed

protected static final MappedColor printRed

grayRed

protected static final MappedColor grayRed

bwRed

protected static final MappedColor bwRed

displayGreen

protected static final MappedColor displayGreen

printGreen

protected static final MappedColor printGreen

grayGreen

protected static final MappedColor grayGreen

bwGreen

protected static final MappedColor bwGreen

displayBlue

protected static final MappedColor displayBlue

printBlue

protected static final MappedColor printBlue

grayBlue

protected static final MappedColor grayBlue

bwBlue

protected static final MappedColor bwBlue

displayCyan

protected static final MappedColor displayCyan

printCyan

protected static final MappedColor printCyan

grayCyan

protected static final MappedColor grayCyan

bwCyan

protected static final MappedColor bwCyan

displayMagenta

protected static final MappedColor displayMagenta

printMagenta

protected static final MappedColor printMagenta

grayMagenta

protected static final MappedColor grayMagenta

bwMagenta

protected static final MappedColor bwMagenta

displayYellow

protected static final MappedColor displayYellow

printYellow

protected static final MappedColor printYellow

grayYellow

protected static final MappedColor grayYellow

bwYellow

protected static final MappedColor bwYellow

displayOrange

protected static final MappedColor displayOrange

printOrange

protected static final MappedColor printOrange

grayOrange

protected static final MappedColor grayOrange

bwOrange

protected static final MappedColor bwOrange

displayPink

protected static final MappedColor displayPink

printPink

protected static final MappedColor printPink

grayPink

protected static final MappedColor grayPink

bwPink

protected static final MappedColor bwPink

displayWhite

protected static final MappedColor displayWhite

printWhite

protected static final MappedColor printWhite

grayWhite

protected static final MappedColor grayWhite

bwWhite

protected static final MappedColor bwWhite

displayLightGray

protected static final MappedColor displayLightGray

printLightGray

protected static final MappedColor printLightGray

grayLightGray

protected static final MappedColor grayLightGray

bwLightGray

protected static final MappedColor bwLightGray

displayGray

protected static final MappedColor displayGray

printGray

protected static final MappedColor printGray

grayGray

protected static final MappedColor grayGray

bwGray

protected static final MappedColor bwGray

displayDarkGray

protected static final MappedColor displayDarkGray

printDarkGray

protected static final MappedColor printDarkGray

grayDarkGray

protected static final MappedColor grayDarkGray

bwDarkGray

protected static final MappedColor bwDarkGray

displayBlack

protected static final MappedColor displayBlack

printBlack

protected static final MappedColor printBlack

grayBlack

protected static final MappedColor grayBlack

bwBlack

protected static final MappedColor bwBlack

displayRedAsGray

protected static final MappedColor displayRedAsGray

printRedAsGray

protected static final MappedColor printRedAsGray

grayRedAsGray

protected static final MappedColor grayRedAsGray

bwRedAsGray

protected static final MappedColor bwRedAsGray

displayGreenAsGray

protected static final MappedColor displayGreenAsGray

printGreenAsGray

protected static final MappedColor printGreenAsGray

grayGreenAsGray

protected static final MappedColor grayGreenAsGray

bwGreenAsGray

protected static final MappedColor bwGreenAsGray

displayBlueAsGray

protected static final MappedColor displayBlueAsGray

printBlueAsGray

protected static final MappedColor printBlueAsGray

grayBlueAsGray

protected static final MappedColor grayBlueAsGray

bwBlueAsGray

protected static final MappedColor bwBlueAsGray

displayCyanAsGray

protected static final MappedColor displayCyanAsGray

printCyanAsGray

protected static final MappedColor printCyanAsGray

grayCyanAsGray

protected static final MappedColor grayCyanAsGray

bwCyanAsGray

protected static final MappedColor bwCyanAsGray

displayMagentaAsGray

protected static final MappedColor displayMagentaAsGray

printMagentaAsGray

protected static final MappedColor printMagentaAsGray

grayMagentaAsGray

protected static final MappedColor grayMagentaAsGray

bwMagentaAsGray

protected static final MappedColor bwMagentaAsGray

displayYellowAsGray

protected static final MappedColor displayYellowAsGray

printYellowAsGray

protected static final MappedColor printYellowAsGray

grayYellowAsGray

protected static final MappedColor grayYellowAsGray

bwYellowAsGray

protected static final MappedColor bwYellowAsGray

displayOrangeAsGray

protected static final MappedColor displayOrangeAsGray

printOrangeAsGray

protected static final MappedColor printOrangeAsGray

grayOrangeAsGray

protected static final MappedColor grayOrangeAsGray

bwOrangeAsGray

protected static final MappedColor bwOrangeAsGray

displayPinkAsGray

protected static final MappedColor displayPinkAsGray

printPinkAsGray

protected static final MappedColor printPinkAsGray

grayPinkAsGray

protected static final MappedColor grayPinkAsGray

bwPinkAsGray

protected static final MappedColor bwPinkAsGray

displayWhiteAsGray

protected static final MappedColor displayWhiteAsGray

printWhiteAsGray

protected static final MappedColor printWhiteAsGray

grayWhiteAsGray

protected static final MappedColor grayWhiteAsGray

bwWhiteAsGray

protected static final MappedColor bwWhiteAsGray

displayLightGrayAsGray

protected static final MappedColor displayLightGrayAsGray

printLightGrayAsGray

protected static final MappedColor printLightGrayAsGray

grayLightGrayAsGray

protected static final MappedColor grayLightGrayAsGray

bwLightGrayAsGray

protected static final MappedColor bwLightGrayAsGray

displayGrayAsGray

protected static final MappedColor displayGrayAsGray

printGrayAsGray

protected static final MappedColor printGrayAsGray

grayGrayAsGray

protected static final MappedColor grayGrayAsGray

bwGrayAsGray

protected static final MappedColor bwGrayAsGray

displayDarkGrayAsGray

protected static final MappedColor displayDarkGrayAsGray

printDarkGrayAsGray

protected static final MappedColor printDarkGrayAsGray

grayDarkGrayAsGray

protected static final MappedColor grayDarkGrayAsGray

bwDarkGrayAsGray

protected static final MappedColor bwDarkGrayAsGray

displayBlackAsGray

protected static final MappedColor displayBlackAsGray

printBlackAsGray

protected static final MappedColor printBlackAsGray

grayBlackAsGray

protected static final MappedColor grayBlackAsGray

bwBlackAsGray

protected static final MappedColor bwBlackAsGray

displayRedInvisible

protected static final MappedColor displayRedInvisible

printRedInvisible

protected static final MappedColor printRedInvisible

grayRedInvisible

protected static final MappedColor grayRedInvisible

bwRedInvisible

protected static final MappedColor bwRedInvisible

displayGreenInvisible

protected static final MappedColor displayGreenInvisible

printGreenInvisible

protected static final MappedColor printGreenInvisible

grayGreenInvisible

protected static final MappedColor grayGreenInvisible

bwGreenInvisible

protected static final MappedColor bwGreenInvisible

displayBlueInvisible

protected static final MappedColor displayBlueInvisible

printBlueInvisible

protected static final MappedColor printBlueInvisible

grayBlueInvisible

protected static final MappedColor grayBlueInvisible

bwBlueInvisible

protected static final MappedColor bwBlueInvisible

displayCyanInvisible

protected static final MappedColor displayCyanInvisible

printCyanInvisible

protected static final MappedColor printCyanInvisible

grayCyanInvisible

protected static final MappedColor grayCyanInvisible

bwCyanInvisible

protected static final MappedColor bwCyanInvisible

displayMagentaInvisible

protected static final MappedColor displayMagentaInvisible

printMagentaInvisible

protected static final MappedColor printMagentaInvisible

grayMagentaInvisible

protected static final MappedColor grayMagentaInvisible

bwMagentaInvisible

protected static final MappedColor bwMagentaInvisible

displayYellowInvisible

protected static final MappedColor displayYellowInvisible

printYellowInvisible

protected static final MappedColor printYellowInvisible

grayYellowInvisible

protected static final MappedColor grayYellowInvisible

bwYellowInvisible

protected static final MappedColor bwYellowInvisible

displayOrangeInvisible

protected static final MappedColor displayOrangeInvisible

printOrangeInvisible

protected static final MappedColor printOrangeInvisible

grayOrangeInvisible

protected static final MappedColor grayOrangeInvisible

bwOrangeInvisible

protected static final MappedColor bwOrangeInvisible

displayPinkInvisible

protected static final MappedColor displayPinkInvisible

printPinkInvisible

protected static final MappedColor printPinkInvisible

grayPinkInvisible

protected static final MappedColor grayPinkInvisible

bwPinkInvisible

protected static final MappedColor bwPinkInvisible

displayWhiteInvisible

protected static final MappedColor displayWhiteInvisible

printWhiteInvisible

protected static final MappedColor printWhiteInvisible

grayWhiteInvisible

protected static final MappedColor grayWhiteInvisible

bwWhiteInvisible

protected static final MappedColor bwWhiteInvisible

displayLightGrayInvisible

protected static final MappedColor displayLightGrayInvisible

printLightGrayInvisible

protected static final MappedColor printLightGrayInvisible

grayLightGrayInvisible

protected static final MappedColor grayLightGrayInvisible

bwLightGrayInvisible

protected static final MappedColor bwLightGrayInvisible

displayGrayInvisible

protected static final MappedColor displayGrayInvisible

printGrayInvisible

protected static final MappedColor printGrayInvisible

grayGrayInvisible

protected static final MappedColor grayGrayInvisible

bwGrayInvisible

protected static final MappedColor bwGrayInvisible

displayDarkGrayInvisible

protected static final MappedColor displayDarkGrayInvisible

printDarkGrayInvisible

protected static final MappedColor printDarkGrayInvisible

grayDarkGrayInvisible

protected static final MappedColor grayDarkGrayInvisible

bwDarkGrayInvisible

protected static final MappedColor bwDarkGrayInvisible

displayBlackInvisible

protected static final MappedColor displayBlackInvisible

printBlackInvisible

protected static final MappedColor printBlackInvisible

grayBlackInvisible

protected static final MappedColor grayBlackInvisible

bwBlackInvisible

protected static final MappedColor bwBlackInvisible

displayMap

protected static final MappedColor[] displayMap

printMap

protected static final MappedColor[] printMap

grayMap

protected static final MappedColor[] grayMap

bwMap

protected static final MappedColor[] bwMap

currentColorMap

protected MappedColor[] currentColorMap
Constructor Detail

ColorMap

public ColorMap()
Constructor takes no arguments. The display color map is the default.

Method Detail

useDisplayColorMap

public void useDisplayColorMap()
Change to the display color map.


usePrintColorMap

public void usePrintColorMap()
Change to the print color map.


useGrayscaleColorMap

public void useGrayscaleColorMap()
Change to the grayscale color map.


useBlackAndWhiteColorMap

public void useBlackAndWhiteColorMap()
Change to the black&white color map.


getMappedColor

public MappedColor getMappedColor(int colorIndex)
Retrieve a mapped color from the color map.


getColor

public Color getColor(int colorIndex)
Retrieve a mapped color as a Java Color from the color map.


getTag

public static String getTag(int colorIndex)
Get a terse tag which describes which color a particular color index represents.


FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.