Interface ILcdView

All Superinterfaces:
ILcdPropertyChangeSource
All Known Subinterfaces:
ILcdGXYView, ILcdRotationCapableGXYView, ILspAWTView, ILspView
All Known Implementing Classes:
ALspAWTView, TLcdGXYViewBufferedImage, TLcdGXYViewCanvas, TLcdGXYViewJPanel, TLcdGXYViewJPanelLightWeight, TLcdGXYViewPanel, TLcdGXYViewPlanarImage, TLcdMapBufferedImage, TLcdMapCanvas, TLcdMapJPanel, TLcdMapJPanelLightWeight, TLcdMapPanel, TLspAWTView, TLspExternalView, TLspFXView, TLspOffscreenView, TLspSwingView

public interface ILcdView extends ILcdPropertyChangeSource
An ILcdView displays zero or more ILcdModel objects. Each ILcdModel can be displayed more than once (usually in another way).

An ILcdView does not necessarily use ILcdLayer objects for displaying models.

ILcdView MVC

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds aModel to be displayed in this ILcdView.
    void
    invalidate(boolean aRepaint, Object aCaller, String aMessage)
    Invalidate the content of this ILcdView.
    boolean
    Returns whether the view's contents are automatically updated when necessary.
    void
    Removes a single representation of the specified model from this view, if it is present in the view.
    void
    setAutoUpdate(boolean aAutoUpdate)
    Sets whether to update the view's representation automatically to keep it in sync with its state and the state of its models.

    Methods inherited from interface com.luciad.util.ILcdPropertyChangeSource

    addPropertyChangeListener, removePropertyChangeListener
  • Method Details

    • addModel

      void addModel(ILcdModel aModel)
      Adds aModel to be displayed in this ILcdView.
      Throws:
      IllegalArgumentException - if the model is null, or if the model is not supported by the view
    • removeModel

      void removeModel(ILcdModel aModel)
      Removes a single representation of the specified model from this view, if it is present in the view.
    • invalidate

      void invalidate(boolean aRepaint, Object aCaller, String aMessage)
      Invalidate the content of this ILcdView.
      Parameters:
      aRepaint - if true, this ILcdView shall be repainted immediately.
      aCaller - the class instance that calls this method. Used for tracing.
      aMessage - a message associated with this call. Used for tracing.
    • isAutoUpdate

      boolean isAutoUpdate()
      Returns whether the view's contents are automatically updated when necessary.
      Returns:
      true if the view automatically updates its representation on reception of any event that might require an update (e.g. when its properties change, when an Object in a model has changed, or when a model has been added/removed). false if the view must be repainted manually.
      See Also:
    • setAutoUpdate

      void setAutoUpdate(boolean aAutoUpdate)
      Sets whether to update the view's representation automatically to keep it in sync with its state and the state of its models.
      Parameters:
      aAutoUpdate - if true, the view automatically updates its representation on reception of any event that might require an update (e.g. when its properties change, when an Object in a model has changed, or when a model has been added/removed). If false, the view must be repainted manually.
      See Also: