public class ScaleCommand extends TransformNodesCommand
Command.OldNodeState| Modifier and Type | Field and Description |
|---|---|
private EastNorth |
pivot
Pivot point
|
private double |
scalingFactor
Current scaling factor applied
|
(package private) EastNorth |
startEN
World position of the mouse when the user started the command.
|
nodes, oldStates| Constructor and Description |
|---|
ScaleCommand(java.util.Collection<OsmPrimitive> objects,
EastNorth currentEN)
Creates a ScaleCommand.
|
| Modifier and Type | Method and Description |
|---|---|
javax.swing.Icon |
getDescriptionIcon()
Provides a descriptive icon of this command.
|
java.lang.String |
getDescriptionText()
Provides a description text representing this command.
|
void |
handleEvent(EastNorth currentEN)
Compute new scaling factor and transform nodes accordingly.
|
protected void |
transformNodes()
Scale nodes.
|
executeCommand, fillModifiedData, flagNodesAsModified, getNodesCenter, getParticipatingPrimitives, getTransformedNodes, storeOldState, undoCommandcheckAndConfirmOutlyingOperation, getLayer, getOrig, invalidBecauselayerRemovedgetChildrenprivate double scalingFactor
public ScaleCommand(java.util.Collection<OsmPrimitive> objects, EastNorth currentEN)
public final void handleEvent(EastNorth currentEN)
handleEvent in class TransformNodesCommandcurrentEN - the current world position of the mouseprotected void transformNodes()
transformNodes in class TransformNodesCommandpublic java.lang.String getDescriptionText()
PseudoCommandgetDescriptionText in class TransformNodesCommandpublic javax.swing.Icon getDescriptionIcon()
PseudoCommandgetDescriptionIcon in class TransformNodesCommand