JHotDraw 7.5.1

org.jhotdraw.draw.liner
Interface Liner

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
CurvedLiner, ElbowLiner, SlantedLiner

@NotNull
public interface Liner
extends java.lang.Cloneable

A liner encapsulates a strategy for laying out the bezier path of a ConnectionFigure.


Design Patterns

Strategy
The control points of the bezier path of a connection figure can be laid out using different layout algorithms which are implemented by liners.
Context: ConnectionFigure; Strategy: Liner.


Version:
$Id: Liner.java 654 2010-06-25 13:27:08Z rawcoder $
Author:
Werner Randelshofer

Method Summary
 Liner clone()
           
 java.util.Collection<Handle> createHandles(BezierPath path)
          Creates Handle's for the Liner.
 void lineout(ConnectionFigure figure)
          Layouts the Path.
 

Method Detail

lineout

void lineout(ConnectionFigure figure)
Layouts the Path. This may alter the number and type of points in the Path.

Parameters:
figure - The ConnectionFigure to be lined out.

createHandles

java.util.Collection<Handle> createHandles(BezierPath path)
Creates Handle's for the Liner. The ConnectionFigure can provide these handles to the user, in order to let her control the lineout.

Parameters:
path - The path for which to create handles.

clone

Liner clone()

Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.