edgebundles.visualisation.link
Class BSplineLinkVisualiser
- public class BSplineLinkVisualiser
- BSplineLinkVisualiser Visualises a link as a BSpline curve based on the link as a control polygon The curve is drawn using gradiant colors from the given start and end colors.
BSplineLinkVisualiser
public BSplineLinkVisualiser(java.awt.Color startColor,
java.awt.Color endColor)
- BSplineLinkVisualiser
- Parameters:
startColor:
- the start color, the color at the beginning (source) of the link
endColor:
- the color at the end (destination) of the link constructs the visualiser objects, and assigns the start and the end colors.
drawLink
public void drawLink(java.awt.Graphics2D g,
edgebundles.visualisation.link.Link lnk)
- drawLink
- Parameters:
lnk:
- The control polygon representing the link to draw
g:
- a port to the drawing area with prmitive methods This method draws the given links on the given Graphics object. A colored cubic and uniform B-Spline is drawn based on the given control polygon. The color changes gradually from start to end color
getStartColor
public java.awt.Color getStartColor()
- getStartColor returns the start color.
getEndColor
public java.awt.Color getEndColor()
- getEndColor returns the end color
setStartAndEndColor
public void setStartAndEndColor(java.awt.Color startColor,
java.awt.Color endColor)
- setStadtAndEndColor
- Parameters:
startColor:
- the start color, the color at the beginning (source) of the link
endColor:
- the color at the end (destination) of the link sets the start and the end colors, and precompute the spectrum between them.