Class TmfViewer

java.lang.Object
org.eclipse.tracecompass.tmf.core.component.TmfComponent
org.eclipse.tracecompass.tmf.ui.viewers.TmfViewer
All Implemented Interfaces:
ITmfComponent, ITmfViewer
Direct Known Subclasses:
AbstractSegmentStoreDensityViewer, TmfSimpleTableViewer, TmfTimeViewer

public abstract class TmfViewer extends TmfComponent implements ITmfViewer
Abstract class that extends TmfComponent to be specific to viewers. It allows the access to the control and the parent of a viewer.
Author:
Mathieu Denis
  • Constructor Details

    • TmfViewer

      public TmfViewer()
      Default constructor. The viewer have to be initialize through the init(Composite, String) function later on.
    • TmfViewer

      public TmfViewer(org.eclipse.swt.widgets.Composite parent)
      Constructor that initializes the parent of the viewer
      Parameters:
      parent - The parent composite that holds this viewer
      See Also:
    • TmfViewer

      public TmfViewer(org.eclipse.swt.widgets.Composite parent, String name)
      Constructor that initializes the parent of the viewer and that sets the name of the viewer
      Parameters:
      parent - The parent composite that holds this viewer
      name - The name of the viewer
  • Method Details

    • init

      public void init(org.eclipse.swt.widgets.Composite parent, String name)
      Performs initialization of the viewer. It initializes the component. Need to be called when the default constructor is used.
      Parameters:
      parent - The parent composite of the viewer
      name - The name to give to this viewer
      See Also:
    • getParent

      public org.eclipse.swt.widgets.Composite getParent()
      Returns:
      the parent of this viewer