public class JComponentAnchorPoint extends AnchorPoint
Modifier and Type | Class and Description |
---|---|
static class |
JComponentAnchorPoint.JComponentAnchorPointBuilder |
Modifier and Type | Field and Description |
---|---|
protected java.awt.Rectangle |
bounds |
protected javax.swing.JComponent |
component |
protected int |
exitSide |
protected int |
leaderSpacing |
block, id, type
Constructor and Description |
---|
JComponentAnchorPoint(java.lang.Object id,
Block block,
javax.swing.JComponent component,
int exitSide,
int leaderSpacing,
java.util.EnumSet<AnchorType> type) |
Modifier and Type | Method and Description |
---|---|
static JComponentAnchorPoint.JComponentAnchorPointBuilder |
builder()
Used to create a new JComponentAnchorPoint with a builder pattern
|
java.awt.Point |
getAnchor()
This is the actual anchor point that a connector will start/end at.
|
java.awt.Shape |
getHotSpot()
This is the shape that counts for the mouse to begin dragging or drop onto this anchor point
|
java.awt.Point |
getPathLeader()
This is a point near the anchor that should "lead" any path into the anchor.
|
void |
setComponent(javax.swing.JComponent component) |
equals, getBlock, getId, isConnectorOrigin, isConnectorTerminus, toString
protected java.awt.Rectangle bounds
protected javax.swing.JComponent component
protected int exitSide
protected int leaderSpacing
public JComponentAnchorPoint(java.lang.Object id, Block block, javax.swing.JComponent component, int exitSide, int leaderSpacing, java.util.EnumSet<AnchorType> type)
public void setComponent(javax.swing.JComponent component)
public java.awt.Shape getHotSpot()
AnchorPoint
getHotSpot
in class AnchorPoint
public java.awt.Point getAnchor()
AnchorPoint
getAnchor
in class AnchorPoint
public java.awt.Point getPathLeader()
AnchorPoint
getPathLeader
in class AnchorPoint
public static JComponentAnchorPoint.JComponentAnchorPointBuilder builder()