public class EditCanvasAction extends AbstractDrawingViewAction
XXX - We shouldn't have a dependency to the application framework from within the drawing framework.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
Constructor and Description |
---|
EditCanvasAction(Application app,
DrawingEditor editor)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
protected Application |
getApplication() |
protected javax.swing.JFrame |
getFrame() |
protected void |
updateViewState()
This method is called when the active drawing view of the
drawing editor changed.
|
dispose, fireUndoableEditHappened, getDrawing, getEditor, getView, isUpdatEnabledState, setEditor, setUpdateEnabledState, updateEnabledState
public static final java.lang.String ID
public EditCanvasAction(Application app, DrawingEditor editor)
public void actionPerformed(java.awt.event.ActionEvent e)
protected void updateViewState()
AbstractDrawingViewAction
updateViewState
in class AbstractDrawingViewAction
protected Application getApplication()
protected javax.swing.JFrame getFrame()