JHotDraw 7.4.1

org.jhotdraw.draw.liner
Class CurvedLiner

java.lang.Object
  extended by org.jhotdraw.draw.liner.CurvedLiner
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Liner, DOMStorable

public class CurvedLiner
extends java.lang.Object
implements Liner, DOMStorable

A Liner that constrains a connection to a curved line.

Version:
$Id: CurvedLiner.java 604 2010-01-09 12:00:29Z rawcoder $
Author:
Werner Randelshofer
See Also:
Serialized Form

Constructor Summary
CurvedLiner()
          Creates a new instance.
CurvedLiner(double slantSize)
           
 
Method Summary
 Liner clone()
           
 java.util.Collection<Handle> createHandles(BezierPath path)
          Creates Handle's for the Liner.
 void lineout(ConnectionFigure figure)
          Layouts the Path.
 void read(DOMInput in)
           
 void write(DOMOutput out)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurvedLiner

public CurvedLiner()
Creates a new instance.


CurvedLiner

public CurvedLiner(double slantSize)
Method Detail

createHandles

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

Specified by:
createHandles in interface Liner
Parameters:
path - The path for which to create handles.

lineout

public void lineout(ConnectionFigure figure)
Description copied from interface: Liner
Layouts the Path. This may alter the number and type of points in the Path.

Specified by:
lineout in interface Liner
Parameters:
figure - The ConnectionFigure to be lined out.

read

public void read(DOMInput in)
Specified by:
read in interface DOMStorable

write

public void write(DOMOutput out)
Specified by:
write in interface DOMStorable

clone

public Liner clone()
Specified by:
clone in interface Liner
Overrides:
clone in class java.lang.Object

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