|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
visad.util.ColorMap
public abstract class ColorMap
The abstract class that all color-mapping widgets must extend. This class manages all of the listener notification for the ColorMaps.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ColorMap()
|
|
| Method Summary | |
|---|---|
void |
addColorChangeListener(ColorChangeListener c)
Add a ColorChangeListener to the listeners list |
Color |
getColor(float value)
Maps a floating point value (in the range 0 to 1) onto a Color, returns Color.black if the number is out of range If you're getting more than 1 or 2 colors, use getColors() instead. |
abstract float[][] |
getColorMap()
Returns a copy of the ColorMap |
Color[] |
getColors(float start,
float end,
int num)
Map a range of floating point values (in the range 0 to 1) onto a range of Colors. |
abstract int |
getMapDimension()
Returns the dimension of the map |
abstract int |
getMapResolution()
Returns the current map resolution |
abstract float[] |
getRGBTuple(float value)
Maps a floating point value (in the range 0 to 1) onto an RGB triplet of floating point numbers in the range 0 to 1) If you're getting more than 1 or 2 tuples, use getRGBTuples() instead. |
abstract float[][] |
getRGBTuples(float start,
float end,
int count)
Maps the specified floating point values (in the range 0 to 1) onto a group of RGB triplets of floating point numbers in the range 0 to 1. |
abstract float[] |
getTuple(float value)
Maps a floating point value (in the range 0 to 1) into a tuple with dimension of the map If you're getting more than 1 or 2 tuples, use getTuples() instead. |
abstract float[][] |
getTuples(float start,
float end,
int count)
Maps the specified floating point values (in the range 0 to 1) onto a group of floating point tuples with the dimension of the map. |
protected void |
notifyListeners(ColorChangeEvent e)
Notify the ColorChangeListerers that the color widget has changed |
void |
removeColorChangeListener(ColorChangeListener c)
Remove a ColorChangeListener from the listeners list |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ColorMap()
| Method Detail |
|---|
public Color getColor(float value)
public Color[] getColors(float start,
float end,
int num)
public abstract float[] getRGBTuple(float value)
public abstract float[][] getRGBTuples(float start,
float end,
int count)
start - the first value to translateend - the last value to translatecount - the number of values (including the two endpoints)
to be returned.public abstract float[] getTuple(float value)
public abstract float[][] getTuples(float start,
float end,
int count)
start - The first value to translateend - The last value to translatecount - The number of values (including the two endpoints)
to be returned.public abstract int getMapResolution()
public abstract int getMapDimension()
public abstract float[][] getColorMap()
public void addColorChangeListener(ColorChangeListener c)
public void removeColorChangeListener(ColorChangeListener c)
protected void notifyListeners(ColorChangeEvent e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||