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