public class CombineAction extends AbstractSelectedAction
FIXME - Transforms are lost during Undo/Redo.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
Constructor and Description |
---|
CombineAction(DrawingEditor editor)
Creates a new instance.
|
CombineAction(DrawingEditor editor,
SVGPathFigure prototype) |
CombineAction(DrawingEditor editor,
SVGPathFigure prototype,
boolean isGroupingAction) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
protected boolean |
canGroup() |
protected boolean |
canUngroup() |
void |
combineActionPerformed(java.awt.event.ActionEvent e) |
void |
combinePaths(DrawingView view,
CompositeFigure group,
java.util.Collection<Figure> figures,
int groupIndex) |
void |
splitActionPerformed(java.awt.event.ActionEvent e) |
void |
splitPath(DrawingView view,
CompositeFigure group,
java.util.List<Figure> ungroupedPaths,
int[] ungroupedPathsIndices,
int[] ungroupedPathsChildCounts) |
protected void |
updateEnabledState()
Updates the enabled state of this action to reflect the enabled state
of the active
DrawingView . |
dispose, fireUndoableEditHappened, getDrawing, getEditor, getView, isUpdatEnabledState, setEditor, setUpdateEnabledState
public static final java.lang.String ID
public CombineAction(DrawingEditor editor)
public CombineAction(DrawingEditor editor, SVGPathFigure prototype)
public CombineAction(DrawingEditor editor, SVGPathFigure prototype, boolean isGroupingAction)
protected void updateEnabledState()
AbstractSelectedAction
DrawingView
. If no drawing view is active, this
action is disabled.updateEnabledState
in class AbstractSelectedAction
protected boolean canGroup()
protected boolean canUngroup()
public void actionPerformed(java.awt.event.ActionEvent e)
public void combineActionPerformed(java.awt.event.ActionEvent e)
public void splitActionPerformed(java.awt.event.ActionEvent e)
public void splitPath(DrawingView view, CompositeFigure group, java.util.List<Figure> ungroupedPaths, int[] ungroupedPathsIndices, int[] ungroupedPathsChildCounts)
public void combinePaths(DrawingView view, CompositeFigure group, java.util.Collection<Figure> figures, int groupIndex)