Documentation of 'visad.ss.BasicSSCell' Java class
BasicSSCell
visad.ss

Class BasicSSCell

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, DisplayListener, MessageListener
    Direct Known Subclasses:
    FancySSCell


    public class BasicSSCell
    extends javax.swing.JPanel
    implements DisplayListener, MessageListener
    BasicSSCell represents a single spreadsheet display cell. BasicSSCells can be added to a VisAD user interface to provide some of the capabilities presented in the VisAD SpreadSheet. Other capabilities, like the file loader and data mapping dialog boxes, are available only with a FancySSCell.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.JComponent

        javax.swing.JComponent.AccessibleJComponent
      • Nested classes/interfaces inherited from class java.awt.Component

        java.awt.Component.BaselineResizeBehavior
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int ADD_DATA
      Message ID indicating a data object has been added.
      static int ADD_SOURCE
      Message ID indicating a source has been added.
      static boolean DEBUG
      Debugging flag.
      static int DEBUG_LEVEL
      Debugging level.
      static int DIRECT_SOURCE
      Indicates that the data was added to this cell directly using addData() or addReference().
      static int FORMULA_SOURCE
      Indicates that the data was computed from a formula.
      static int JAVA2D_2D
      Constant for 2-D (Java2D) dimensionality.
      static int JAVA3D_2D
      Constant for 2-D (Java3D) dimensionality.
      static int JAVA3D_3D
      Constant for 3-D (Java3D) dimensionality.
      static int MAX_ID
      No message ID should have a value greater than or equal to this number.
      static java.lang.String[] messages
      Message ID strings, for debugging.
      static int REMOTE_SOURCE
      Indicates that the data came from a remotely linked cell.
      static int REMOVE_DATA
      Message ID indicating a data object has been removed.
      static int RMI_SOURCE
      Indicates that the data came from an RMI server.
      static int SET_DIM
      Message ID indicating dimension has changed.
      static int SET_ERRORS
      Message ID indicating errors have changed.
      static int SET_MAPS
      Message ID indicating mappings have changed.
      static int STATUS
      Message ID indicating a cell's status information is being requested or reported.
      static int UNKNOWN_SOURCE
      Indicates that the source of the data is unknown.
      static int UPDATE_DATA
      Message ID indicating a data object has changed.
      static int UPDATE_DEPENDENCIES
      Message ID indicating a data object's dependencies have changed.
      static int URL_SOURCE
      Indicates that the data came from a file or URL.
      • Fields inherited from class javax.swing.JComponent

        TOOL_TIP_TEXT_KEY, 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

      Constructors 
      Constructor and Description
      BasicSSCell(java.lang.String name)
      Constructs a new BasicSSCell with the given name.
      BasicSSCell(java.lang.String name, FormulaManager fman)
      Constructs a new BasicSSCell with the given name and non-default formula manager, to allow for custom formulas.
      BasicSSCell(java.lang.String name, FormulaManager fman, RemoteServer rs, boolean slave, java.lang.String save)
      Constructs a new, possibly slaved, BasicSSCell with the given name, formula manager, and remote server.
      BasicSSCell(java.lang.String name, FormulaManager fman, RemoteServer rs, java.lang.String save)
      Constructs a new BasicSSCell with the given name, formula manager, and remote server.
      BasicSSCell(java.lang.String name, RemoteServer rs)
      Constructs a new BasicSSCell with the given name, that gets its information from the given RemoteServer.
      BasicSSCell(java.lang.String name, java.lang.String save)
      Constructs a new BasicSSCell with the given name and save string, used to reconstruct this cell's configuration.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      java.lang.String addData(Data data)
      Adds a Data object to this cell, creating an associated DataReference for it.
      java.lang.String addData(Data data, ConstantMap[] cmaps)
      Adds a Data object to this cell, creating an associated DataReference with the specified ConstantMaps for it.
      java.lang.String addDataSource(java.lang.String source)
      Obtains a Data object from the given source of unknown type, and adds it to this cell.
      java.lang.String addDataSource(java.lang.String source, int type)
      Obtains a Data object from the given source of the specified type, and adds it to this cell.
      void addDisplayListener(DisplayListener d)
      Adds a DisplayListener.
      java.lang.String addReference(DataReferenceImpl ref)
      Adds the given DataReference to this cell.
      java.lang.String addReference(DataReferenceImpl ref, ConstantMap[] cmaps)
      Adds the given DataReference to this cell with the specified ConstantMaps.
      void addSSCellChangeListener(SSCellListener l)
      Deprecated. 
      Use addSSCellListener(SSCellListener) instead.
      void addSSCellListener(SSCellListener l)
      Adds an SSCellListener.
      void addToRemoteServer(RemoteServerImpl rs)
      Adds this cell to the given RemoteServer.
      void addVar(java.lang.String name, ThingReference tr)
      Adds a variable to this cell's formula manager.
      static boolean arraysEqual(java.lang.Object[] o1, java.lang.Object[] o2)
      Deprecated. 
      Use visad.Util.arraysEqual(Object[], Object[]) instead.
      static boolean canDo3D()
      Returns true if Java3D is enabled for this JVM.
      void captureImage(java.io.File f)
      Captures an image and saves it to a given file name, in JPEG format.
      void clearCell()
      Clears this cell completely.
      void clearDisplay()
      Clears this cell's display.
      void clearMaps()
      Clears this cell's mappings.
      boolean constructDisplay()
      Reconstructs this cell's display.
      static void createVar(java.lang.String name, ThingReference tr)
      Deprecated. 
      Use addVar(String, ThingReference) instead.
      void destroyCell()
      Clears this cell completely and destroys it, removing it from the list of created cells.
      static void disable3D()
      Disables Java3D for this JVM.
      void displayChanged(DisplayEvent e)
      Handles display changes.
      static boolean enable3D()
      Attempts to enable Java3D for this JVM, returning true if successful.
      Data[] getData()
      Gets this cell's Data objects.
      Data getData(java.lang.String varName)
      Gets this cell's Data object with the specified variable name.
      int getDataCount()
      Gets the number of Data object this cell has.
      DataReferenceImpl getDataRef()
      Deprecated. 
      Use getReference(String) instead.
      java.lang.String getDataSource(java.lang.String varName)
      Gets this cell's data source string for data with the specified variable name.
      java.lang.String[] getDataSources()
      Gets this cell's data source strings.
      int getDataSourceType(java.lang.String varName)
      Gets this cell's data source type for data with the specified variable name.
      int[] getDataSourceTypes()
      Gets this cell's data source types.
      int getDimension()
      Gets this cell's dimension.
      DisplayImpl getDisplay()
      Gets this cell's VisAD Display.
      java.lang.String getFilename()
      Deprecated. 
      Use getDataSource(String) instead.
      java.net.URL getFileURL()
      Deprecated. 
      Use getDataSource(String) instead.
      java.lang.String getFirstVariableName()
      Gets the variable name of this cell's first Data object.
      java.lang.String getFormula()
      Deprecated. 
      Use getDataSource(String) instead.
      FormulaManager getFormulaManager()
      Gets this cell's formula manager.
      java.lang.String getLastVariableName()
      Gets the variable name of this cell's last Data object.
      ScalarMap[] getMaps()
      Gets this cell's mappings.
      java.lang.String getName()
      Gets this cell's name.
      java.lang.String getPartialSaveString()
      Gets a string for reconstructing ScalarMap range and Control information.
      DataReference getReference()
      Deprecated. 
      Use getReference(String) instead.
      DataReference getReference(java.lang.String varName)
      Gets this cell's DataReference with the specified variable name.
      DataReferenceImpl[] getReferences()
      Gets this cell's DataReferences.
      RemoteDataReferenceImpl getRemoteDataRef()
      Deprecated. 
      Use getRemoteReference(String) instead.
      RemoteDisplay getRemoteDisplay()
      Gets this cell's VisAD RemoteDisplay.
      int getRemoteId()
      Gets the id number this cell uses for remote collaboration.
      RemoteDataReference getRemoteReference(java.lang.String varName)
      Gets this cell's remote DataReference for data with the specified variable name.
      RemoteDataReference[] getRemoteReferences()
      Gets this cell's remote DataReferences.
      java.lang.String getRMIAddress()
      Deprecated. 
      Use getDataSource(String) instead.
      java.lang.String getSaveString()
      Gets the save string necessary to reconstruct this cell.
      static BasicSSCell getSSCellByName(java.lang.String name)
      Gets the SSCell with the specified name.
      java.lang.String getSSCellString()
      Deprecated. 
      Use getSaveString() instead.
      java.lang.String[] getVariableNames()
      Gets the variable names of this cell's Data objects.
      boolean hasData()
      Whether this cell has any data.
      boolean hasDisplay()
      Whether this cell has a valid display on-screen.
      boolean hasFormula()
      Deprecated. 
      Use getDataSourceType(String) instead.
      boolean hasMappings()
      Whether this cell has any mappings.
      static void invoke(boolean wait, java.lang.Runnable r)
      Deprecated. 
      Use visad.Util.invoke(boolean, Runnable) instead.
      boolean isRemote()
      Gets whether this cell is a cloned display cell.
      static boolean isSaving()
      Returns true if any SSCell is currently saving data.
      boolean isSlave()
      Gets whether this cell is a slaved display cell.
      void loadData(java.lang.String s)
      Deprecated. 
      Use addDataSource(String, URL_SOURCE) instead.
      void loadData(java.net.URL u)
      Deprecated. 
      Use addDataSource(String, URL_SOURCE) instead.
      void loadRMI(java.lang.String s)
      Deprecated. 
      Use addDataSource(String, RMI_SOURCE) instead.
      static DataImpl makeLocal(Data data)
      Deprecated. 
      Use visad.DataUtility.makeLocal(data) instead.
      boolean othersDepend()
      Whether other cells are dependent on any of this cell's Data objects.
      boolean othersDepend(java.lang.String varName)
      Whether other cells are dependent on this cell's Data object with the specified variable name.
      static boolean possible3D()
      Returns true if Java3D is possible for this JVM.
      void receiveMessage(MessageEvent msg)
      Handles VisAD messages.
      void removeAllListeners()
      Deprecated. 
      Use removeAllSSCellListeners() instead.
      void removeAllReferences()
      Removes all Data objects from this cell.
      void removeAllSSCellListeners()
      Removes all SSCellListeners.
      void removeData(Data data)
      Removes the given Data object from this cell.
      void removeData(java.lang.String varName)
      Removes the Data object corresponding to the given variable name from this cell.
      void removeDisplayListener(DisplayListener d)
      Removes a DisplayListener from this cell.
      void removeFromRemoteServer(RemoteServerImpl rs)
      Removes this cell from the given RemoteServer.
      void removeListener(SSCellListener l)
      Deprecated. 
      Use removeSSCellListener(SSCellListener) instead.
      void removeReference(DataReferenceImpl ref)
      Removes the given DataReference's associated Data object from this cell.
      void removeSSCellListener(SSCellListener l)
      Removes an SSCellListener.
      void saveData(java.io.File f, boolean netcdf)
      Deprecated. 
      Use saveData(String, Form) instead.
      void saveData(java.io.File f, Form form)
      Deprecated. 
      Use saveData(String, Form) instead.
      void saveData(java.lang.String varName, java.lang.String location, Form form)
      Exports a Data object to the given location, using the given Data form.
      void setData(Data data)
      Deprecated. 
      Use addData(Data) instead.
      void setDimension(boolean twoD, boolean java2d)
      Deprecated. 
      Use setDimension(int) instead.
      void setDimension(int dim)
      Sets this cell's dimensionality.
      void setFormula(java.lang.String f)
      Deprecated. 
      Use addDataSource(String, FORMULA_SOURCE) instead.
      void setMaps(ScalarMap[] maps)
      Maps RealTypes to the display according to the specified ScalarMaps.
      void setPartialSaveString(java.lang.String save, boolean preserveMaps)
      Reconstructs parts of this cell using the specified save string.
      void setSaveString(java.lang.String save)
      Reconstructs this cell using the specified save string.
      void setSSCellString(java.lang.String save)
      Deprecated. 
      Use setSaveString(String) instead.
      static Tuple stringsToTuple(java.lang.String[] s)
      Deprecated. 
      Use visad.DataUtility.stringsToTuple(String[]) instead.
      static java.lang.String[] tupleToStrings(Tuple t)
      Deprecated. 
      Use visad.DataUtility.tupleToStrings(Tuple) instead.
      void waitForData()
      Blocks until all of this cell's Data objects finish loading.
      void waitForData(java.lang.String varName)
      Blocks until the Data object with the given variable name finishes loading.
      void waitForFormula()
      Deprecated. 
      Use waitForData(String) instead.
      • Methods inherited from class javax.swing.JPanel

        getAccessibleContext, getUI, getUIClassID, setUI, updateUI
      • Methods inherited from class javax.swing.JComponent

        addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
      • Methods inherited from class java.awt.Container

        add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
      • Methods inherited from class java.awt.Component

        action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • DEBUG

        public static boolean DEBUG
        Debugging flag.
      • DEBUG_LEVEL

        public static int DEBUG_LEVEL
        Debugging level.
      • 1 = Normal.
      • 2 = Collaboration messages.
      • 3 = All exceptions.
Skip navigation links

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.