|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.chart.internal.computations.Clip
Clip
is a Java version of the General Poly Clipper algorithm
developed by Alan Murta (gpc@cs.man.ac.uk). The home page for the original source can be
found at
http://www.cs.man.ac.uk/aig/staff/alan/software/.
polyClass:
Some of the public methods below take a polyClass
argument. This java.lang.Class
object is assumed to implement the Poly
interface and have a no argument constructor. This was done so that the user of the algorithm
could create their own classes that implement the Poly
interface and still uses
this algorithm.
Implementation Note: The converted algorithm does support the difference operation, but a public method has not been provided and it has not been tested. To do so, simply follow what has been done for intersection.
Method Summary | |
static IPolygon |
intersection(IPolygon p1,
IPolygon p2)
Return the intersection of p1 and p2 where the
return type is of PolyDefault . |
static IPolygon |
intersection(IPolygon p1,
IPolygon p2,
java.lang.Class polyClass)
Return the intersection of p1 and p2 where the
return type is of polyClass . |
static IPolygon |
union(IPolygon p1,
IPolygon p2)
Return the union of p1 and p2 where the
return type is of PolyDefault . |
static IPolygon |
union(IPolygon p1,
IPolygon p2,
java.lang.Class polyClass)
Return the union of p1 and p2 where the
return type is of polyClass . |
static IPolygon |
xor(IPolygon p1,
IPolygon p2)
Return the xor of p1 and p2 where the
return type is of PolyDefault . |
static IPolygon |
xor(IPolygon p1,
IPolygon p2,
java.lang.Class polyClass)
Return the xor of p1 and p2 where the
return type is of polyClass . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static IPolygon intersection(IPolygon p1, IPolygon p2, java.lang.Class polyClass)
p1
and p2
where the
return type is of polyClass
. See the note in the class description
for more on
p1
- One of the polygons to performt he intersection withp2
- One of the polygons to performt he intersection withpolyClass
- The type of Poly
to returnpublic static IPolygon union(IPolygon p1, IPolygon p2, java.lang.Class polyClass)
p1
and p2
where the
return type is of polyClass
. See the note in the class description
for more on
p1
- One of the polygons to performt he union withp2
- One of the polygons to performt he union withpolyClass
- The type of Poly
to returnpublic static IPolygon xor(IPolygon p1, IPolygon p2, java.lang.Class polyClass)
p1
and p2
where the
return type is of polyClass
. See the note in the class description
for more on
p1
- One of the polygons to performt he xor withp2
- One of the polygons to performt he xor withpolyClass
- The type of Poly
to returnpublic static IPolygon intersection(IPolygon p1, IPolygon p2)
p1
and p2
where the
return type is of PolyDefault
.
p1
- One of the polygons to performt he intersection withp2
- One of the polygons to performt he intersection withpublic static IPolygon union(IPolygon p1, IPolygon p2)
p1
and p2
where the
return type is of PolyDefault
.
p1
- One of the polygons to performt he union withp2
- One of the polygons to performt he union withpublic static IPolygon xor(IPolygon p1, IPolygon p2)
p1
and p2
where the
return type is of PolyDefault
.
p1
- One of the polygons to performt he xor withp2
- One of the polygons to performt he xor with
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |