public abstract class AnchorPoint
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Block |
block |
protected java.lang.Object |
id |
protected java.util.EnumSet<AnchorType> |
type |
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
abstract java.awt.Point |
getAnchor()
This is the actual anchor point that a connector will start/end at.
|
Block |
getBlock()
The block that this anchor point is part of
|
abstract java.awt.Shape |
getHotSpot()
This is the shape that counts for the mouse to begin dragging or drop onto this anchor point
|
java.lang.Object |
getId()
An anchor point's id must implement equals() and be unique per block
|
abstract java.awt.Point |
getPathLeader()
This is a point near the anchor that should "lead" any path into the anchor.
|
boolean |
isConnectorOrigin() |
boolean |
isConnectorTerminus() |
java.lang.String |
toString() |
protected java.lang.Object id
protected Block block
protected java.util.EnumSet<AnchorType> type
public AnchorPoint(java.lang.Object id, Block block, java.util.EnumSet<AnchorType> type)
public java.lang.Object getId()
public Block getBlock()
public abstract java.awt.Point getAnchor()
public abstract java.awt.Point getPathLeader()
public abstract java.awt.Shape getHotSpot()
public boolean isConnectorOrigin()
public boolean isConnectorTerminus()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object