JHotDraw 7.2

org.jhotdraw.draw
Interface Liner

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

public interface Liner
extends java.io.Serializable, java.lang.Cloneable

A Liner encapsulates an algorithm to lineout a ConnectionFigure.

Design pattern:
Name: Strategy.
Role: Strategy.
Partners: LineFigure as Context.

Version:
1.0 2006-01-20 Created.
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-2009 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.