Class TmfTimeViewAlignmentInfo
java.lang.Object
org.eclipse.tracecompass.tmf.ui.signal.TmfTimeViewAlignmentInfo
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
ConstructorsConstructorDescriptionTmfTimeViewAlignmentInfo(org.eclipse.swt.widgets.Shell shell, org.eclipse.swt.graphics.Point viewLocation, int timeAxisOffset) Constructs a new TmfTimeViewAlignmentInfo. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.widgets.ShellgetShell()Get the shell containing this alignment.intOffset relative to the view corresponding to the start of the time axis.org.eclipse.swt.graphics.PointGet the absolute view location.
-
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 togetherviewLocation- location of the view, used to determine whether or not views should be aligned togethertimeAxisOffset- 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
-