Class TLcdSingleGXYEditorProvider

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

public class TLcdSingleGXYEditorProvider extends Object implements ILcdGXYEditorProvider
This is an implementation of the ILcdGXYEditorProvider interface that returns always the same ILcdGXYEditor. .
See Also:
  • Constructor Details

    • TLcdSingleGXYEditorProvider

      public TLcdSingleGXYEditorProvider(ILcdGXYEditor aGXYEditor)
      Creates a ILcdGXYEditorProvider implementation that returns the given editor for every object.
      Parameters:
      aGXYEditor - an editor for every object this editor provider is requested for.
  • Method Details

    • 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:
      an editor that can be used to edit the object.
    • 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 clone of this editor provider.