public abstract class AbstractConnectorTarget extends java.lang.Object implements ConnectorTarget
Constructor and Description |
---|
AbstractConnectorTarget() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptHead(Connector c,
Figure f)
Return true if the given connector can be connected to the given
figure.
|
boolean |
acceptTail(Connector c,
Figure f)
Return true if the given connector can be connected to the given
figure.
|
Site |
getHeadSite(Connector c,
Figure f,
double x,
double y)
Return a suitable site to connect the given connector's head to,
based on this figure and location.
|
Site |
getHeadSite(Connector c,
Site s,
double x,
double y)
Return a suitable site to connect a connector's head to.
|
abstract Site |
getHeadSite(Figure f,
double x,
double y)
Return a suitable site to connect a connector's head to,
based on this figure and location.
|
Site |
getHeadSite(Site s,
double x,
double y)
Deprecated.
Use getHeadSite that takes a connector.
|
Site |
getTailSite(Connector c,
Figure f,
double x,
double y)
Return a suitable site to connect the given connector's tail to,
based on this figure and location.
|
Site |
getTailSite(Connector c,
Site s,
double x,
double y)
Return a suitable site to connect a connector's tail to.
|
Site |
getTailSite(Figure f,
double x,
double y)
Deprecated.
Use getTailSite that takes a connector.
|
Site |
getTailSite(Site s,
double x,
double y)
Deprecated.
Use getTailSite that takes a connector.
|
public boolean acceptHead(Connector c, Figure f)
public boolean acceptTail(Connector c, Figure f)
public abstract Site getHeadSite(Figure f, double x, double y)
getHeadSite
in interface ConnectorTarget
@Deprecated public Site getTailSite(Figure f, double x, double y)
getTailSite
in interface ConnectorTarget
@Deprecated public Site getHeadSite(Site s, double x, double y)
getHeadSite
in interface ConnectorTarget
@Deprecated public Site getTailSite(Site s, double x, double y)
getTailSite
in interface ConnectorTarget
public Site getHeadSite(Connector c, Figure f, double x, double y)
getHeadSite
in interface ConnectorTarget
public Site getTailSite(Connector c, Figure f, double x, double y)
getTailSite
in interface ConnectorTarget
public Site getHeadSite(Connector c, Site s, double x, double y)
getHeadSite
in interface ConnectorTarget
public Site getTailSite(Connector c, Site s, double x, double y)
getTailSite
in interface ConnectorTarget