diva.canvas.connector
Class FixedNormalSite
java.lang.Object
diva.canvas.SiteDecorator
diva.canvas.connector.FixedNormalSite
- All Implemented Interfaces:
- Site
Deprecated. Do not use. Use ParametricSite instead.
A site decorator that disallows changing the normal. This is useful for
perimeter sites that stay at one point on a figure. Normally connectors
change the normal of a site so that the figure looks better.
This class is often used so that the site that points out of a terminal
can be properly manhattan routed so that it always leave the terminal in
the ight direction.
public class FixedNormalSite
- extends SiteDecorator
- Version:
- $Revision: 1.4 $
- Author:
- Steve Neuendorffer
Method Summary |
void |
setNormal(double normal)
Deprecated. Set the normal "out" of the site. |
Methods inherited from class diva.canvas.SiteDecorator |
getFigure, getID, getNormal, getPoint, getPoint, getPoint, getPoint, getTransformContext, getX, getY, hasNormal, isNormal, translate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FixedNormalSite
public FixedNormalSite(Site site)
- Deprecated.
setNormal
public void setNormal(double normal)
- Deprecated.
- Description copied from class:
SiteDecorator
- Set the normal "out" of the site. If the site cannot
change its normal, it can ignore this call, so clients
that care should always check the normal after calling.
If the site can change its normal, it can also change
its position. For example, a site on the perimeter of a
figure may move to a different position.
- Specified by:
setNormal
in interface Site
- Overrides:
setNormal
in class SiteDecorator
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.