Class AnchorPoint
- java.lang.Object
- 
- com.inductiveautomation.ignition.designer.blockandconnector.model.AnchorPoint
 
- 
- Direct Known Subclasses:
- JComponentAnchorPoint
 
 public abstract class AnchorPoint extends java.lang.ObjectAn anchor point is a point on a block that is acceptable for either starting or ending a connector. Coordinates are relative to the block component.
- 
- 
Field SummaryFields Modifier and Type Field Description protected Blockblockprotected java.lang.Objectidprotected java.util.EnumSet<AnchorType>type
 - 
Constructor SummaryConstructors Constructor Description AnchorPoint(java.lang.Object id, Block block, java.util.EnumSet<AnchorType> type)Creates an anchor point at the given point, with a rectangular hotspot around it.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)abstract java.awt.PointgetAnchor()This is the actual anchor point that a connector will start/end at.BlockgetBlock()The block that this anchor point is part ofabstract java.awt.ShapegetHotSpot()This is the shape that counts for the mouse to begin dragging or drop onto this anchor pointjava.lang.ObjectgetId()An anchor point's id must implement equals() and be unique per blockabstract java.awt.PointgetPathLeader()This is a point near the anchor that should "lead" any path into the anchor.booleanisConnectorOrigin()booleanisConnectorTerminus()java.lang.StringtoString()
 
- 
- 
- 
Field Detail- 
idprotected java.lang.Object id 
 - 
blockprotected Block block 
 - 
typeprotected java.util.EnumSet<AnchorType> type 
 
- 
 - 
Constructor Detail- 
AnchorPointpublic AnchorPoint(java.lang.Object id, Block block, java.util.EnumSet<AnchorType> type)Creates an anchor point at the given point, with a rectangular hotspot around it.
 
- 
 - 
Method Detail- 
getIdpublic java.lang.Object getId() An anchor point's id must implement equals() and be unique per block
 - 
getBlockpublic Block getBlock() The block that this anchor point is part of
 - 
getAnchorpublic abstract java.awt.Point getAnchor() This is the actual anchor point that a connector will start/end at. This point may be inside the blocks bounds.
 - 
getPathLeaderpublic abstract java.awt.Point getPathLeader() This is a point near the anchor that should "lead" any path into the anchor. This point should fall outside the block's bounds. Any path to this anchor will pass through this point and a straight line will connect this point to the anchor point.
 - 
getHotSpotpublic abstract java.awt.Shape getHotSpot() This is the shape that counts for the mouse to begin dragging or drop onto this anchor point
 - 
isConnectorOriginpublic boolean isConnectorOrigin() 
 - 
isConnectorTerminuspublic boolean isConnectorTerminus() 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-