|
||||||||||
| 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.SimpleColorMapWidget
A "simple" color widget that allows users to interactively map numeric data to RGB/RGBA color maps.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
(package private) BaseRGBMap |
baseMap
|
(package private) ColorPreview |
preview
|
(package private) ArrowSlider |
slider
|
| 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.Container |
|
| 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 | |
SimpleColorMapWidget(String name,
Control ctl,
float min,
float max)
Construct a SimpleColorMapWidget. |
|
SimpleColorMapWidget(String name,
float[][] in_table,
float min,
float max)
Deprecated. Use SimpleColorMapWidget(String, BaseColorControl, float, float) |
|
| Method Summary | |
(package private) static float[][] |
copy_table(float[][] table)
Utility routine used to make a copy of a 2D float array. |
BaseRGBMap |
getBaseMap()
|
ColorPreview |
getPreview()
|
ArrowSlider |
getSlider()
|
static void |
main(String[] args)
|
(package private) void |
rebuildGUI()
|
void |
setTable(float[][] table)
Use a new table of color values. |
(package private) static float[][] |
table_reorg(float[][] table)
Utility routine used convert a table with dimensions [X][Y]
to a table with dimensions [Y][X]. |
(package private) void |
updateSlider(float min,
float max)
Internal convenience routine used to update the slider. |
| 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 |
| Field Detail |
BaseRGBMap baseMap
ColorPreview preview
ArrowSlider slider
| Constructor Detail |
public SimpleColorMapWidget(String name,
float[][] in_table,
float min,
float max)
throws RemoteException,
VisADException
SimpleColorMapWidget.
The initial color table (if non-null)
should be a float[resolution][dimension], where
dimension is either
3 for Display.RGB or
4 for Display.RGB) with values
between 0.0f and 1.0f.
name - Name used for slider label.in_table - Initial table of color values.min - Minimum value for slider.max - Maximum value for slider.
public SimpleColorMapWidget(String name,
Control ctl,
float min,
float max)
throws RemoteException,
VisADException
SimpleColorMapWidget.
The initial color table (if non-null)
should be a float[resolution][dimension], where
dimension is either
3 for Display.RGB or
4 for Display.RGB) with values
between 0.0f and 1.0f.
name - Name used for slider label.ctl - Control to which this widget is attached.min - Minimum value for slider.max - Maximum value for slider.| Method Detail |
void rebuildGUI()
void updateSlider(float min,
float max)
min - Minimum value for slider.max - Maximum value for slider.public BaseRGBMap getBaseMap()
public ColorPreview getPreview()
public ArrowSlider getSlider()
public void setTable(float[][] table)
throws RemoteException,
VisADException
table - New color values.
RemoteException
VisADExceptionstatic float[][] copy_table(float[][] table)
float array.
table - Table to copy.
static float[][] table_reorg(float[][] table)
[X][Y]
to a table with dimensions [Y][X].
table - Table to reorganize.
public static void main(String[] args)
throws RemoteException,
VisADException
RemoteException
VisADException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||