public class LineUtilities extends Object
Line2D
objects.Constructor and Description |
---|
LineUtilities() |
Modifier and Type | Method and Description |
---|---|
static boolean |
clipLine(Line2D line,
Rectangle2D rect)
Clips the specified line to the given rectangle.
|
public LineUtilities()
public static boolean clipLine(Line2D line, Rectangle2D rect)
line
- the line (null
not permitted).rect
- the clipping rectangle (null
not permitted).true
if the clipped line is visible, and
false
otherwise.Copyright © 2000-2009 by Object Refinery Limited. All Rights Reserved.