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 Detail

      • 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 Detail

      • getPreciseWidthDelta

        protected double getPreciseWidthDelta​(org.eclipse.draw2d.geometry.PrecisionRectangle precisePartBounds,
                                              org.eclipse.draw2d.geometry.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.