Class TLcdGXYEditorProvider

java.lang.Object
com.luciad.view.gxy.TLcdGXYEditorProvider
All Implemented Interfaces:
ILcdGXYEditorProvider, Serializable, Cloneable

public class TLcdGXYEditorProvider extends Object implements ILcdGXYEditorProvider
This is an implementation of ILcdGXYEditorProvider that returns for an Object an ILcdGXYEditor that has been registered for its class.
See Also:
  • Constructor Details

    • TLcdGXYEditorProvider

      public TLcdGXYEditorProvider()
  • Method Details

    • setClassTraceOn

      public static void setClassTraceOn(boolean aClassTraceOn)
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Enables tracing for all instances of this class. If the argument is true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
      Parameters:
      aClassTraceOn - if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
    • setTraceOn

      public void setTraceOn(boolean aTraceOn)
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Enables tracing for this class instance. Calling this method with either true or false as argument automatically turns off tracing for all other class instances for which setTraceOn has not been called. If the argument is false then only the informative, warning and error log messages are recorded.
      Parameters:
      aTraceOn - if true then all log messages are recorded for this instance. If false, then only the informative, warning and error log messages are recorded.
    • isTraceOn

      public boolean isTraceOn()
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Returns true if tracing is enabled for this class.
      Returns:
      true if tracing is enabled for this class, false otherwise.
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener aPropertyChangeListener)
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener aPropertyChangeListener)
    • getGXYEditors

      public ILcdGXYEditor[] getGXYEditors()
      Returns:
      all the registered ILcdGXYEditors.
    • registerGXYEditorForClass

      public void registerGXYEditorForClass(Class aDataClass, ILcdGXYEditor aGXYEditor)
      Registers an ILcdGXYEditor to associate to a given Class of Object.
    • registerGXYEditorForClassName

      public void registerGXYEditorForClassName(String aDataClassName, ILcdGXYEditor aGXYEditor)
      Registers an ILcdGXYEditor to associate to a given Class name of Object.
    • deregisterAllGXYEditors

      public void deregisterAllGXYEditors()
      Removes all registered ILcdGXYEditors.
    • getGXYEditor

      public ILcdGXYEditor getGXYEditor(Object aObject)
      Description copied from interface: ILcdGXYEditorProvider
      Finds an ILcdGXYEditor that can be used to edit the object passed.

      The editor provider is responsible for setting the object to the editor before returning the editor. An implementation should therefore have the following structure:

      
       public ILcdGXYEditor getGXYEditor(Object aObject) {
         ILcdGXYEditor editor = ... // find the editor for the object
         editor.setObject( aObject );
         return editor;
       }
       

      Specified by:
      getGXYEditor in interface ILcdGXYEditorProvider
      Parameters:
      aObject - the object to find an editor for
      Returns:
      the first found ILcdGXYEditor which has been registered with a Class that satisfies Class.isInstance(aObject).
    • clone

      public Object clone()
      Description copied from interface: ILcdGXYEditorProvider
      Redefines Object.clone() to make it public.
      Specified by:
      clone in interface ILcdGXYEditorProvider
      Overrides:
      clone in class Object
      Returns:
      a shallow clone (the registered ILcdGXYEditorss are not cloned).
    • deepClone

      public TLcdGXYEditorProvider deepClone()
      Returns:
      a deep clone (the registered ILcdGXYEditorss are cloned).