com.bbn.openmap.dataAccess.cgm
Class ColorTable

java.lang.Object
  extended by com.bbn.openmap.dataAccess.cgm.Command
      extended by com.bbn.openmap.dataAccess.cgm.ColorTable
All Implemented Interfaces:
java.lang.Cloneable

public class ColorTable
extends Command

A color table for indexed colors.

Author:
dietrick

Field Summary
protected  java.awt.Color[] colors
           
protected  boolean drawColorTable
           
 
Fields inherited from class com.bbn.openmap.dataAccess.cgm.Command
logger
 
Constructor Summary
ColorTable(int ec, int eid, int l, java.io.DataInputStream in)
           
 
Method Summary
 java.awt.Color get(int index)
           
 void paint(CGMDisplay d)
           
 java.lang.String toString()
           
 
Methods inherited from class com.bbn.openmap.dataAccess.cgm.Command
clone, makeInt, makeString, makeString, read, read16, scale
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

colors

protected java.awt.Color[] colors

drawColorTable

protected boolean drawColorTable
Constructor Detail

ColorTable

public ColorTable(int ec,
                  int eid,
                  int l,
                  java.io.DataInputStream in)
           throws java.io.IOException
Throws:
java.io.IOException
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class Command

get

public java.awt.Color get(int index)

paint

public void paint(CGMDisplay d)
Overrides:
paint in class Command


Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details