Class TLcyModelContext

java.lang.Object
com.luciad.lucy.util.context.TLcyModelContext

public class TLcyModelContext extends Object
This context object defines everything related to an ILcdModel, more specifically the ILcdLayer and the ILcdView in which it is displayed.

This class if for example used by the Table View action. This action creates instances of this class, and creates a customizer panel for it using the factories available as service.

  • Constructor Details

    • TLcyModelContext

      public TLcyModelContext(ILcdModel aModel)
      Creates a new context object for the given ILcdModel, with null for the ILcdLayer and the ILcdView.
      Parameters:
      aModel - The ILcdModel for which this object provides the context. This must not be null.
    • TLcyModelContext

      public TLcyModelContext(ILcdModel aModel, ILcdLayer aLayer, ILcdView aView)
      Creates a new context object for the ILcdModel of the specified ILcdLayer.
      Parameters:
      aModel - The ILcdModel for which this object provides the context. This must not be null.
      aLayer - The ILcdLayer in which the model is displayed. This may be null if this information is not available.
      aView - The ILcdView in which the model is displayed. This may be null if this information is not available.
  • Method Details

    • getModel

      public ILcdModel getModel()
      Returns the ILcdModel for which this object provides the context.
      Returns:
      The ILcdModel for which this object provides the context. This will never be null.
    • getLayer

      public ILcdLayer getLayer()
      Returns the layer in which the ILcdModel is displayed.
      Returns:
      The layer in which the ILcdModel is displayed. This may be null.
    • getView

      public ILcdView getView()
      Returns the ILcdView in which the ILcdModel is displayed.
      Returns:
      The ILcdView in which the ILcdModel is displayed. This may be null.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)

      This method will return true when both TLcyModelContext instances have an equal model, layer and view.

      Overrides:
      equals in class Object
      Parameters:
      obj -
      Returns:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object