Package diva.canvas.connector
Class FixedNormalSite
- java.lang.Object
-
- diva.canvas.SiteDecorator
-
- diva.canvas.connector.FixedNormalSite
-
- All Implemented Interfaces:
Site
public class FixedNormalSite extends SiteDecorator
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.- Version:
- $Id$
- Author:
- Steve Neuendorffer
-
-
Constructor Summary
Constructors Constructor Description FixedNormalSite(Site site)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setNormal(double normal)
Set the normal "out" of the site.
-
-
-
Constructor Detail
-
FixedNormalSite
public FixedNormalSite(Site site)
-
-
Method Detail
-
setNormal
public void setNormal(double normal)
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 interfaceSite
- Overrides:
setNormal
in classSiteDecorator
- Parameters:
normal
- The normal.- See Also:
SiteDecorator.getNormal()
-
-