Class MatchHeightAction

All Implemented Interfaces:
Disposable, UpdateAction, IAction

public class MatchHeightAction extends MatchSizeAction
An action that matches the height of all selected EditPart's Figures to the width of the Primary Selection EditPart's Figure.
  • Constructor Details

    • MatchHeightAction

      public MatchHeightAction(IWorkbenchPart part)
      Constructs a MatchHeightAction and associates it with the given part.
      Parameters:
      part - The workbench part associated with this MatchHeightAction
  • Method Details

    • getPreciseWidthDelta

      protected double getPreciseWidthDelta(PrecisionRectangle precisePartBounds, PrecisionRectangle precisePrimaryBounds)
      Returns 0 to make this action affect only the height delta.
      Overrides:
      getPreciseWidthDelta in class MatchSizeAction
      Parameters:
      precisePartBounds - the precise bounds of the EditPart's Figure to be matched
      precisePrimaryBounds - the precise bounds of the Primary Selection EditPart's Figure
      Returns:
      0.