public class DisplayColors
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.awt.Color |
getLineColor(int index)
Gets a line color that matches the index.
|
static java.awt.Color |
getMarkerColor(int index)
Gets a marker color that matches the index.
|
static java.awt.Color[] |
getPhaseToColorArray()
Gets an array of colors.
|
static java.awt.Color |
phaseToColor(double phi)
Converts a phase angle in the range [-Pi,Pi] to a color.
|
static java.awt.Color |
randomColor()
Gets a random color.
|
public static java.awt.Color[] getPhaseToColorArray()
public static java.awt.Color phaseToColor(double phi)
phi
- phase anglepublic static java.awt.Color randomColor()
public static java.awt.Color getLineColor(int index)
index
- intpublic static java.awt.Color getMarkerColor(int index)
index
- int