|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.display2d.ComplexColorMapper
public class ComplexColorMapper
| Field Summary | |
|---|---|
protected ZExpansion |
zMap
|
| Constructor Summary | |
|---|---|
ComplexColorMapper(double _ceil)
Constructor ComplexColorMapper |
|
| Method Summary | |
|---|---|
java.awt.Color |
complexToColor(double re,
double im)
Converts a complex number to hue, saturation, and brightness. |
double |
getCeil()
Gets the ceiling color. |
java.awt.Color |
getCeilColor()
Gets the ceiling color. |
java.awt.Color |
phaseToColor(double phi)
Converts a phase angle in the range [-Pi,Pi] to hue, saturation, and brightness. |
java.awt.Color |
pointToColor(double[] vertex)
Converts a vertex point array of samples to hue, saturation, and brightness. |
java.awt.Color |
samplesToColor(double[] samples)
Converts an array of samples to hue, saturation, and brightness. |
byte[] |
samplesToComponents(double[] samples,
byte[] rgb)
Converts a double to color components. |
void |
setCeilColor(java.awt.Color _ceilColor)
Sets the ceiling. |
void |
setScale(double _ceil)
Sets the z scale. |
void |
setZMap(ZExpansion map)
Sets map for z values. |
javax.swing.JFrame |
showLegend()
Shows the phase legend. |
static javax.swing.JFrame |
showPhaseLegend()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ZExpansion zMap
| Constructor Detail |
|---|
public ComplexColorMapper(double _ceil)
_ceil - | Method Detail |
|---|
public static javax.swing.JFrame showPhaseLegend()
public javax.swing.JFrame showLegend()
public void setScale(double _ceil)
_ceil -
public byte[] samplesToComponents(double[] samples,
byte[] rgb)
samples - double[]rgb - byte[]
public java.awt.Color phaseToColor(double phi)
phi - phase angle
public java.awt.Color complexToColor(double re,
double im)
re - im -
public java.awt.Color samplesToColor(double[] samples)
samples -
public java.awt.Color pointToColor(double[] vertex)
vertex - the point
public void setZMap(ZExpansion map)
map - ZExpansionpublic double getCeil()
public java.awt.Color getCeilColor()
public void setCeilColor(java.awt.Color _ceilColor)
_ceilColor -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||