com.horstmann.violet
Class BentStyle
java.lang.Object
com.horstmann.violet.framework.SerializableEnumeration
com.horstmann.violet.BentStyle
- All Implemented Interfaces:
- java.io.Serializable
public class BentStyle
- extends SerializableEnumeration
A style for a segmented line that indicates the number
and sequence of bends.
- See Also:
- Serialized Form
Method Summary |
java.util.ArrayList |
getPath(java.awt.geom.Rectangle2D start,
java.awt.geom.Rectangle2D end)
Gets the points at which a line joining two rectangles
is bent according to this bent style. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
STRAIGHT
public static final BentStyle STRAIGHT
HV
public static final BentStyle HV
VH
public static final BentStyle VH
HVH
public static final BentStyle HVH
VHV
public static final BentStyle VHV
getPath
public java.util.ArrayList getPath(java.awt.geom.Rectangle2D start,
java.awt.geom.Rectangle2D end)
- Gets the points at which a line joining two rectangles
is bent according to this bent style.
- Parameters:
start
- the starting rectangleend
- the ending rectangle
- Returns:
- an array list of points at which to bend the
segmented line joining the two rectangles