Class TmfTimeViewAlignmentInfo

java.lang.Object
org.eclipse.tracecompass.tmf.ui.signal.TmfTimeViewAlignmentInfo

public class TmfTimeViewAlignmentInfo extends Object
The responsibility of this class is to provide information necessary to decide whether or not views should be time-aligned with each other and at what offset.
Since:
1.0
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    TmfTimeViewAlignmentInfo(org.eclipse.swt.widgets.Shell shell, org.eclipse.swt.graphics.Point viewLocation, int timeAxisOffset)
    Constructs a new TmfTimeViewAlignmentInfo.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.swt.widgets.Shell
    Get the shell containing this alignment.
    int
    Offset relative to the view corresponding to the start of the time axis.
    org.eclipse.swt.graphics.Point
    Get the absolute view location.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TmfTimeViewAlignmentInfo

      public TmfTimeViewAlignmentInfo(org.eclipse.swt.widgets.Shell shell, org.eclipse.swt.graphics.Point viewLocation, int timeAxisOffset)
      Constructs a new TmfTimeViewAlignmentInfo.
      Parameters:
      shell - used to determine whether or not views should be aligned together
      viewLocation - location of the view, used to determine whether or not views should be aligned together
      timeAxisOffset - offset relative to the view. This offset will be communicated to the other views
  • Method Details

    • getShell

      public org.eclipse.swt.widgets.Shell getShell()
      Get the shell containing this alignment.
      Returns:
      the shell
    • getViewLocation

      public org.eclipse.swt.graphics.Point getViewLocation()
      Get the absolute view location. This value is only valid at the time of the TmfTimeViewAlignmentInfo creation so extra care must be given in cases where the particular view might have been resized, moved, etc.
      Returns:
      the absolute view location
    • getTimeAxisOffset

      public int getTimeAxisOffset()
      Offset relative to the view corresponding to the start of the time axis.
      Returns:
      the offset in pixels