org.jhotdraw.samples.svg.action
Class CombineAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.jhotdraw.draw.action.AbstractSelectedAction
-
- org.jhotdraw.samples.svg.action.CombineAction
-
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, Disposable
- Direct Known Subclasses:
- SplitAction
public class CombineAction extends AbstractSelectedAction
CombinePathsAction.FIXME - Transforms are lost during Undo/Redo.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringID
-
Constructor Summary
Constructors Constructor and Description CombineAction(DrawingEditor editor)Creates a new instance.CombineAction(DrawingEditor editor, SVGPathFigure prototype)CombineAction(DrawingEditor editor, SVGPathFigure prototype, boolean isGroupingAction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidactionPerformed(java.awt.event.ActionEvent e)voidcombineActionPerformed(java.awt.event.ActionEvent e)voidcombinePaths(DrawingView view, CompositeFigure group, java.util.Collection<Figure> figures, int groupIndex)voidsplitActionPerformed(java.awt.event.ActionEvent e)voidsplitPath(DrawingView view, CompositeFigure group, java.util.List<Figure> ungroupedPaths, int[] ungroupedPathsIndices, int[] ungroupedPathsChildCounts)-
Methods inherited from class org.jhotdraw.draw.action.AbstractSelectedAction
dispose, getEditor, isUpdatEnabledState, setEditor, setUpdateEnabledState
-
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CombineAction
public CombineAction(DrawingEditor editor)
Creates a new instance.
-
CombineAction
public CombineAction(DrawingEditor editor, SVGPathFigure prototype)
-
CombineAction
public CombineAction(DrawingEditor editor, SVGPathFigure prototype, boolean isGroupingAction)
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
-
combineActionPerformed
public void combineActionPerformed(java.awt.event.ActionEvent e)
-
splitActionPerformed
public void splitActionPerformed(java.awt.event.ActionEvent e)
-
splitPath
public void splitPath(DrawingView view, CompositeFigure group, java.util.List<Figure> ungroupedPaths, int[] ungroupedPathsIndices, int[] ungroupedPathsChildCounts)
-
combinePaths
public void combinePaths(DrawingView view, CompositeFigure group, java.util.Collection<Figure> figures, int groupIndex)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG