public class CombineAction extends GroupAction
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
Constructor and Description |
---|
CombineAction(DrawingEditor editor)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canGroup() |
void |
groupFigures(DrawingView view,
CompositeFigure group,
java.util.Collection<Figure> figures) |
java.util.Collection<Figure> |
ungroupFigures(DrawingView view,
CompositeFigure group) |
actionPerformed, canUngroup, updateEnabledState
dispose, fireUndoableEditHappened, getDrawing, getEditor, getView, isUpdatEnabledState, setEditor, setUpdateEnabledState
public static final java.lang.String ID
public CombineAction(DrawingEditor editor)
protected boolean canGroup()
canGroup
in class GroupAction
public java.util.Collection<Figure> ungroupFigures(DrawingView view, CompositeFigure group)
ungroupFigures
in class GroupAction
public void groupFigures(DrawingView view, CompositeFigure group, java.util.Collection<Figure> figures)
groupFigures
in class GroupAction