|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.command.PseudoCommand
org.openstreetmap.josm.command.Command
org.openstreetmap.josm.command.TransformNodesCommand
org.openstreetmap.josm.command.ScaleCommand
public class ScaleCommand
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.openstreetmap.josm.command.TransformNodesCommand |
---|
TransformNodesCommand.OldState |
Field Summary | |
---|---|
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. |
Fields inherited from class org.openstreetmap.josm.command.TransformNodesCommand |
---|
nodes, oldStates |
Constructor Summary | |
---|---|
ScaleCommand(java.util.Collection<OsmPrimitive> objects,
EastNorth currentEN)
Creates a ScaleCommand. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.openstreetmap.josm.command.TransformNodesCommand |
---|
executeCommand, fillModifiedData, flagNodesAsModified, getNodesCenter, getParticipatingPrimitives, getTransformedNodes, storeOldState, undoCommand |
Methods inherited from class org.openstreetmap.josm.command.Command |
---|
checkAndConfirmOutlyingOperation, getLayer, getOrig, invalidBecauselayerRemoved |
Methods inherited from class org.openstreetmap.josm.command.PseudoCommand |
---|
getChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private EastNorth pivot
private double scalingFactor
EastNorth startEN
Constructor Detail |
---|
public ScaleCommand(java.util.Collection<OsmPrimitive> objects, EastNorth currentEN)
Method Detail |
---|
public void handleEvent(EastNorth currentEN)
handleEvent
in class TransformNodesCommand
currentEN
- the current world position of the mouseprotected void transformNodes()
transformNodes
in class TransformNodesCommand
public java.lang.String getDescriptionText()
PseudoCommand
getDescriptionText
in class TransformNodesCommand
public javax.swing.Icon getDescriptionIcon()
PseudoCommand
getDescriptionIcon
in class TransformNodesCommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |