Class JComponentAnchorPoint
java.lang.Object
com.inductiveautomation.ignition.designer.blockandconnector.model.AnchorPoint
com.inductiveautomation.ignition.designer.blockandconnector.model.impl.JComponentAnchorPoint
An anchorpoint that uses a jcomponent to define its hotspot. Anchor point is the centerpoint of the component, path
leader is a delta of the centerpoint.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Rectangleprotected JComponentprotected intprotected intFields inherited from class com.inductiveautomation.ignition.designer.blockandconnector.model.AnchorPoint
block, id, type -
Constructor Summary
ConstructorsConstructorDescriptionJComponentAnchorPoint(Object id, Block block, JComponent component, int exitSide, int leaderSpacing, EnumSet<AnchorType> type) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Used to create a new JComponentAnchorPoint with a builder patternThis is the actual anchor point that a connector will start/end at.This is the shape that counts for the mouse to begin dragging or drop onto this anchor pointThis is a point near the anchor that should "lead" any path into the anchor.voidsetComponent(JComponent component) Methods inherited from class com.inductiveautomation.ignition.designer.blockandconnector.model.AnchorPoint
equals, getBlock, getId, isConnectorOrigin, isConnectorTerminus, toString
-
Field Details
-
bounds
-
component
-
exitSide
protected int exitSide -
leaderSpacing
protected int leaderSpacing
-
-
Constructor Details
-
JComponentAnchorPoint
public JComponentAnchorPoint(Object id, Block block, JComponent component, int exitSide, int leaderSpacing, EnumSet<AnchorType> type)
-
-
Method Details
-
setComponent
-
getHotSpot
Description copied from class:AnchorPointThis is the shape that counts for the mouse to begin dragging or drop onto this anchor point- Specified by:
getHotSpotin classAnchorPoint
-
getAnchor
Description copied from class:AnchorPointThis is the actual anchor point that a connector will start/end at. This point may be inside the blocks bounds.- Specified by:
getAnchorin classAnchorPoint
-
getPathLeader
Description copied from class:AnchorPointThis 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.- Specified by:
getPathLeaderin classAnchorPoint
-
builder
Used to create a new JComponentAnchorPoint with a builder pattern
-