|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.display2d.VectorColorMapper
public class VectorColorMapper
| Field Summary | |
|---|---|
static int |
BLACK
|
static int |
BLUE
|
static int |
GRAY
|
static int |
GREEN
|
static int |
RED
|
static int |
SPECTRUM
|
| Constructor Summary | |
|---|---|
VectorColorMapper(int _numColors,
double _ceil)
Constructor VectorColorMapper |
|
| Method Summary | |
|---|---|
void |
checkPallet(java.awt.Color backgroundColor)
Checks to see if background color matches the color palette background. |
java.awt.Color |
doubleToColor(double mag)
Converts a double to a color. |
java.awt.Color |
doubleToCompColor(double mag)
Converts a double to a the complementary color. |
double |
getCeiling()
|
double |
getFloor()
|
javax.swing.JFrame |
getLegendFrame()
|
void |
setNumberOfColors(int _numColors)
Sets the number of colors |
void |
setPaletteType(int _paletteType)
Sets the color palette. |
void |
setScale(double _ceil)
Sets the scale. |
javax.swing.JFrame |
showLegend()
|
void |
updateLegend()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SPECTRUM
public static final int RED
public static final int BLUE
public static final int GREEN
public static final int GRAY
public static final int BLACK
| Constructor Detail |
|---|
public VectorColorMapper(int _numColors,
double _ceil)
_numColors - _ceil - | Method Detail |
|---|
public void setNumberOfColors(int _numColors)
_numColors - public double getFloor()
public double getCeiling()
public void setPaletteType(int _paletteType)
_paletteType - public void checkPallet(java.awt.Color backgroundColor)
backgroundColor - public void setScale(double _ceil)
_ceil - public java.awt.Color doubleToCompColor(double mag)
mag -
public java.awt.Color doubleToColor(double mag)
mag -
public javax.swing.JFrame showLegend()
public javax.swing.JFrame getLegendFrame()
public void updateLegend()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||