public class ResizeNodeCommand extends AbstractCanvasCompositeCommand
commands| Constructor and Description |
|---|
ResizeNodeCommand(Element<? extends View> candidate,
BoundingBox boundingBox,
BiFunction<Shape,Integer,Point2D> magnetLocationProvider) |
ResizeNodeCommand(Element<? extends View> candidate,
BoundingBox boundingBox,
BiFunction<Shape,Integer,Point2D> magnetLocationProvider,
Consumer<Shape> onResize) |
| Modifier and Type | Method and Description |
|---|---|
CommandResult<CanvasViolation> |
execute(AbstractCanvasHandler context) |
BoundingBox |
getBoundingBox() |
Element<? extends View> |
getCandidate() |
BiFunction<Shape,Integer,Point2D> |
getMagnetLocationProvider() |
Consumer<Shape> |
getOnResize() |
protected AbstractCompositeCommand<AbstractCanvasHandler,CanvasViolation> |
initialize(AbstractCanvasHandler context) |
String |
toString() |
CommandResult<CanvasViolation> |
undo(AbstractCanvasHandler context) |
doAllow, doExecute, doUndoaddCommand, allow, buildResult, ensureInitialized, evaluate, executeCommands, getCommands, isEmpty, isInitialized, isUndoReverse, processMultipleCommands, processMultipleFunctions, size, undopublic ResizeNodeCommand(Element<? extends View> candidate, BoundingBox boundingBox, BiFunction<Shape,Integer,Point2D> magnetLocationProvider)
public ResizeNodeCommand(Element<? extends View> candidate, BoundingBox boundingBox, BiFunction<Shape,Integer,Point2D> magnetLocationProvider, Consumer<Shape> onResize)
protected AbstractCompositeCommand<AbstractCanvasHandler,CanvasViolation> initialize(AbstractCanvasHandler context)
initialize in class AbstractCompositeCommand<AbstractCanvasHandler,CanvasViolation>public CommandResult<CanvasViolation> execute(AbstractCanvasHandler context)
execute in interface Command<AbstractCanvasHandler,CanvasViolation>execute in class AbstractCompositeCommand<AbstractCanvasHandler,CanvasViolation>public CommandResult<CanvasViolation> undo(AbstractCanvasHandler context)
undo in interface Command<AbstractCanvasHandler,CanvasViolation>undo in class AbstractCompositeCommand<AbstractCanvasHandler,CanvasViolation>public BoundingBox getBoundingBox()
public BiFunction<Shape,Integer,Point2D> getMagnetLocationProvider()
public String toString()
toString in class AbstractCompositeCommand<AbstractCanvasHandler,CanvasViolation>Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.