source: ether_statistics/service/implementation/gov/noaa/pmel/sgt/IndexedColor.java @ 569

Last change on this file since 569 was 569, checked in by vmipsl, 12 years ago

Nouveau projet

File size: 1.1 KB
Line 
1/*
2 * $Id: IndexedColor.java,v 1.4 2003/08/22 23:02:32 dwd Exp $
3 *
4 * This software is provided by NOAA for full, free and open release.  It is
5 * understood by the recipient/user that NOAA assumes no liability for any
6 * errors contained in the code.  Although this software is released without
7 * conditions or restrictions in its use, it is expected that appropriate
8 * credit be given to its author and to the National Oceanic and Atmospheric
9 * Administration should the software be included by the recipient as an
10 * element in other product development.
11 */
12
13package gov.noaa.pmel.sgt;
14
15import java.awt.Color;
16
17/**
18 * Defines the access methods for color maps that support indexed color.
19 *
20 * @author Donald Denbo
21 * @version $Revision: 1.4 $, $Date: 2003/08/22 23:02:32 $
22 * @since 2.0
23 **/
24public interface IndexedColor {
25
26  /**
27   *
28   * @param index
29   * @return
30   * @since 3.0
31   */
32  Color getColorByIndex(int index);
33
34  void setColor(int index, Color color);
35
36  void setColor(int index, int red, int green, int blue);
37  /**
38   * Get the maximum legal value of the color index.
39   */
40  int getMaximumIndex();
41}
Note: See TracBrowser for help on using the repository browser.