Class AnchorPoint
java.lang.Object
com.inductiveautomation.ignition.designer.blockandconnector.model.AnchorPoint
- Direct Known Subclasses:
JComponentAnchorPoint
An 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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnchorPoint
(Object id, Block block, EnumSet<AnchorType> type) Creates an anchor point at the given point, with a rectangular hotspot around it. -
Method Summary
Modifier and TypeMethodDescriptionboolean
abstract Point
This is the actual anchor point that a connector will start/end at.getBlock()
The block that this anchor point is part ofabstract Shape
This is the shape that counts for the mouse to begin dragging or drop onto this anchor pointgetId()
An anchor point's id must implement equals() and be unique per blockabstract Point
This is a point near the anchor that should "lead" any path into the anchor.boolean
boolean
toString()
-
Field Details
-
id
-
block
-
type
-
-
Constructor Details
-
AnchorPoint
Creates an anchor point at the given point, with a rectangular hotspot around it.
-
-
Method Details
-
getId
An anchor point's id must implement equals() and be unique per block -
getBlock
The block that this anchor point is part of -
getAnchor
This is the actual anchor point that a connector will start/end at. This point may be inside the blocks bounds. -
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. -
getHotSpot
This is the shape that counts for the mouse to begin dragging or drop onto this anchor point -
isConnectorOrigin
public boolean isConnectorOrigin() -
isConnectorTerminus
public boolean isConnectorTerminus() -
equals
-
toString
-