Class RowResizeCommand

    • Constructor Detail

      • RowResizeCommand

        public RowResizeCommand​(ILayer layer,
                                int rowPosition,
                                int newHeight)
        Create a RowResizeCommand to resize the row at the given position to the given height. The given row height will be taken as is without scaling.
        Parameters:
        layer - The ILayer to which the row position correlates.
        rowPosition - The position of the row that should be resized.
        newHeight - The new height that should be applied to the given row.
      • RowResizeCommand

        public RowResizeCommand​(ILayer layer,
                                int rowPosition,
                                int newHeight,
                                boolean downScale)
        Create a RowResizeCommand to resize the row at the given position to the given height.
        Parameters:
        layer - The ILayer to which the row position correlates.
        rowPosition - The position of the row that should be resized.
        newHeight - The new height that should be applied to the given row.
        downScale - true if the newHeight value should be down scaled according to the scaling level, false if the value should be taken as is.
        Since:
        1.6
      • RowResizeCommand

        protected RowResizeCommand​(RowResizeCommand command)
        Constructor used to clone the given command.
        Parameters:
        command - The command to clone.
    • Method Detail

      • getNewHeight

        public int getNewHeight()
        Returns:
        The new height value that should be applied.
      • downScaleValue

        public boolean downScaleValue()
        Returns:
        true if the newHeight value should be down scaled according to the scaling level, false if the value should be taken as is.
        Since:
        1.6