|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.idv.control.ControlWidget
ucar.unidata.idv.control.ColorTableWidget
public class ColorTableWidget
A ControlWidget for the color table information in the
control window
| Constructor Summary | |
|---|---|
ColorTableWidget(DisplayControlImpl theDisplayControl,
ColorTable ct)
Construct a ColorTableWidget |
|
ColorTableWidget(DisplayControlImpl theDisplayControl,
ColorTableManager colorTableManager,
ColorTable ct,
Range r)
Construct a ColorTableWidget |
|
| Method Summary | |
|---|---|
void |
doEdit()
Called to edit color table |
void |
doRemove()
Called to remove this from the display. |
void |
doUseDefault()
use the default colortable |
void |
fillList(List l,
int columns)
Fill the list of components and set them in a certain number of columns. |
JComponent |
getLegendPanel(int legendType)
Get the component for the legend panel. |
Range |
getRange()
Get the range for the data |
JMenu |
makeMenu()
Make the menu for the color table. |
ArrayList |
makeMenuItems()
Make the menu items for the widget. |
void |
propertyChange(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(String cmd)
Set the range in the dialog |
void |
setTransparency(Integer v)
Set the transparency |
void |
showChangeRangeDialog()
Change the range |
void |
showMenu(Component from)
Show menu anchored at the component location |
| Methods inherited from class ucar.unidata.idv.control.ControlWidget |
|---|
actionPerformed, fillList, fillList, getDisplayControl, getDisplayConventions, logException, userMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColorTableWidget(DisplayControlImpl theDisplayControl,
ColorTableManager colorTableManager,
ColorTable ct,
Range r)
throws RemoteException,
VisADException
theDisplayControl - the associated DisplayControlcolorTableManager - the color table managerct - the color tabler - range for the table
RemoteException - Java RMI error
VisADException - VisAD error
public ColorTableWidget(DisplayControlImpl theDisplayControl,
ColorTable ct)
throws RemoteException,
VisADException
theDisplayControl - the associated DisplayControlct - the color table
RemoteException - Java RMI error
VisADException - VisAD error| Method Detail |
|---|
public void doRemove()
doRemove in class ControlWidgetpublic JComponent getLegendPanel(int legendType)
legendType - type of legend
DisplayControl.BOTTOM_LEGEND,
DisplayControl.SIDE_LEGENDpublic void setRangeFromPopup(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(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListenere - event for property change.public void showMenu(Component from)
from - component for anchoringpublic JMenu makeMenu()
makeMenuItems()public void doUseDefault()
public void setTransparency(Integer v)
v - Integer, 0-100, of the inverse transparencypublic ArrayList makeMenuItems()
protected void revertToDefaultRange()
public Range getRange()
public void setRange(Range r)
r - range of table
public void setColorPalette(float[][] palette)
throws RemoteException,
VisADException
palette - new palette
RemoteException - Java RMI error
VisADException - VisAD error
public void setColorTable(ColorTable colorTable)
throws RemoteException,
VisADException
colorTable - new color table
RemoteException - Java RMI error
VisADException - VisAD error
public void fillList(List l,
int columns)
fillList in class ControlWidgetl - List of componentscolumns - number of columns
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||