|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel visad.ss.BasicSSCell visad.ss.FancySSCell
public class FancySSCell
FancySSCell is an extension of BasicSSCell with extra options, such as a file loader dialog and a dialog to set up ScalarMaps. It provides an example of GUI extensions to BasicSSCell.
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 | |
---|---|
protected boolean |
AutoDetect
Whether this cell should auto-detect mappings for data. |
protected boolean |
AutoShowControls
Whether this cell should auto-display its widget frame. |
protected boolean |
AutoSwitch
Whether this cell should auto-switch to 3-D. |
static Border |
B_DIRECT
Border for cell with data set directly. |
static Border |
B_EMPTY
Border for cell with no data. |
static Border |
B_FORMULA
Border for cell with formula. |
static Border |
B_HIGHLIGHT
Border for selected cell. |
static Border |
B_MULTI
Border for cell with multiple data objects. |
static Border |
B_REMOTE
Border for cell with data from a remote source. |
static Border |
B_RMI
Border for cell with RMI address. |
static Border |
B_UNKNOWN
Border for cell with data from an unknown source. |
static Border |
B_URL
Border for cell with file or URL. |
static Color |
DARK_BLUE
Dark blue. |
static Color |
DARK_CYAN
Dark cyan. |
static Color |
DARK_GREEN
Dark green. |
static Color |
DARK_PURPLE
Dark purple. |
static Color |
DARK_RED
Dark red. |
static Color |
DARK_YELLOW
Dark yellow. |
protected static JFileChooser |
FileBox
File chooser for loading and saving data. |
protected Frame |
Parent
Parent frame. |
protected boolean |
Selected
Whether this cell is selected. |
protected JFrame |
WidgetFrame
Associated JFrame, for use with VisAD Controls. |
Fields inherited from class visad.ss.BasicSSCell |
---|
ADD_DATA, ADD_SOURCE, CanDo3D, CellData, CollabID, DEBUG, DEBUG_LEVEL, defaultFM, Dim, DIRECT_SOURCE, DisplayEnabled, DListen, Errors, fm, FORMULA_SOURCE, HasDisplay, HasMappings, IsRemote, IsSlave, JAVA2D_2D, JAVA3D_2D, JAVA3D_3D, Loading, Lock, MAX_ID, MDisplay, messages, Name, NewClient, POLLING_INTERVAL, Possible3D, REMOTE_SOURCE, RemoteMDisplay, RemoteVDisplay, RemoteVServer, RemoteVSlave, REMOVE_DATA, RMI_SOURCE, Saving, Servers, SET_DIM, SET_ERRORS, SET_MAPS, SListen, SSCellVector, STATUS, UNKNOWN_SOURCE, UPDATE_DATA, UPDATE_DEPENDENCIES, URL_SOURCE, VDisplay, VDPanel |
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 | |
---|---|
FancySSCell(String name)
Constructs a new FancySSCell with the given name. |
|
FancySSCell(String name,
FormulaManager fman,
Frame parent)
Constructs a new FancySSCell with the given name, formula manager, and parent Frame. |
|
FancySSCell(String name,
FormulaManager fman,
RemoteServer rs,
boolean slave,
String save,
Frame parent)
Constructs a new, possibly slaved, FancySSCell with the given name, formula manager, remote server, save string, and parent Frame. |
|
FancySSCell(String name,
FormulaManager fman,
RemoteServer rs,
String save,
Frame parent)
Constructs a new FancySSCell with the given name, formula manager, remote server, save string, and parent Frame. |
|
FancySSCell(String name,
Frame parent)
Constructs a new FancySSCell with the given name and parent Frame. |
|
FancySSCell(String name,
RemoteServer rs,
Frame parent)
Constructs a new FancySSCell with the given name, remote server, and parent Frame. |
|
FancySSCell(String name,
String save,
Frame parent)
Constructs a new FancySSCell with the given name, save string, and parent Frame. |
Method Summary | |
---|---|
void |
addMapDialog()
Lets the user specify mappings between this cell's data and display. |
protected SSCellData |
addReferenceImpl(int id,
DataReferenceImpl ref,
ConstantMap[] cmaps,
String source,
int type,
boolean notify,
boolean checkErrors)
Does the work of adding the given DataReference, from the given source of the specified type. |
protected void |
autoDetectMappings()
Guesses a good set of mappings for this cell's data and applies them. |
void |
captureDialog()
Captures display image and saves to a file selected by the user, in JPEG format. |
boolean |
confirmClear()
Asks user to confirm clearing the cell if any other cell depends on it. |
boolean |
getAutoDetect()
Returns whether this FancySSCell auto-detects its mappings. |
boolean |
getAutoShowControls()
Returns whether this FancySSCell auto-displays its widget frame. |
boolean |
getAutoSwitch()
Returns whether this FancySSCell auto-switches to 3-D. |
boolean |
hasControls()
Returns whether the cell has any associated controls. |
void |
hideWidgetFrame()
Hides the widgets for altering controls. |
void |
loadDataDialog()
Imports data from a file selected by the user. |
void |
loadDataRMI(String s)
Deprecated. Use loadDataSource(String, RMI_SOURCE) instead. |
void |
loadDataSource(String source)
Imports a data object from the given source of unknown type, in a separate thread. |
void |
loadDataSource(String source,
int type)
Imports a data object from the given source of the specified type, in a separate thread. |
void |
loadDataString(String s)
Deprecated. Use loadDataSource(String, URL_SOURCE) instead. |
void |
loadDataURL(URL u)
Deprecated. Use loadDataSource(String, URL_SOURCE) instead. |
void |
removeData(String varName)
Removes the Data object corresponding to the given variable name from this cell. |
void |
saveDataDialog(boolean netcdf)
Deprecated. Use saveDataDialog(String, Form) instead. |
void |
saveDataDialog(Form saveForm)
Deprecated. Use saveDataDialog(String, Form) instead. |
void |
saveDataDialog(String varName,
Form saveForm)
Saves a Data object to a file selected by the user, using the given data form. |
void |
setAutoDetect(boolean value)
Specifies whether this FancySSCell should auto-detect its mappings. |
void |
setAutoShowControls(boolean value)
Specifies whether this FancySSCell should auto-display its widget frame. |
void |
setAutoSwitch(boolean value)
Specifies whether this FancySSCell should auto-switch to 3-D. |
void |
setBorderEnabled(boolean value)
Specifies whether the FancySSCell has a border. |
void |
setMaps(ScalarMap[] maps)
Sets the ScalarMaps for this cell and creates needed control widgets. |
void |
setMapsAuto(ScalarMap[] maps)
Switches to 3-D mode if necessary and available. |
void |
setSelected(boolean value)
Specifies whether the FancySSCell has a highlighted border. |
void |
showWidgetFrame()
Shows the widgets for altering controls (if there are any). |
boolean |
smartClear()
Clears the cell if no other cell depends on it; otherwise, ask the user "Are you sure? |
boolean |
smartDestroy()
Permanently destroy this cell, asking user for confirmation first if other cells depend on it; return true if the cell was destroyed. |
void |
ssCellChanged(SSCellChangeEvent e)
Re-detects mappings when this cell's data changes. |
void |
waitForMaps()
Blocks until mapping auto-detection is complete. |
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 |
---|
public static final Color DARK_RED
public static final Color DARK_GREEN
public static final Color DARK_BLUE
public static final Color DARK_YELLOW
public static final Color DARK_PURPLE
public static final Color DARK_CYAN
public static final Border B_EMPTY
public static final Border B_HIGHLIGHT
public static final Border B_UNKNOWN
public static final Border B_DIRECT
public static final Border B_URL
public static final Border B_FORMULA
public static final Border B_RMI
public static final Border B_REMOTE
public static final Border B_MULTI
protected static JFileChooser FileBox
protected Frame Parent
protected JFrame WidgetFrame
protected boolean Selected
protected boolean AutoSwitch
protected boolean AutoDetect
protected boolean AutoShowControls
Constructor Detail |
---|
public FancySSCell(String name) throws VisADException, RemoteException
VisADException
RemoteException
public FancySSCell(String name, Frame parent) throws VisADException, RemoteException
VisADException
RemoteException
public FancySSCell(String name, FormulaManager fman, Frame parent) throws VisADException, RemoteException
VisADException
RemoteException
public FancySSCell(String name, RemoteServer rs, Frame parent) throws VisADException, RemoteException
VisADException
RemoteException
public FancySSCell(String name, String save, Frame parent) throws VisADException, RemoteException
VisADException
RemoteException
public FancySSCell(String name, FormulaManager fman, RemoteServer rs, String save, Frame parent) throws VisADException, RemoteException
VisADException
RemoteException
public FancySSCell(String name, FormulaManager fman, RemoteServer rs, boolean slave, String save, Frame parent) throws VisADException, RemoteException
VisADException
RemoteException
Method Detail |
---|
public void removeData(String varName) throws VisADException, RemoteException
removeData
in class BasicSSCell
VisADException
RemoteException
public void loadDataSource(String source)
public void loadDataSource(String source, int type)
public void loadDataDialog()
public void saveDataDialog(String varName, Form saveForm)
public void waitForMaps()
protected SSCellData addReferenceImpl(int id, DataReferenceImpl ref, ConstantMap[] cmaps, String source, int type, boolean notify, boolean checkErrors) throws VisADException, RemoteException
addReferenceImpl
in class BasicSSCell
VisADException
RemoteException
public boolean confirmClear()
public boolean smartClear() throws VisADException, RemoteException
VisADException
RemoteException
public boolean smartDestroy() throws VisADException, RemoteException
VisADException
RemoteException
public void setMapsAuto(ScalarMap[] maps) throws VisADException, RemoteException
VisADException
RemoteException
public void setMaps(ScalarMap[] maps) throws VisADException, RemoteException
setMaps
in class BasicSSCell
VisADException
RemoteException
public void addMapDialog()
protected void autoDetectMappings() throws VisADException, RemoteException
VisADException
RemoteException
public void showWidgetFrame()
public void hideWidgetFrame()
public void setBorderEnabled(boolean value)
public void setSelected(boolean value)
public void setAutoSwitch(boolean value)
public void setAutoDetect(boolean value)
public void setAutoShowControls(boolean value)
public void ssCellChanged(SSCellChangeEvent e)
ssCellChanged
in interface SSCellListener
public void captureDialog()
public boolean getAutoSwitch()
public boolean getAutoDetect()
public boolean getAutoShowControls()
public boolean hasControls()
public void loadDataRMI(String s)
public void loadDataString(String s)
public void loadDataURL(URL u)
public void saveDataDialog(boolean netcdf)
public void saveDataDialog(Form saveForm)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |