Class OptimizeBendpointsCommand<A extends org.eclipse.emf.ecore.EObject,AC extends org.eclipse.emf.ecore.EObject,AN extends org.eclipse.emf.ecore.EObject,ABP extends org.eclipse.emf.ecore.EObject>
java.lang.Object
org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.common.command.CompoundCommand
com.amalgamasimulation.graphicaleditor.commands.GraphicalEditorCompoundCommand
com.amalgamasimulation.graphicaleditor.commands.OptimizeBendpointsCommand<A,AC,AN,ABP>
- All Implemented Interfaces:
org.eclipse.emf.common.command.Command
public class OptimizeBendpointsCommand<A extends org.eclipse.emf.ecore.EObject,AC extends org.eclipse.emf.ecore.EObject,AN extends org.eclipse.emf.ecore.EObject,ABP extends org.eclipse.emf.ecore.EObject>
extends GraphicalEditorCompoundCommand
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.common.command.AbstractCommand.NonDirtying -
Field Summary
FieldsFields inherited from class com.amalgamasimulation.graphicaleditor.commands.GraphicalEditorCompoundCommand
initialized, redrawRestrictionManager, restrictRedrawFields inherited from class org.eclipse.emf.common.command.CompoundCommand
commandList, LAST_COMMAND_ALL, MERGE_COMMAND_ALL, resultIndexFields inherited from class org.eclipse.emf.common.command.AbstractCommand
description, isExecutable, isPrepared, label -
Constructor Summary
ConstructorsConstructorDescriptionOptimizeBendpointsCommand(InfiniteCanvasViewer viewer, double advancedStraighteningFactor) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintintvoidMethods inherited from class com.amalgamasimulation.graphicaleditor.commands.GraphicalEditorCompoundCommand
canUndo, execute, redo, undoMethods inherited from class org.eclipse.emf.common.command.CompoundCommand
append, appendAndExecute, appendIfCanExecute, dispose, getAffectedObjects, getCommandList, getDescription, getLabel, getMergedAffectedObjectsCollection, getMergedResultCollection, getResult, getResultIndex, isEmpty, prepare, toString, unwrapMethods inherited from class org.eclipse.emf.common.command.AbstractCommand
chain, setDescription, setLabel
-
Field Details
-
DEFAULT_ADVANCED_STRAIGHTENING_FACTOR
public static double DEFAULT_ADVANCED_STRAIGHTENING_FACTOR
-
-
Constructor Details
-
OptimizeBendpointsCommand
-
OptimizeBendpointsCommand
-
-
Method Details
-
initialize
public void initialize()- Specified by:
initializein classGraphicalEditorCompoundCommand
-
getArcParts
-
getRemovedBendpointsQuantity
public int getRemovedBendpointsQuantity() -
getExistedBendpoints
public int getExistedBendpoints() -
canExecute
public boolean canExecute()- Specified by:
canExecutein interfaceorg.eclipse.emf.common.command.Command- Overrides:
canExecutein classGraphicalEditorCompoundCommand
-