org.jhotdraw.draw
Class ElbowLiner
java.lang.Object
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:
- $Id: ElbowLiner.java 546 2009-07-24 14:25:05Z rawcoder $
- Author:
- Werner Randelshofer
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
shoulderSize
private double shoulderSize
ElbowLiner
public ElbowLiner()
- Creates a new instance.
ElbowLiner
public ElbowLiner(double slantSize)
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