|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.jaspira.plugin.AbstractPlugin
org.openbp.jaspira.gui.plugin.AbstractVisiblePlugin
org.openbp.cockpit.itemeditor.NodeItemEditorPlugin
public class NodeItemEditorPlugin
This plugin represents an editor for a single node
| Nested Class Summary | |
|---|---|
class |
NodeItemEditorPlugin.Events
Event module. |
class |
NodeItemEditorPlugin.InteractionEvents
Interaction module. |
| Nested classes/interfaces inherited from class org.openbp.jaspira.gui.plugin.AbstractVisiblePlugin |
|---|
AbstractVisiblePlugin.StandardVisiblePluginEvents |
| Nested classes/interfaces inherited from class org.openbp.jaspira.plugin.AbstractPlugin |
|---|
AbstractPlugin.StandardPluginEvents |
| Field Summary | |
|---|---|
protected ProcessDrawing |
drawing
Process drawing |
protected WorkspaceDrawingView |
workspaceView
The (only) drawing view of this editor. |
| Fields inherited from class org.openbp.jaspira.plugin.AbstractPlugin |
|---|
PROPERTY_CONDITION, PROPERTY_DESCRIPTION, PROPERTY_ICON, PROPERTY_NAME, PROPERTY_SEQUENCE, PROPERTY_TITLE, PROPERTY_VENDOR, PROPERTY_VERSION |
| Fields inherited from interface org.openbp.jaspira.gui.plugin.VisiblePlugin |
|---|
GER, GEU, SIZE_VARIABLE_BOTH, SIZE_VARIABLE_HEIGHT, SIZE_VARIABLE_NONE, SIZE_VARIABLE_WIDTH, TOOLBAR_DYNAMIC, TOOLBAR_EVENTS, TOOLBAR_NONE |
| Fields inherited from interface org.openbp.jaspira.plugin.Plugin |
|---|
ID_DELIMETER, LEVEL_APPLICATION, LEVEL_FRAME, LEVEL_PAGE, LEVEL_PLUGIN |
| Constructor Summary | |
|---|---|
NodeItemEditorPlugin()
|
|
| Method Summary | |
|---|---|
void |
addTrackChangedListener(javax.swing.event.ChangeListener listener)
The listener is registered for all properties as a WEAK listener, i. e. it may be garbage-collected if not referenced otherwise. |
void |
addViewChangeListener(CH.ifa.draw.framework.ViewChangeListener arg0)
|
void |
cancelUndo()
The node item editor doesn't support undo, so this method does nothing. |
boolean |
canCopy()
Checks if the plugin can copy the selected data to the clipboard. |
boolean |
canCut()
Checks if the plugin can cut the selected data to the clipboard. |
boolean |
canDelete()
Checks if the plugin can delete the selected data. |
boolean |
canPaste(java.awt.datatransfer.Transferable transferable)
Checks if the plugin can paste the data of the given transferable object. |
void |
centerTrackerAt(java.awt.Point p)
Centers the trackable component at the specified point. |
void |
componentHidden(java.awt.event.ComponentEvent e)
|
void |
componentMoved(java.awt.event.ComponentEvent e)
|
void |
componentResized(java.awt.event.ComponentEvent e)
|
void |
componentShown(java.awt.event.ComponentEvent e)
|
java.awt.datatransfer.Transferable |
copy()
Copies the selected data from the plugin to the clipboard. |
java.awt.datatransfer.Transferable |
cut()
Cuts the selected data from the plugin to the clipboard. |
void |
delete()
Deletes the selected data, if any. |
void |
endUndo()
The node item editor doesn't support undo, so this method does nothing. |
void |
figureSelectionChanged(CH.ifa.draw.framework.DrawingView arg0)
|
void |
fireTrackChangedEvent(javax.swing.event.ChangeEvent event)
Fires an event indicating that the tracker position has changed to the registered track change listeners. |
void |
focusGained(java.awt.event.FocusEvent e)
|
void |
focusLost(java.awt.event.FocusEvent e)
|
java.awt.Dimension |
getDocumentSize()
Returns the size of the document that is displayed in the view. |
java.lang.String |
getResourceCollectionContainerName()
Gets the name of the resource component the default resource of the plugin belongs to. |
java.util.List |
getSubClients()
Gets the Dnd sub clients of this plugin. |
ModelerToolSupport |
getToolSupport()
Gets the the modeler tool support object holding all tools. |
CH.ifa.draw.util.UndoManager |
getUndoManager()
|
java.awt.Rectangle |
getVisibleArea()
Returns the area that is currently visible. |
protected void |
initializeComponents()
This template method is called after internal Components (i\.e\. title bar etc\.) |
boolean |
isTrackSuspended()
Returns true if the tracking has been suspended. |
boolean |
isUndoRecording()
The node item editor doesn't support undo, so this method does nothing. |
void |
moveTrackerBy(int x,
int y)
Moves the tracker by the given distance. |
void |
paste(java.awt.datatransfer.Transferable transferable)
Pastes the given data into the plugin. |
void |
pluginShown()
Called after the plugin has been displayed. |
void |
removeTrackChangedListener(javax.swing.event.ChangeListener listener)
Removes a change listener from the trackable object. |
void |
removeViewChangeListener(CH.ifa.draw.framework.ViewChangeListener arg0)
|
void |
repairDamage()
Corrects any refresh damage in the view. |
void |
resumeTrack()
Resumes propagation of track change events. |
void |
saveNode()
Saves the edited node. |
void |
setNode(Node node)
Sets the node to edit. |
void |
setScaleFactor(double scaleFactor)
Sets the scaling factor of the workspace. |
void |
setVisibleArea(java.awt.Rectangle r)
Sets the area that is currently visible. |
void |
showStatus(java.lang.String arg0)
|
Undoable |
startUndo(java.lang.String displayName)
The node item editor doesn't support undo, so this method does nothing. |
void |
suspendTrack()
Prevents track change events to be propagated. |
CH.ifa.draw.framework.Tool |
tool()
|
void |
toolDone()
|
CH.ifa.draw.framework.DrawingView |
view()
|
CH.ifa.draw.framework.DrawingView[] |
views()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openbp.jaspira.gui.plugin.VisiblePlugin |
|---|
addPluginFocusListener, canDrag, createToolbar, firePluginFocusGained, firePluginFocusLost, focusPlugin, getPage, getPluginComponent, getPluginFocusComponent, getPluginHolder, getPluginPanel, getSizeBehavior, getToolbarType, hasCloseButton, isPluginFocused, isPluginVisible, pluginHidden, postPluginContainerUpdate, removePluginFocusListener, setPluginHolder, showPlugin, updatePluginContainer |
| Field Detail |
|---|
protected WorkspaceDrawingView workspaceView
protected ProcessDrawing drawing
| Constructor Detail |
|---|
public NodeItemEditorPlugin()
| Method Detail |
|---|
public java.lang.String getResourceCollectionContainerName()
AbstractPlugin
getResourceCollectionContainerName in class AbstractPluginpublic void setNode(Node node)
node - The nodepublic void saveNode()
public ModelerToolSupport getToolSupport()
getToolSupport in interface DrawingEditorPluginprotected void initializeComponents()
AbstractVisiblePlugin
initializeComponents in class AbstractVisiblePluginAbstractVisiblePlugin.initializeComponents()public void pluginShown()
AbstractVisiblePlugin
pluginShown in interface VisiblePluginpluginShown in class AbstractVisiblePluginAbstractVisiblePlugin.pluginShown()public void componentResized(java.awt.event.ComponentEvent e)
componentResized in interface java.awt.event.ComponentListenerComponentListener.componentResized(ComponentEvent)public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden in interface java.awt.event.ComponentListenerComponentListener.componentHidden(ComponentEvent)public void componentShown(java.awt.event.ComponentEvent e)
componentShown in interface java.awt.event.ComponentListenerComponentListener.componentShown(ComponentEvent)public void componentMoved(java.awt.event.ComponentEvent e)
componentMoved in interface java.awt.event.ComponentListenerComponentListener.componentMoved(ComponentEvent)public void figureSelectionChanged(CH.ifa.draw.framework.DrawingView arg0)
figureSelectionChanged in interface CH.ifa.draw.framework.DrawingEditorfigureSelectionChanged in interface CH.ifa.draw.framework.FigureSelectionListenerFigureSelectionListener.figureSelectionChanged(DrawingView)public CH.ifa.draw.util.UndoManager getUndoManager()
getUndoManager in interface CH.ifa.draw.framework.DrawingEditorDrawingEditor.getUndoManager()public void addViewChangeListener(CH.ifa.draw.framework.ViewChangeListener arg0)
addViewChangeListener in interface CH.ifa.draw.framework.DrawingEditorDrawingEditor.addViewChangeListener(ViewChangeListener)public void removeViewChangeListener(CH.ifa.draw.framework.ViewChangeListener arg0)
removeViewChangeListener in interface CH.ifa.draw.framework.DrawingEditorDrawingEditor.removeViewChangeListener(ViewChangeListener)public void showStatus(java.lang.String arg0)
showStatus in interface CH.ifa.draw.framework.DrawingEditorDrawingEditor.showStatus(String)public CH.ifa.draw.framework.Tool tool()
tool in interface CH.ifa.draw.framework.DrawingEditorDrawingEditor.tool()public void toolDone()
toolDone in interface CH.ifa.draw.framework.DrawingEditorDrawingEditor.toolDone()public CH.ifa.draw.framework.DrawingView view()
view in interface CH.ifa.draw.framework.DrawingEditorDrawingEditor.view()public CH.ifa.draw.framework.DrawingView[] views()
views in interface CH.ifa.draw.framework.DrawingEditorDrawingEditor.views()public void repairDamage()
DrawingEditorPlugin
repairDamage in interface DrawingEditorPluginpublic java.util.List getSubClients()
AbstractPlugin
getSubClients in interface VisiblePlugingetSubClients in class AbstractVisiblePluginInteractionClient or null otherwisepublic boolean canCopy()
VisiblePlugin
canCopy in interface VisiblePlugincanCopy in class AbstractVisiblePluginpublic boolean canDelete()
VisiblePlugin
canDelete in interface VisiblePlugincanDelete in class AbstractVisiblePluginpublic boolean canCut()
VisiblePlugin
canCut in interface VisiblePlugincanCut in class AbstractVisiblePluginpublic boolean canPaste(java.awt.datatransfer.Transferable transferable)
VisiblePlugin
canPaste in interface VisiblePlugincanPaste in class AbstractVisiblePluginpublic java.awt.datatransfer.Transferable copy()
VisiblePlugin
copy in interface VisiblePlugincopy in class AbstractVisiblePluginpublic java.awt.datatransfer.Transferable cut()
VisiblePlugin
cut in interface VisiblePlugincut in class AbstractVisiblePluginpublic void delete()
VisiblePlugin
delete in interface VisiblePlugindelete in class AbstractVisiblePluginpublic void paste(java.awt.datatransfer.Transferable transferable)
VisiblePlugin
paste in interface VisiblePluginpaste in class AbstractVisiblePlugintransferable - Content to pastepublic void focusGained(java.awt.event.FocusEvent e)
focusGained in interface java.awt.event.FocusListenerFocusListener.focusGained(java.awt.event.FocusEvent)public void focusLost(java.awt.event.FocusEvent e)
focusLost in interface java.awt.event.FocusListenerFocusListener.focusLost(java.awt.event.FocusEvent)public java.awt.Dimension getDocumentSize()
Trackable
getDocumentSize in interface TrackableTrackable.getDocumentSize()public java.awt.Rectangle getVisibleArea()
Trackable
getVisibleArea in interface TrackableTrackable.getVisibleArea()public void setVisibleArea(java.awt.Rectangle r)
Trackable
setVisibleArea in interface Trackabler - Rectangle in document coordinatesTrackable.setVisibleArea(Rectangle)public void centerTrackerAt(java.awt.Point p)
Trackable
centerTrackerAt in interface Trackablep - Point in document coordinatesTrackable.centerTrackerAt(Point)
public void moveTrackerBy(int x,
int y)
Trackable
moveTrackerBy in interface Trackablex - Hor. distance in document coordinatesy - Vert. distance in document coordinatesTrackable.moveTrackerBy(int, int)public void addTrackChangedListener(javax.swing.event.ChangeListener listener)
addTrackChangedListener in interface TrackableTrackable.addTrackChangedListener(ChangeListener)public void removeTrackChangedListener(javax.swing.event.ChangeListener listener)
Trackable
removeTrackChangedListener in interface TrackableTrackable.removeTrackChangedListener(ChangeListener)public void fireTrackChangedEvent(javax.swing.event.ChangeEvent event)
Trackable
fireTrackChangedEvent in interface Trackableevent - Event to fireTrackable.fireTrackChangedEvent(ChangeEvent)public void suspendTrack()
suspendTrack in interface Trackablepublic void resumeTrack()
resumeTrack in interface Trackablepublic boolean isTrackSuspended()
isTrackSuspended in interface Trackablepublic void setScaleFactor(double scaleFactor)
public Undoable startUndo(java.lang.String displayName)
startUndo in interface DrawingEditorPlugindisplayName - Display name or nullDrawingEditorPlugin.startUndo(String displayName)public void endUndo()
endUndo in interface DrawingEditorPluginDrawingEditorPlugin.endUndo()public void cancelUndo()
cancelUndo in interface DrawingEditorPluginDrawingEditorPlugin.cancelUndo()public boolean isUndoRecording()
isUndoRecording in interface DrawingEditorPluginDrawingEditorPlugin.isUndoRecording()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||