|
/**
* Author Mark Bishop; 2014
* License GNU v3;
* This class is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import java.awt.Color;
/**
* Class responsibility: provide a set of appropriate colors for
* multi-resolution plots.
*
*/
public enum Colors {
Black, Red, Green, Blue, Cyan, Orange, Pink, Magenta, Grey;
public Color getColor() {
switch (this) {
case Black:
return Color.black;
case Red:
return Color.red;
case Green:
return Color.green;
case Blue:
return Color.blue;
case Cyan:
return Color.cyan;
case Orange:
return Color.orange;
case Pink:
return Color.pink;
case Magenta:
return Color.magenta;
case Grey:
return Color.gray;
}
return Color.DARK_GRAY;
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am an analytical chemist and an educator. I program primarily to perform matrix computations for regression analysis, process signals, acquire data from sensors, and to control devices.
I participate in many open source development communities and Linux user forums. I do contract work for an environmental analytical laboratory, where I am primarily focused on LIMS programming and network administration.
I am a member of several community-interest groups such as the Prince Edward Island Watershed Alliance, the Lot 11 and Area Watershed Management Group, and the Petersham Historic Commission.