Class RectangleTool
- java.lang.Object
-
- com.inductiveautomation.ignition.designer.designable.tools.AbstractDesignTool
-
- com.inductiveautomation.factorypmi.designer.workspace.tools.AbstractShapeTool
-
- com.inductiveautomation.factorypmi.designer.workspace.tools.AbstractRectangularShapeTool
-
- com.inductiveautomation.factorypmi.designer.workspace.tools.RectangleTool
-
- All Implemented Interfaces:
IDesignTool
public class RectangleTool extends AbstractRectangularShapeTool
-
-
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.AbstractRectangularShapeTool
hSpinner, wSpinner, xSpinner, ySpinner
-
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 RectangleTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.awt.Cursor
createCursor()
protected void
disableToolbar()
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 toolprotected void
initActions()
protected void
initToolbar(DesignerToolbar toolbar)
protected ISelectionControl
newShapeControl()
protected ShapeDelegate
newShapeDelegate(java.awt.geom.Rectangle2D rect)
protected void
updateToolbar(PathBasedVisionShape shape)
-
Methods inherited from class com.inductiveautomation.factorypmi.designer.workspace.tools.AbstractRectangularShapeTool
getToolbarInitializer, onDrag, updateSpinners
-
Methods inherited from class com.inductiveautomation.factorypmi.designer.workspace.tools.AbstractShapeTool
getCursor, getShape, handlesShape, install, isRelevantFor, newSelectionControl, onClick, onDragEnd, onDragStart, onPress, tt, uninstall, updateToolbar, validSelection
-
Methods inherited from class com.inductiveautomation.ignition.designer.designable.tools.AbstractDesignTool
addAction, addKeyBinding, addKeyBinding, addPropertyChangeListener, createCursor, findDropContainer, getAction, getDragHighlight, getOffsettingBounds, getOriginalBounds, isInstalled, itemMovable, movable, newToolbarSpinner, newToolbarSpinner, newToolbarSpinner, onClickAlterSelection, onDoubleClick, onKeyEvent, onMove, onPopupTrigger, onRelease, onRightClickSwitchToSelectionTool, removePropertyChangeListener
-
-
-
-
Method Detail
-
initActions
protected void initActions()
- Overrides:
initActions
in classAbstractRectangularShapeTool
-
initToolbar
protected void initToolbar(DesignerToolbar toolbar)
- Overrides:
initToolbar
in classAbstractRectangularShapeTool
-
updateToolbar
protected void updateToolbar(PathBasedVisionShape shape)
- Overrides:
updateToolbar
in classAbstractRectangularShapeTool
-
disableToolbar
protected void disableToolbar()
- Overrides:
disableToolbar
in classAbstractRectangularShapeTool
-
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
-
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
-
newShapeControl
protected ISelectionControl newShapeControl()
- Specified by:
newShapeControl
in classAbstractShapeTool
-
getDelegateType
protected java.lang.Class<? extends ShapeDelegate> getDelegateType()
- Specified by:
getDelegateType
in classAbstractShapeTool
-
-