diva.canvas.connector
Class FixedNormalSite

java.lang.Object
  extended by diva.canvas.SiteDecorator
      extended by 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: FixedNormalSite.java 38798 2005-07-08 20:00:01Z cxh $
Author:
Steve Neuendorffer

Constructor Summary
FixedNormalSite(Site site)
           
 
Method Summary
 void setNormal(double normal)
          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
 

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 interface Site
Overrides:
setNormal in class SiteDecorator