|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.malai.instrument.Instrument
org.malai.instrument.WidgetInstrument
net.sf.latexdraw.instruments.CopierCutterPaster
public class CopierCutterPaster
This instrument permits to copy, cut and paste the selected shapes.
This file is part of LaTeXDraw.
Copyright (c) 2005-2012 Arnaud BLOUIN
LaTeXDraw is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later version.
LaTeXDraw is distributed without any warranty; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
06/03/2011
Field Summary | |
---|---|
protected MMenuItem |
copyMenu
The menu item to copy the shapes. |
protected MMenuItem |
cutMenu
The menu item to cut the shapes. |
protected IDrawing |
drawing
The drawing that contains the shapes. |
protected MMenuItem |
pasteMenu
The menu item to paste the shapes. |
Fields inherited from class org.malai.instrument.WidgetInstrument |
---|
composer |
Fields inherited from class org.malai.instrument.Instrument |
---|
activated, eventables, links, modified |
Constructor Summary | |
---|---|
CopierCutterPaster(UIComposer<?> composer,
IDrawing drawing)
Creates the instrument. |
Method Summary | |
---|---|
MMenuItem |
getCopyMenu()
|
MMenuItem |
getCutMenu()
|
MMenuItem |
getPasteMenu()
|
protected void |
initialiseLinks()
Initialises the links of the instrument. |
protected void |
initialiseWidgets()
Initialises the widgets of the instrument. |
void |
onActionAdded(Action action)
Notifies the handler when the given action is added to the registry. |
void |
setActivated(boolean activated)
Activates or deactivates the instrument. |
protected void |
updateWidgets(Action executedAction)
Updates the widgets of the instrument. |
Methods inherited from class org.malai.instrument.WidgetInstrument |
---|
getComposer, setActivated |
Methods inherited from class org.malai.instrument.Instrument |
---|
addEventable, addLink, clearEvents, getLinks, getSizeLinks, hasLinks, interimFeedback, isActivated, isModified, load, onActionAborted, onActionCancelled, onActionDone, onActionExecuted, onUndoableAdded, onUndoableRedo, onUndoableUndo, reinit, removeLink, save, setModified |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected MMenuItem copyMenu
protected MMenuItem pasteMenu
protected MMenuItem cutMenu
protected IDrawing drawing
Constructor Detail |
---|
public CopierCutterPaster(UIComposer<?> composer, IDrawing drawing)
drawing
- The drawing that contains the shapes.composer
- The composer that manages the widgets of the instrument.
java.lang.IllegalArgumentException
- If the given drawing is null.Method Detail |
---|
protected void initialiseWidgets()
WidgetInstrument
initialiseWidgets
in class WidgetInstrument
public void setActivated(boolean activated)
Instrument
setActivated
in class Instrument
activated
- True = activation.protected void updateWidgets(Action executedAction)
executedAction
- The action currently executed. Can be null.protected void initialiseLinks()
Instrument
initialiseLinks
in class Instrument
public MMenuItem getCopyMenu()
public MMenuItem getPasteMenu()
public MMenuItem getCutMenu()
public void onActionAdded(Action action)
ActionHandler
onActionAdded
in interface ActionHandler
onActionAdded
in class Instrument
action
- The added action.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |