public final class QuaternaryVennLayoutImpl extends Object implements QuaternaryVennLayout
Constructor and Description |
---|
QuaternaryVennLayoutImpl(Shape firstShape,
Shape secondShape,
Shape thirdShape,
Shape fourthShape,
Point2D firstOnlyLuneCenter,
Point2D secondOnlyLuneCenter,
Point2D thirdOnlyLuneCenter,
Point2D fourthOnlyLuneCenter,
Point2D firstSecondLuneCenter,
Point2D firstThirdLuneCenter,
Point2D secondThirdLuneCenter,
Point2D firstFourthLuneCenter,
Point2D secondFourthLuneCenter,
Point2D thirdFourthLuneCenter,
Point2D firstSecondThirdLuneCenter,
Point2D firstSecondFourthLuneCenter,
Point2D firstThirdFourthLuneCenter,
Point2D secondThirdFourthLuneCenter,
Point2D intersectionLuneCenter,
Rectangle2D boundingRectangle)
Create a new quaternary venn layout with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
Rectangle2D |
boundingRectangle()
Return the bounding rectangle of this venn layout.
|
Point2D |
firstFourthLuneCenter()
Return the lune center of the first fourth area.
|
Point2D |
firstOnlyLuneCenter()
Return the lune center of the first only area.
|
Point2D |
firstSecondFourthLuneCenter()
Return the lune center of the first second fourth area.
|
Point2D |
firstSecondLuneCenter()
Return the lune center of the first second area.
|
Point2D |
firstSecondThirdLuneCenter()
Return the lune center of the first second third area.
|
Shape |
firstShape()
Return the shape for the first set.
|
Point2D |
firstThirdFourthLuneCenter()
Return the lune center of the first third fourth area.
|
Point2D |
firstThirdLuneCenter()
Return the lune center of the first third area.
|
Point2D |
fourthOnlyLuneCenter()
Return the lune center of the fourth only area.
|
Shape |
fourthShape()
Return the shape for the fourth set.
|
Shape |
get(int index)
Return the shape at the specified index in this venn layout.
|
Point2D |
intersectionLuneCenter()
Return the lune center of the intersection area.
|
Point2D |
luneCenter(int index,
int... additional)
Return the lune center of the intersecting area defined by the specified indices.
|
Point2D |
secondFourthLuneCenter()
Return the lune center of the second fourth area.
|
Point2D |
secondOnlyLuneCenter()
Return the lune center of the second only area.
|
Shape |
secondShape()
Return the shape for the second set.
|
Point2D |
secondThirdFourthLuneCenter()
Return the lune center of the second third fourth area.
|
Point2D |
secondThirdLuneCenter()
Return the lune center of the second third area.
|
int |
size()
Return the number of shapes in this venn layout.
|
Point2D |
thirdFourthLuneCenter()
Return the lune center of the third fourth area.
|
Point2D |
thirdOnlyLuneCenter()
Return the lune center of the third only area.
|
Shape |
thirdShape()
Return the shape for the third set.
|
public QuaternaryVennLayoutImpl(Shape firstShape, Shape secondShape, Shape thirdShape, Shape fourthShape, Point2D firstOnlyLuneCenter, Point2D secondOnlyLuneCenter, Point2D thirdOnlyLuneCenter, Point2D fourthOnlyLuneCenter, Point2D firstSecondLuneCenter, Point2D firstThirdLuneCenter, Point2D secondThirdLuneCenter, Point2D firstFourthLuneCenter, Point2D secondFourthLuneCenter, Point2D thirdFourthLuneCenter, Point2D firstSecondThirdLuneCenter, Point2D firstSecondFourthLuneCenter, Point2D firstThirdFourthLuneCenter, Point2D secondThirdFourthLuneCenter, Point2D intersectionLuneCenter, Rectangle2D boundingRectangle)
firstShape
- shape for the first set, must not be nullsecondShape
- shape for the second set, must not be nullthirdShape
- shape for the third set, must not be nullfourthShape
- shape for the fourth set, must not be nullfirstOnlyLuneCenter
- lune center for the first only areasecondOnlyLuneCenter
- lune center for the second only areathirdOnlyLuneCenter
- lune center for the third only areafourthOnlyLuneCenter
- lune center for the fourth only areafirstSecondLuneCenter
- lune center for the first second areafirstThirdLuneCenter
- lune center for the first third areasecondThirdLuneCenter
- lune center for the second third areafirstFourthLuneCenter
- lune center for the first fourth areasecondFourthLuneCenter
- lune center for the second fourth areathirdFourthLuneCenter
- lune center for the third fourth areafirstSecondThirdLuneCenter
- lune center for the first second third areafirstSecondFourthLuneCenter
- lune center for the first second fourth areafirstThirdFourthLuneCenter
- lune center for the first third fourth areasecondThirdFourthLuneCenter
- lune center for the second third fourth areaintersectionLuneCenter
- lune center for the intersection areaboundingRectangle
- bounding rectangle, must not be nullpublic Shape firstShape()
firstShape
in interface QuaternaryVennLayout
public Shape secondShape()
secondShape
in interface QuaternaryVennLayout
public Shape thirdShape()
thirdShape
in interface QuaternaryVennLayout
public Shape fourthShape()
fourthShape
in interface QuaternaryVennLayout
public Point2D firstOnlyLuneCenter()
firstOnlyLuneCenter
in interface QuaternaryVennLayout
public Point2D secondOnlyLuneCenter()
secondOnlyLuneCenter
in interface QuaternaryVennLayout
public Point2D thirdOnlyLuneCenter()
thirdOnlyLuneCenter
in interface QuaternaryVennLayout
public Point2D fourthOnlyLuneCenter()
fourthOnlyLuneCenter
in interface QuaternaryVennLayout
public Point2D firstSecondLuneCenter()
firstSecondLuneCenter
in interface QuaternaryVennLayout
public Point2D firstThirdLuneCenter()
firstThirdLuneCenter
in interface QuaternaryVennLayout
public Point2D secondThirdLuneCenter()
secondThirdLuneCenter
in interface QuaternaryVennLayout
public Point2D firstFourthLuneCenter()
firstFourthLuneCenter
in interface QuaternaryVennLayout
public Point2D secondFourthLuneCenter()
secondFourthLuneCenter
in interface QuaternaryVennLayout
public Point2D thirdFourthLuneCenter()
thirdFourthLuneCenter
in interface QuaternaryVennLayout
public Point2D firstSecondThirdLuneCenter()
firstSecondThirdLuneCenter
in interface QuaternaryVennLayout
public Point2D firstSecondFourthLuneCenter()
firstSecondFourthLuneCenter
in interface QuaternaryVennLayout
public Point2D firstThirdFourthLuneCenter()
firstThirdFourthLuneCenter
in interface QuaternaryVennLayout
public Point2D secondThirdFourthLuneCenter()
secondThirdFourthLuneCenter
in interface QuaternaryVennLayout
public Point2D intersectionLuneCenter()
intersectionLuneCenter
in interface QuaternaryVennLayout
public int size()
size
in interface VennLayout
public Shape get(int index)
get
in interface VennLayout
index
- indexpublic Point2D luneCenter(int index, int... additional)
luneCenter
in interface VennLayout
index
- first indexadditional
- variable number of additional indices, if anypublic Rectangle2D boundingRectangle()
boundingRectangle
in interface VennLayout
Copyright (c) 2009-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).