public class ColorTableWidget extends ControlWidget implements java.beans.PropertyChangeListener, RangeWidget, Removable
ControlWidget for the color table information in the
control window| Constructor and Description |
|---|
ColorTableWidget(DisplayControlImpl theDisplayControl,
ColorTable ct)
Construct a ColorTableWidget
|
ColorTableWidget(DisplayControlImpl theDisplayControl,
ColorTableManager colorTableManager,
ColorTable ct,
Range r)
Construct a ColorTableWidget
|
| Modifier and Type | Method and Description |
|---|---|
void |
doEdit()
Called to edit color table
|
void |
doRemove()
Called to remove this from the display.
|
void |
doUseDefault()
use the default colortable
|
void |
fillList(java.util.List l,
int columns)
Fill the list of components and set them in a certain number of
columns.
|
ColorTable |
getColorTable()
Get the color table.
|
javax.swing.JComponent |
getLegendPanel(int legendType)
Get the component for the legend panel.
|
Range |
getRange()
Get the range for the data
|
javax.swing.JMenu |
makeMenu()
Make the menu for the color table.
|
java.util.ArrayList |
makeMenuItems()
Make the menu items for the widget.
|
void |
propertyChange(java.beans.PropertyChangeEvent e)
Public implemenation for property changes
|
void |
rangePopup()
Show the change range dialog
|
protected void |
revertToDefaultRange()
Revert to the default range of the color table (control dependent)
|
void |
setColorPalette(float[][] palette)
Set the color palette on the previews.
|
void |
setColorTable(ColorTable colorTable)
Set the color table.
|
void |
setRange(Range r)
Set the range for the color table.
|
void |
setRangeDialog(Range r)
Set the value in the min max fields in the range dialog
|
void |
setRangeFromPopup(java.lang.String cmd)
Set the range in the dialog
|
void |
setTransparency(java.lang.Integer v)
Set the transparency
|
void |
showChangeRangeDialog()
Change the range
|
void |
showMenu(java.awt.Component from)
Show menu anchored at the component location
|
actionPerformed, fillList, fillList, getDisplayControl, getDisplayConventions, logException, userMessagepublic ColorTableWidget(DisplayControlImpl theDisplayControl, ColorTableManager colorTableManager, ColorTable ct, Range r) throws java.rmi.RemoteException, visad.VisADException
theDisplayControl - the associated DisplayControlcolorTableManager - the color table managerct - the color tabler - range for the tablejava.rmi.RemoteException - Java RMI errorvisad.VisADException - VisAD errorpublic ColorTableWidget(DisplayControlImpl theDisplayControl, ColorTable ct) throws java.rmi.RemoteException, visad.VisADException
theDisplayControl - the associated DisplayControlct - the color tablejava.rmi.RemoteException - Java RMI errorvisad.VisADException - VisAD errorpublic void doRemove()
doRemove in interface RemovabledoRemove in class ControlWidgetpublic javax.swing.JComponent getLegendPanel(int legendType)
legendType - type of legendDisplayControl.BOTTOM_LEGEND,
DisplayControl.SIDE_LEGENDpublic void setRangeFromPopup(java.lang.String cmd)
cmd - Which onepublic void setRangeDialog(Range r)
setRangeDialog in interface RangeWidgetr - The rangepublic void rangePopup()
public void showChangeRangeDialog()
public void doEdit()
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in interface java.beans.PropertyChangeListenere - event for property change.public void showMenu(java.awt.Component from)
from - component for anchoringpublic javax.swing.JMenu makeMenu()
makeMenuItems()public void doUseDefault()
public void setTransparency(java.lang.Integer v)
v - Integer, 0-100, of the inverse transparencypublic java.util.ArrayList makeMenuItems()
protected void revertToDefaultRange()
public Range getRange()
public void setRange(Range r)
r - range of tablepublic void setColorPalette(float[][] palette)
throws java.rmi.RemoteException,
visad.VisADException
palette - new palettejava.rmi.RemoteException - Java RMI errorvisad.VisADException - VisAD errorpublic void setColorTable(ColorTable colorTable) throws java.rmi.RemoteException, visad.VisADException
colorTable - new color tablejava.rmi.RemoteException - Java RMI errorvisad.VisADException - VisAD errorpublic ColorTable getColorTable()
public void fillList(java.util.List l,
int columns)
fillList in class ControlWidgetl - List of componentscolumns - number of columns