Class PathEditorTool
- java.lang.Object
-
- com.inductiveautomation.ignition.designer.designable.tools.AbstractDesignTool
-
- com.inductiveautomation.factorypmi.designer.workspace.tools.AbstractShapeTool
-
- com.inductiveautomation.factorypmi.designer.workspace.tools.PathEditorTool
-
- All Implemented Interfaces:
IDesignTool
public class PathEditorTool extends AbstractShapeTool
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.inductiveautomation.factorypmi.designer.workspace.tools.AbstractShapeTool
AbstractShapeTool.AbstractShapeControls
-
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.designer.designable.IDesignTool
IDesignTool.ToolbarInitializer
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.factorypmi.designer.workspace.tools.AbstractShapeTool
addingShape, cursor, dropContainer
-
Fields inherited from class com.inductiveautomation.ignition.designer.designable.tools.AbstractDesignTool
actionMap, changeSupport, designable, HANDLES_PROPERTY, inputMap, interactionLayer, panel, workspace
-
-
Constructor Summary
Constructors Constructor Description PathEditorTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.awt.Cursor
createCursor()
protected javax.swing.JComponent
findDropContainer(java.awt.geom.Point2D point)
Finds the top-most object under the given spot that the delegate designates as a container.protected java.lang.Class<? extends ShapeDelegate>
getDelegateType()
protected java.lang.String
getNewShapeName()
java.lang.String
getStatusBarText(java.util.List<javax.swing.JComponent> selection, java.awt.Point point, int inputMask)
Calculates the currently applicable status bar text for this toolIDesignTool.ToolbarInitializer
getToolbarInitializer()
protected boolean
handlesShape(ShapeDelegate shape)
protected ISelectionControl
newShapeControl()
protected ShapeDelegate
newShapeDelegate(java.awt.geom.Rectangle2D rect)
void
onDrag(java.awt.Point startPoint, java.awt.Point lastPoint, java.awt.Rectangle r, int modifiers)
Called while the user is dragging.void
onDragEnd(java.awt.Point startPoint, java.awt.Point lastPoint, java.awt.Rectangle r, int modifiers)
Called when the user stops dragging.void
onDragStart(java.awt.Point startPoint, java.awt.Point lastPoint, java.awt.Rectangle r, int modifiers)
Called when the user start's dragging while this tool is active.void
uninstall()
Uninstalls the tool.-
Methods inherited from class com.inductiveautomation.factorypmi.designer.workspace.tools.AbstractShapeTool
disableToolbar, getCursor, getShape, install, isRelevantFor, newSelectionControl, onClick, onPress, tt, updateToolbar, updateToolbar, validSelection
-
Methods inherited from class com.inductiveautomation.ignition.designer.designable.tools.AbstractDesignTool
addAction, addKeyBinding, addKeyBinding, addPropertyChangeListener, createCursor, getAction, getDragHighlight, getOffsettingBounds, getOriginalBounds, isInstalled, itemMovable, movable, newToolbarSpinner, newToolbarSpinner, newToolbarSpinner, onClickAlterSelection, onDoubleClick, onKeyEvent, onMove, onPopupTrigger, onRelease, onRightClickSwitchToSelectionTool, removePropertyChangeListener
-
-
-
-
Method Detail
-
getToolbarInitializer
public IDesignTool.ToolbarInitializer getToolbarInitializer()
- Specified by:
getToolbarInitializer
in interfaceIDesignTool
- Overrides:
getToolbarInitializer
in classAbstractDesignTool
-
createCursor
protected java.awt.Cursor createCursor()
- Specified by:
createCursor
in classAbstractShapeTool
-
getStatusBarText
public java.lang.String getStatusBarText(java.util.List<javax.swing.JComponent> selection, java.awt.Point point, int inputMask)
Description copied from interface:IDesignTool
Calculates the currently applicable status bar text for this tool- Specified by:
getStatusBarText
in interfaceIDesignTool
- Overrides:
getStatusBarText
in classAbstractDesignTool
-
newShapeControl
protected ISelectionControl newShapeControl()
- Specified by:
newShapeControl
in classAbstractShapeTool
-
uninstall
public void uninstall()
Description copied from interface:IDesignTool
Uninstalls the tool.- Specified by:
uninstall
in interfaceIDesignTool
- Overrides:
uninstall
in classAbstractShapeTool
-
onDragStart
public void onDragStart(java.awt.Point startPoint, java.awt.Point lastPoint, java.awt.Rectangle r, int modifiers)
Description copied from class:AbstractDesignTool
Called when the user start's dragging while this tool is active. All coordinates are relative to the interaction panel and are in zoomed space.- Specified by:
onDragStart
in interfaceIDesignTool
- Overrides:
onDragStart
in classAbstractShapeTool
-
onDragEnd
public void onDragEnd(java.awt.Point startPoint, java.awt.Point lastPoint, java.awt.Rectangle r, int modifiers)
Description copied from class:AbstractDesignTool
Called when the user stops dragging. All coordinates are relative to the interaction panel and are in zoomed space.- Specified by:
onDragEnd
in interfaceIDesignTool
- Overrides:
onDragEnd
in classAbstractShapeTool
-
onDrag
public void onDrag(java.awt.Point startPoint, java.awt.Point lastPoint, java.awt.Rectangle r, int modifiers)
Description copied from class:AbstractDesignTool
Called while the user is dragging. All coordinates are relative to the interaction panel and are in zoomed space.- Specified by:
onDrag
in interfaceIDesignTool
- Overrides:
onDrag
in classAbstractShapeTool
-
getDelegateType
protected java.lang.Class<? extends ShapeDelegate> getDelegateType()
- Specified by:
getDelegateType
in classAbstractShapeTool
-
handlesShape
protected boolean handlesShape(ShapeDelegate shape)
- Overrides:
handlesShape
in classAbstractShapeTool
-
findDropContainer
protected javax.swing.JComponent findDropContainer(java.awt.geom.Point2D point)
Description copied from class:AbstractDesignTool
Finds the top-most object under the given spot that the delegate designates as a container. Point should be specified in unzoomed (logical) coordinates.- Overrides:
findDropContainer
in classAbstractDesignTool
-
newShapeDelegate
protected ShapeDelegate newShapeDelegate(java.awt.geom.Rectangle2D rect)
- Specified by:
newShapeDelegate
in classAbstractShapeTool
-
getNewShapeName
protected java.lang.String getNewShapeName()
- Specified by:
getNewShapeName
in classAbstractShapeTool
-
-