Class ResizeOperation

java.lang.Object
org.eclipse.core.commands.operations.AbstractOperation
org.eclipse.gef.mvc.fx.operations.ResizeOperation
All Implemented Interfaces:
IUndoableOperation, ITransactionalOperation

public class ResizeOperation extends AbstractOperation implements ITransactionalOperation
The ResizeOperation can be used to alter the size of a visual.
  • Constructor Details

    • ResizeOperation

      public ResizeOperation(IResizableContentPart<? extends Node> resizablePart)
      Constructs a new ResizeOperation for the manipulation of the given Node.
      Parameters:
      resizablePart - The Node that is manipulated by this operation.
    • ResizeOperation

      public ResizeOperation(IResizableContentPart<? extends Node> resizablePart, double dw, double dh)
      Constructs a new ResizeOperation for the manipulation of the given Node. The given delta width and height will be applied when executing this operation.
      Parameters:
      resizablePart - The Node that is manipulated by this operation.
      dw - The delta width that is applied when executing this operation.
      dh - The delta height that is applied when executing this operation.
    • ResizeOperation

      public ResizeOperation(String label, IResizableContentPart<? extends Node> resizablePart, Dimension initialSize, double dw, double dh)
      Constructs a new ResizeOperation from the given values. Note that the oldLocation does include the layout-bounds minimum.
      Parameters:
      label - Descriptive title for the operation.
      resizablePart - The visual that is resized/relocated.
      initialSize - The old size of the visual.
      dw - The horizontal size difference.
      dh - The vertical size difference.
  • Method Details