org.arakhne.neteditor.swing
G - is the type of the graph supported by this panel.public class JFigureView<G extends Graph<?,?,?,?>> extends ZoomableView implements ViewComponentContainer<Figure,G>
JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
static int |
CLICK_PRECISION
Precision in pixels for the clicking action (in pixels).
|
protected ReentrantLock |
deletionLock
Lock resource that may be used for deletion actions.
|
REPAINT_BORDERaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTNO_SUCH_PAGE, PAGE_EXISTSABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
JFigureView(Class<G> supportedGraphType,
G g,
FigureFactory<G> figureFactory,
boolean isAlwaysRemovingModelObjects)
Construct a new JFigurePanel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExceptionListener(ExceptionListener listener)
Add listener on exceptions.
|
int |
addFigure(Figure component)
Add the element at the specified index.
|
void |
addFigureListener(FigureListener listener)
Add listener on figure events.
|
protected Rectangle2f |
calcViewBounds()
Compute and reply the bounds of the entire document.
|
(package private) void |
closePopupEditor()
Cancel and close the popup editor.
|
void |
copy()
Transfers the currently selected figures
to the system clipboard, leaving the contents
in the text model.
|
void |
cut()
Transfers the currently selected figures
to the system clipboard, removing the contents
from the model.
|
void |
fireError(Throwable error)
Notifies the listeners about an error that occurs in one
of the JFigureEditor components.
|
protected void |
fireFigureAdded(Figure added)
Notifies the listeners about the addition of a figure.
|
protected void |
fireFigureChanged(Figure changed)
Notifies the listeners about the change of a figure.
|
protected void |
fireFigureRemoved(Figure removed)
Notifies the listeners about the removal of a figure.
|
Color |
getBackgroundColor()
Replies the background color of the panel.
|
CollisionAvoider |
getCollisionAvoider()
Replies the object that permits to avoid collision between a
figure to insert inside and the already present figures.
|
Figure |
getFigureAt(float x,
float y)
Replies the figure that has the specified point in
its shape.
|
Figure |
getFigureAt(int index)
Replies the element at the specified index.
|
int |
getFigureCount()
Replies the number of components in this container.
|
FigureFactory<G> |
getFigureFactory()
Replies the figure factory used by this panel.
|
Figure |
getFigureIn(Rectangle2f bounds)
Replies the first figure that are inside the specified bounds.
|
Figure |
getFigureOn(Shape2f bounds)
Replies the first figure that are intersecting the specified bounds.
|
Collection<? extends Figure> |
getFigures()
Replies the figures in the container.
|
Set<Figure> |
getFiguresIn(Rectangle2f bounds)
Replies the figures that are inside the specified bounds.
|
Set<Figure> |
getFiguresOn(Shape2f bounds)
Replies the figures that are intersecting the specified bounds.
|
Figure |
getFigureWithBoundsAt(float x,
float y)
Replies the figu with the precision re that has its bounds with the specified
point inside.
|
G |
getGraph()
Replies the graph displayed in this viewer.
|
float |
getHitPrecision()
Replies the precision of the clicks (in pixels).
|
ActionModeManager |
getModeManager()
Replies the action mode manager used by this viewser.
|
protected float |
getPreferredFocusX() |
protected float |
getPreferredFocusY() |
Color |
getSelectionBackground()
Replies the background color used for the selection of objects.
|
Color |
getSelectionBackgroundColor()
Replies the background color associated to selection.
|
Color |
getSelectionForeground()
Replies the foreground color used for the selection of objects.
|
Color |
getSelectionForegroundColor()
Replies the foreground color associated to selection.
|
JSelectionManager |
getSelectionManager()
Replies the selection manager.
|
Class<G> |
getSupportedGraphType()
Replies the type of graph supported by this viewer.
|
UndoManagerSwing |
getUndoManager()
Replies the manager of undoable actions.
|
UUID |
getUUID()
Relies the id of the view.
|
Rectangle2f |
getViewBounds()
Replies the bounds of the view of the components.
|
Undoable |
importFigure(DecorationFigure figure)
Import the specified figure into this editor and
replies an undoable edit.
|
Undoable |
importGraph(String undoLabel,
G graph,
List<ViewComponent> figures)
Import the graph and the specified figures into this editor.
|
Undoable |
importGraph(String undoLabel,
G graph,
Map<UUID,List<ViewComponent>> figures)
Import the graph and the specified figures into this editor.
|
int |
indexOfFigure(Figure figure)
Replies the index of the figure.
|
boolean |
isAlwaysRemovingModelObjects()
Replies if the mode container want to remove the model
objects when a figure is removed from the view.
|
boolean |
isAxisDrawn()
Replies if the axis are drawn.
|
boolean |
isEditable()
Replies if this viewer is interactively editable.
|
boolean |
isFigureAutomaticallyAdded()
Replies if the figure are automatically added into the view
when a model object was added in the graph.
|
boolean |
isOutsideGrayed()
Replies if the area outside the workspace is grayed.
|
boolean |
isSelectionEnabled()
Replies if the selection manager is enabled
|
boolean |
isShadowDrawn()
Replies if the shadows are drawn.
|
Iterator<Figure> |
iterator() |
int |
moveFigureAt(Figure figure,
int index)
Move the figure at the specified position in the layers used by this panel.
|
void |
moveFigureBackground(Figure figure)
Move the figure at the background in the layers used by this panel.
|
void |
moveFigureDown(Figure figure)
Move the figure down in the layers used by this panel.
|
void |
moveFigureFront(Figure figure)
Move the figure at the front in the layers used by this panel.
|
void |
moveFigureUp(Figure figure)
Move the figure up in the layers used by this panel.
|
protected void |
onClick(PointerEvent e) |
protected void |
onDrawView(Graphics2D canvas,
float scaleFactor,
CenteringTransform centeringTransform) |
protected void |
onKeyPressed(KeyEvent e) |
protected void |
onKeyReleased(KeyEvent e) |
protected void |
onKeyTyped(KeyEvent e) |
protected void |
onLongClick(PointerEvent e) |
protected void |
onPointerDragged(PointerEvent e) |
protected void |
onPointerMoved(PointerEvent e) |
protected void |
onPointerPressed(PointerEvent e) |
protected void |
onPointerReleased(PointerEvent e) |
protected void |
onUpdateViewParameters() |
(package private) void |
openPopupEditor(TextFigure figure,
Point2D mousePosition)
Open the popup editor for the specified figure.
|
protected void |
paintAxis(ZoomableGraphics2D g)
Paint the axis.
|
protected void |
paintOutsideGrayed(ZoomableGraphics2D g)
Paint the outside of the workspace with gray.
|
void |
paintViewComponents(ViewGraphics2D g)
Method to paint the figures.
|
void |
paste()
Transfers the contents of the system clipboard into the
associated graph.
|
void |
removeAllFigures()
Clear the components.
|
void |
removeExceptionListener(ExceptionListener listener)
Remove listener on exceptions.
|
int |
removeFigure(Figure component)
Remove the specified element.
|
int |
removeFigure(Figure component,
boolean unlinkToModelObject)
Remove the specified component.
|
Figure |
removeFigureAt(int index)
Remove the element at the specified index.
|
void |
removeFigureListener(FigureListener listener)
Remove listener on figure events.
|
void |
repaint(Figure figure)
Repaint the graphical area around the specified figure.
|
void |
repaint(ModelObject obj)
Repaint the graphical area around the figures associated to
the specified object.
|
void |
setAxisDrawn(boolean draw)
Set if the axis are drawn.
|
void |
setClickPrecision(float precision)
Set the precision of the clicks (in pixels).
|
void |
setEditable(boolean editable)
Set if this viewer is interactively editable.
|
void |
setFigureAutomaticallyAdded(boolean auto)
Replies if the figure are automatically added into the view
when a model object was added in the graph.
|
void |
setFigureFactory(FigureFactory<G> factory)
Set the figure factory used by this panel.
|
void |
setGraph(G g)
set the graph associated to this panel.
|
void |
setOutsideGrayed(boolean gray)
Set if the area outside the workspace is grayed.
|
void |
setSelectionManager(boolean enable)
Set if the selection manager is enabled
|
void |
setShadowDrawn(boolean draw)
Set if the shadows are drawn.
|
fitView, getFocusX, getFocusY, getLOD, getMaxScalingFactor, getMinScalingFactor, getScalingFactor, getScalingFactorToFit, getScalingSensitivity, getScrollingMethod, getViewport, getViewportCenterX, getViewportCenterY, isAntiAliased, isFocusChangedOnMouseWheel, isMouseWheelAllowed, isMoveDirectionInverted, isXAxisInverted, isYAxisInverted, logical2pixel_size, logical2pixel_x, logical2pixel_y, logical2pixel, logical2pixel, logical2pixel, logical2pixel, logical2pixel, logical2pixel, logical2pixel, logical2pixel, onScale, paint, pixel2logical_size, pixel2logical_x, pixel2logical_y, pixel2logical, pixel2logical, pixel2logical, pixel2logical, pixel2logical, pixel2logical, pixel2logical, pixel2logical, print, print, print, printAll, repaint, repaint, repaint, repaint, resetView, setAntiAliased, setFocusChangedOnMouseWheel, setFocusPoint, setMaxScalingFactor, setMinScalingFactor, setMouseWheelEnable, setMoveDirectionInverted, setScalingFactor, setScalingFactorAndFocus, setScalingFactorForPixelRatio, setScalingSensitivity, setScrollingMethod, setXAxisInverted, setYAxisInverted, translateFocusPoint, zoomIn, zoomOutgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTreeLockpublic static final int CLICK_PRECISION
protected final ReentrantLock deletionLock
public JFigureView(Class<G> supportedGraphType, G g, FigureFactory<G> figureFactory, boolean isAlwaysRemovingModelObjects)
supportedGraphType - is the type supported by this viewer.g - is the graph to display.figureFactory - is the factory for figures.isAlwaysRemovingModelObjects - is true to allow this
base mode to remove the model objects each time an associated figure
is removed; false to permits to the user to select
the figure or the model object to be removed.public boolean isAlwaysRemovingModelObjects()
true if both the figure and the
model objects should be removed at the same time,
false if only the figure should be removed
(not the model object).public final Class<G> getSupportedGraphType()
public CollisionAvoider getCollisionAvoider()
public void addFigureListener(FigureListener listener)
listener - public void removeFigureListener(FigureListener listener)
listener - protected void fireFigureRemoved(Figure removed)
removed - protected void fireFigureChanged(Figure changed)
changed - protected void fireFigureAdded(Figure added)
added - public boolean isEditable()
true if this viewer is editable; otherwise false.public boolean isSelectionEnabled()
true if the selection manager is enabled.public void setSelectionManager(boolean enable)
enable - public void setEditable(boolean editable)
editable - is true if this viewer is editable; otherwise false.public Color getSelectionBackground()
public final Color getSelectionBackgroundColor()
getSelectionBackgroundColor in interface ViewComponentContainer<Figure,G extends Graph<?,?,?,?>>public Color getBackgroundColor()
getBackgroundColor in interface ViewComponentContainer<Figure,G extends Graph<?,?,?,?>>public Color getSelectionForeground()
public final Color getSelectionForegroundColor()
getSelectionForegroundColor in interface ViewComponentContainer<Figure,G extends Graph<?,?,?,?>>public float getHitPrecision()
public void setClickPrecision(float precision)
CLICK_PRECISION
is used.precision - is the precision of the clicks, in pixels.public final UUID getUUID()
getUUID in interface ViewComponentContainer<Figure,G extends Graph<?,?,?,?>>public boolean isFigureAutomaticallyAdded()
getFigureFactory().true if the figures are automatically added;
otherwise false.public void setFigureAutomaticallyAdded(boolean auto)
getFigureFactory().auto - is true if the figures are automatically added;
otherwise false.public FigureFactory<G> getFigureFactory()
getFigureFactory in interface ViewComponentContainer<Figure,G extends Graph<?,?,?,?>>public void setFigureFactory(FigureFactory<G> factory)
factory - is the new figure factory.public G getGraph()
public void setGraph(G g)
g - is the graph.public int getFigureCount()
getFigureCount in interface ViewComponentContainer<Figure,G extends Graph<?,?,?,?>>public Figure getFigureAt(int index)
getFigureAt in interface ViewComponentContainer<Figure,G extends Graph<?,?,?,?>>index - is the index of the element.public int addFigure(Figure component)
addFigure in interface ViewComponentContainer<Figure,G extends Graph<?,?,?,?>>component - is the component to add.-1 if the figure was not added.importFigure(DecorationFigure),
importGraph(String, Graph, Map)public int removeFigure(Figure component)
removeFigure in interface ViewComponentContainer<Figure,G extends Graph<?,?,?,?>>component - is the component to remove.removeFigure(Figure, boolean)public int removeFigure(Figure component, boolean unlinkToModelObject)
component - is the component to remove.unlinkToModelObject - indicates if the removed component should be
unlink to its model object.-1 if not found.removeFigure(Figure)public Figure removeFigureAt(int index)
removeFigureAt in interface ViewComponentContainer<Figure,G extends Graph<?,?,?,?>>index - is the position of the element to remove.public void removeAllFigures()
removeAllFigures in interface ViewComponentContainer<Figure,G extends Graph<?,?,?,?>>public boolean isAxisDrawn()
true if the axis are drawn;
otherwise false.public void setAxisDrawn(boolean draw)
draw - is true if the axis are drawn;
otherwise false.public boolean isOutsideGrayed()
true if the outside area is grayed;
otherwise false.public void setOutsideGrayed(boolean gray)
gray - is true if the outside area is grayed;
otherwise false.public boolean isShadowDrawn()
isShadowDrawn in interface ViewComponentContainer<Figure,G extends Graph<?,?,?,?>>true if the shadows are drawn;
otherwise false.public void setShadowDrawn(boolean draw)
setShadowDrawn in interface ViewComponentContainer<Figure,G extends Graph<?,?,?,?>>draw - is true if the shadows are drawn;
otherwise false.public void paintViewComponents(ViewGraphics2D g)
paintViewComponents in interface ViewComponentContainer<Figure,G extends Graph<?,?,?,?>>g - the graphic context.protected float getPreferredFocusX()
getPreferredFocusX in class ZoomableViewprotected float getPreferredFocusY()
getPreferredFocusY in class ZoomableViewprotected void onDrawView(Graphics2D canvas, float scaleFactor, CenteringTransform centeringTransform)
onDrawView in class ZoomableViewprotected void onClick(PointerEvent e)
onClick in class ZoomableViewprotected void onLongClick(PointerEvent e)
onLongClick in class ZoomableViewprotected void onPointerDragged(PointerEvent e)
onPointerDragged in class ZoomableViewprotected void onPointerMoved(PointerEvent e)
onPointerMoved in class ZoomableViewprotected void onPointerPressed(PointerEvent e)
onPointerPressed in class ZoomableViewprotected void onPointerReleased(PointerEvent e)
onPointerReleased in class ZoomableViewprotected void onKeyPressed(KeyEvent e)
onKeyPressed in class ZoomableViewprotected void onKeyReleased(KeyEvent e)
onKeyReleased in class ZoomableViewprotected void onKeyTyped(KeyEvent e)
onKeyTyped in class ZoomableViewprotected void onUpdateViewParameters()
onUpdateViewParameters in class ZoomableViewprotected void paintOutsideGrayed(ZoomableGraphics2D g)
g - protected void paintAxis(ZoomableGraphics2D g)
g - public void repaint(Figure figure)
null
the entire area is repainted.figure - public void repaint(ModelObject obj)
null
the entire area is repainted.obj - protected Rectangle2f calcViewBounds()
public final Rectangle2f getViewBounds()
getViewBounds in interface ViewComponentContainer<Figure,G extends Graph<?,?,?,?>>public Collection<? extends Figure> getFigures()
public Figure getFigureAt(float x, float y)
getFigureWithBoundsAt(float, float).
This function uses the precision of the clicks, which
is replied by getHitPrecision().x - y - null if none.getFigureWithBoundsAt(float, float)public Figure getFigureWithBoundsAt(float x, float y)
getFigureAt(float, float).
This function uses the precision of the clicks, which
is replied by getHitPrecision().x - y - null if none.public Set<Figure> getFiguresOn(Shape2f bounds)
bounds - null.public Set<Figure> getFiguresIn(Rectangle2f bounds)
bounds - null.public Figure getFigureOn(Shape2f bounds)
bounds - null.public Figure getFigureIn(Rectangle2f bounds)
bounds - null.public void moveFigureUp(Figure figure)
figure - is the figure to move up.public void moveFigureDown(Figure figure)
figure - is the figure to move down.public void moveFigureFront(Figure figure)
figure - is the figure to move to the front.public void moveFigureBackground(Figure figure)
figure - is the figure to move to the background.public int moveFigureAt(Figure figure, int index)
figure - is the figure to move to the front.index - is the new position of the figure.-1
if the figure was not found.IllegalArgumentExceptionpublic int indexOfFigure(Figure figure)
figure - is the figure to search for.-1 if
is was not found.public Undoable importGraph(String undoLabel, G graph, Map<UUID,List<ViewComponent>> figures)
undoLabel - is the label of the undoable edit to reply.graph - is the graph to integrate.figures - are the figures (classified per view id) to import, from front to background.public Undoable importGraph(String undoLabel, G graph, List<ViewComponent> figures)
undoLabel - is the label of the undoable edit to reply.graph - is the graph to integrate.figures - are the figures (classified per view id) to import, from front to background.public Undoable importFigure(DecorationFigure figure)
figure - is the figure to import.public void fireError(Throwable error)
error - public void addExceptionListener(ExceptionListener listener)
listener - public void removeExceptionListener(ExceptionListener listener)
false, the default
catching behavior is executed: the exception is forwaded to the VM.listener - public JSelectionManager getSelectionManager()
public UndoManagerSwing getUndoManager()
public ActionModeManager getModeManager()
public void cut()
null selections.public void copy()
null selections.public void paste()
void openPopupEditor(TextFigure figure, Point2D mousePosition)
figure - mousePosition - is the position of the mouse when opening the
editor; may be null if the mouse position is unknown.void closePopupEditor()
Copyright © 2001-2013 NetEditor Developers. 
NetEditor API Documentation by NetEditor Developers is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Based on a work at www.arakhne.org/neteditor