JHotDraw 7.4.1

org.jhotdraw.draw.liner
Class ElbowLiner

java.lang.Object
  extended by org.jhotdraw.draw.liner.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:
$Id: ElbowLiner.java 604 2010-01-09 12:00:29Z rawcoder $
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-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.