|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.display.DisplayColors
public class DisplayColors
Defines color palette used by OSP components.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.awt.Color[] getPhaseToColorArray()
public static java.awt.Color phaseToColor(double phi)
phi
- phase angle
public static java.awt.Color randomColor()
public static java.awt.Color getLineColor(int index)
index
- int
public static java.awt.Color getMarkerColor(int index)
index
- int
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |