Class StandaloneDelegate
java.lang.Object
com.inductiveautomation.ignition.designer.designable.JComponentItemDelegate
com.inductiveautomation.ignition.designer.designable.standalone.StandaloneDelegate
- All Implemented Interfaces:
- DesignableDelegate
- 
Nested Class SummaryNested classes/interfaces inherited from class com.inductiveautomation.ignition.designer.designable.JComponentItemDelegateJComponentItemDelegate.ChildIterator
- 
Field SummaryFields inherited from class com.inductiveautomation.ignition.designer.designable.JComponentItemDelegateROTATION_CENTER_KEY, scratch, tx
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddObject(JComponent parent, JComponent newChild, Rectangle2D newBounds) Adds the child into the given parent (which must be a container) at the given bounds, relative to the parent.voidcopyMove(List<JComponent> objects, double dX, double dY) Iterator<? extends JComponent>findChildren(JComponent container) Returns an iterator that iterates through the children of the given container in decreasing Z-order (highest layer to lowest layer)protected voidfindHits(LinkedList<JComponent> hits, JPanel container, int x, int y) findObjectsAt(DesignableContainer container, Point point) Performs a basic "hit-test" to find objects in a container underneath a point.intgetChildCount(JComponent container) Returns the count of the number of items currently held in the given containergetParent(JComponent child) Finds the given item's parent in the container hierarchybooleanisContainer(JComponent item) Determines whether any given object is a container.booleanisLocked(JComponent item) Returns whether a normally movable object is currently locked or notbooleanisMovable(JComponent item) Defines whether or not an item is inherently movable or not.booleanisOffsettingParent(JComponent container) Tests whether this container is an offsetting parent or notbooleanisRotateCapable(JComponent item) Returns whether or not an item supports being rotated.voidmoveObject(JComponent object, Point2D newLocation) Move the given item to the new location.voidnotifyObjectsMoved(List<JComponent> objects, Map<JComponent, Rectangle2D> originalPositions) voidnotifyObjectsRotated(List<JComponent> objects, double angle, Point2D rotationAnchor) voidrotateObject(JComponent object, double angle, Point2D rotationAnchor) Rotate the object around the given point by the angle specified.voidscaleObject(JComponent object, Rectangle2D newBounds) Scale the given item to the new bounds.voidsetZOrderPosition(JComponent item, int position) Methods inherited from class com.inductiveautomation.ignition.designer.designable.JComponentItemDelegateconvertRect, convertShape, getBounds, getName, getOffsettingParent, getRotationAnchor, getShapeBounds, initRect, setRotationAnchor
- 
Constructor Details- 
StandaloneDelegatepublic StandaloneDelegate()
 
- 
- 
Method Details- 
isMovableDescription copied from interface:DesignableDelegateDefines whether or not an item is inherently movable or not. Note that a normally movable object that is currently "locked" would still return true for this function.
- 
isLockedDescription copied from interface:DesignableDelegateReturns whether a normally movable object is currently locked or not
- 
isContainerDescription copied from interface:DesignableDelegateDetermines whether any given object is a container. That is - whether it contains other selectable objects inside itself.- Parameters:
- item- The item to test
- Returns:
- true if item is a container.
 
- 
isOffsettingParentDescription copied from interface:DesignableDelegateTests whether this container is an offsetting parent or not
- 
isRotateCapableDescription copied from interface:DesignableDelegateReturns whether or not an item supports being rotated.
- 
findObjectsAtDescription copied from interface:DesignableDelegatePerforms a basic "hit-test" to find objects in a container underneath a point.- point- The point in question, relative to the DesignableContainer
 
- 
findHits
- 
findChildrenDescription copied from interface:DesignableDelegateReturns an iterator that iterates through the children of the given container in decreasing Z-order (highest layer to lowest layer)- Specified by:
- findChildrenin interface- DesignableDelegate
- Overrides:
- findChildrenin class- JComponentItemDelegate
 
- 
getChildCountDescription copied from interface:DesignableDelegateReturns the count of the number of items currently held in the given container- Specified by:
- getChildCountin interface- DesignableDelegate
- Overrides:
- getChildCountin class- JComponentItemDelegate
 
- 
getParentDescription copied from interface:DesignableDelegateFinds the given item's parent in the container hierarchy
- 
moveObjectDescription copied from interface:DesignableDelegateMove the given item to the new location. Location is relative to its parent. This is used for realtime, transient moves, so it shouldn't add an undo action.
- 
scaleObjectDescription copied from interface:DesignableDelegateScale the given item to the new bounds. Bounds location is relative to its parent. This is used for realtime, transient scales, so it shouldn't add an undo action.
- 
setZOrderPosition
- 
notifyObjectsMovedpublic void notifyObjectsMoved(List<JComponent> objects, Map<JComponent, Rectangle2D> originalPositions) 
- 
copyMove
- 
rotateObjectDescription copied from interface:DesignableDelegateRotate the object around the given point by the angle specified.- Parameters:
- object- The object to rotate.
- angle- The angle to rotate, specified in radians.
- rotationAnchor- The rotation center, relative to the object's parent.
 
- 
notifyObjectsRotated
- 
addObjectDescription copied from interface:DesignableDelegateAdds the child into the given parent (which must be a container) at the given bounds, relative to the parent. If the bounds rectangle is null, then the component is assumed to already have it's location set on it.
 
-