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)
c
- The connectorf
- The figurepublic boolean acceptTail(Connector c, Figure f)
c
- The connectorf
- The figurepublic abstract Site getHeadSite(Figure f, double x, double y)
getHeadSite
in interface ConnectorTarget
f
- The figurex
- The x location of the sitey
- The y location of the site@Deprecated public Site getTailSite(Figure f, double x, double y)
getTailSite
in interface ConnectorTarget
f
- The figurex
- The x location of the sitey
- The y location of the site@Deprecated public Site getHeadSite(Site s, double x, double y)
getHeadSite
in interface ConnectorTarget
s
- The sitex
- The x location of the sitey
- The y location of the site@Deprecated public Site getTailSite(Site s, double x, double y)
getTailSite
in interface ConnectorTarget
s
- The sitex
- The x location of the sitey
- The y location of the sitepublic Site getHeadSite(Connector c, Figure f, double x, double y)
getHeadSite
in interface ConnectorTarget
c
- The connectorf
- The figurex
- The x location of the sitey
- The y location of the sitepublic Site getTailSite(Connector c, Figure f, double x, double y)
getTailSite
in interface ConnectorTarget
c
- The connectorf
- The figurex
- The x location of the sitey
- The y location of the sitepublic Site getHeadSite(Connector c, Site s, double x, double y)
getHeadSite
in interface ConnectorTarget
c
- The connectors
- The sitex
- The x location of the sitey
- The y location of the sitepublic Site getTailSite(Connector c, Site s, double x, double y)
getTailSite
in interface ConnectorTarget
c
- The connectors
- The sitex
- The x location of the sitey
- The y location of the site