JHotDraw 7.1

org.jhotdraw.draw
Class ElbowLiner

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

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

A Liner that constrains a connection to orthogonal lines.

Version:
1.1 2007-02-09 Added support for connections that connect to the same Figure on both ends.
1.0 2006-03-28 Created.
Author:
Werner Randelshofer
See Also:
Serialized Form

Constructor Summary
ElbowLiner()
          Creates a new instance.
ElbowLiner(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

ElbowLiner

public ElbowLiner()
Creates a new instance.


ElbowLiner

public ElbowLiner(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-2007 (c) JHotDraw.org.
Some rights reserved.