|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.ui.WindowHolder
ucar.unidata.ui.colortable.ColorTableEditor
public class ColorTableEditor
Class ColorTableEditor handles some of the editing of colortables.
It wraps a ColorTableCanvas that does most of the actual work
but this class serves as the intermediary between the canvas and calling
code
| Field Summary | |
|---|---|
static LogUtil.LogCategory |
log_
For logging errors |
| Fields inherited from class ucar.unidata.ui.WindowHolder |
|---|
contents, dialog, frame, window |
| Constructor Summary | |
|---|---|
ColorTableEditor(ColorTableManager colorTableManager)
Create a stand alone color table editor |
|
ColorTableEditor(ColorTableManager colorTableManager,
ColorTable table)
Create an editor for the given color table |
|
ColorTableEditor(ColorTableManager colorTableManager,
ColorTable table,
PropertyChangeListener listener)
Create an editor for the given color table |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Handle the action (eg: CLOSE, APPLY, CANCEL, etc). |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add the given property change listener |
void |
doClose()
Close the window |
protected void |
doMakeFileMenu(JMenu fileMenu)
Add the file menu items |
protected JMenuBar |
doMakeMenuBar()
Make the menu bar |
void |
doMakeViewMenu()
Make the View menu. |
ColorTableCanvas |
getCanvas()
Get the canvas |
ColorTableManager |
getColorTableManager()
Get the manager |
String |
getColorTableName()
Get the name of the currently edited color table |
boolean |
getOk()
Was OK pressed |
String |
getWindowTitle()
_more_ |
static void |
main(String[] args)
Test main |
void |
setColorTable(ColorTable ct)
Set the current color table |
void |
setColorTable(String ctName)
Find the color table with the given name and use it |
protected void |
setDialogTitle()
Set the title of the window to the default |
static void |
setHelpTopDir(String topDir)
|
void |
setRange(Range range)
Set the range used by the color table canvas |
void |
setVisible(boolean v)
Set the visiblity of the window |
void |
show()
Show the window |
void |
updateViewMenu(JMenu m)
|
| Methods inherited from class ucar.unidata.ui.WindowHolder |
|---|
close, doMakeContents, getContents, getDialog, getFrame, getWindow, isShowing, removeAll, setWindowTitle, shouldMakeDialog, show, showModal, toFront, windowIsClosing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static LogUtil.LogCategory log_
| Constructor Detail |
|---|
public ColorTableEditor(ColorTableManager colorTableManager)
colorTableManager - The manager
public ColorTableEditor(ColorTableManager colorTableManager,
ColorTable table)
colorTableManager - The managertable - The color table (may be null)
public ColorTableEditor(ColorTableManager colorTableManager,
ColorTable table,
PropertyChangeListener listener)
colorTableManager - The managertable - The color table (may be null)listener - The property change listener to route events to. May be null| Method Detail |
|---|
public void show()
show in class WindowHolderpublic ColorTableManager getColorTableManager()
public String getColorTableName()
public String getWindowTitle()
getWindowTitle in class WindowHolderpublic void updateViewMenu(JMenu m)
protected JMenuBar doMakeMenuBar()
public ColorTableCanvas getCanvas()
protected void doMakeFileMenu(JMenu fileMenu)
fileMenu - The file menupublic void doMakeViewMenu()
public void setColorTable(String ctName)
ctName - The color table name to lookuppublic void setColorTable(ColorTable ct)
ct - The new color table to usepublic void setRange(Range range)
range - The new rangepublic void addPropertyChangeListener(PropertyChangeListener listener)
listener - The listener to route events to.public void setVisible(boolean v)
v - On or off.protected void setDialogTitle()
public void doClose()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListeneractionPerformed in class WindowHoldere - The actionpublic static void setHelpTopDir(String topDir)
public boolean getOk()
public static void main(String[] args)
args - cmd line args
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||