public class

LineUtilities

extends Object
java.lang.Object
   ↳ org.jfree.chart.util.LineUtilities

Class Overview

Some utility methods for Line2D objects.

Summary

Public Constructors
LineUtilities()
Public Methods
static boolean clipLine(Line2D line, Rectangle2D rect)
Clips the specified line to the given rectangle.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LineUtilities ()

Public Methods

public static boolean clipLine (Line2D line, Rectangle2D rect)

Clips the specified line to the given rectangle.

Parameters
line the line (null not permitted).
rect the clipping rectangle (null not permitted).
Returns
  • true if the clipped line is visible, and false otherwise.