infovis.visualization.linkShapers
Class CurvedLinkShaper

java.lang.Object
  extended by infovis.visualization.linkShapers.DefaultLinkShaper
      extended by infovis.visualization.linkShapers.CurvedLinkShaper
All Implemented Interfaces:
LinkShaper

public class CurvedLinkShaper
extends DefaultLinkShaper

Class CurvedLinkShaper

Version:
$Revision: 1.7 $
Author:
Jean-Daniel Fekete
InfoVis factory arguments:
LinkShaperFactory "Curved"

Constructor Summary
CurvedLinkShaper()
           
CurvedLinkShaper(double angle)
           
 
Method Summary
 Shape createLink(Point2D startPos, int startOrientation, Point2D endPos, int endOrientation, Shape prevShape)
           
 double getAngle()
          Returns the starting angle.
 String getName()
           
 Point2D linkEnd(Shape s, int orientation, Point2D ptRet)
           
 Point2D linkStart(Shape s, int orientation, Point2D ptRet)
           
 void setAngle(double angle)
          Change the starting angle in radians.
 
Methods inherited from class infovis.visualization.linkShapers.DefaultLinkShaper
computeLinkShape, createSelfLink, defaultLinkEnd, defaultLinkStart, init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurvedLinkShaper

public CurvedLinkShaper(double angle)

CurvedLinkShaper

public CurvedLinkShaper()
Method Detail

getName

public String getName()
Specified by:
getName in interface LinkShaper
Overrides:
getName in class DefaultLinkShaper

setAngle

public void setAngle(double angle)
Change the starting angle in radians.

Parameters:
angle - the starting angle.

getAngle

public double getAngle()
Returns the starting angle.

Returns:
the starting angle.

createLink

public Shape createLink(Point2D startPos,
                        int startOrientation,
                        Point2D endPos,
                        int endOrientation,
                        Shape prevShape)
Overrides:
createLink in class DefaultLinkShaper

linkStart

public Point2D linkStart(Shape s,
                         int orientation,
                         Point2D ptRet)
Overrides:
linkStart in class DefaultLinkShaper

linkEnd

public Point2D linkEnd(Shape s,
                       int orientation,
                       Point2D ptRet)
Overrides:
linkEnd in class DefaultLinkShaper


Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.