public class InsideRectanglePathConstructor
extends org.freehep.graphicsio.CubicToLinePathConstructor
| Constructor and Description |
|---|
InsideRectanglePathConstructor(Rectangle2D rectangle)
Creates a path constructor with given rectangle
|
| Modifier and Type | Method and Description |
|---|---|
void |
closePath(double x0,
double y0)
Closes the current path, called from addPath.
|
void |
line(double x,
double y)
Adds a line to the path, called from addPath.
|
protected void |
lineFound(Line2D line)
Called when a line is found that is inside the rectangle or crosses it,
so that the subclass can use this to track some other information, such
as keeping a reference of the object(s).
|
public InsideRectanglePathConstructor(Rectangle2D rectangle)
public void line(double x,
double y)
throws IOException
line in interface org.freehep.graphicsio.PathConstructorline in class org.freehep.graphicsio.QuadToCubicPathConstructorIOExceptionpublic void closePath(double x0,
double y0)
throws IOException
closePath in interface org.freehep.graphicsio.PathConstructorclosePath in class org.freehep.graphicsio.QuadToCubicPathConstructorIOExceptionprotected void lineFound(Line2D line)
Copyright © 1996-2014 FreeHEP. All Rights Reserved.