public final class TernaryVennLayoutImpl extends Object implements TernaryVennLayout
Constructor and Description |
---|
TernaryVennLayoutImpl(Shape firstShape,
Shape secondShape,
Shape thirdShape,
Point2D firstOnlyLuneCenter,
Point2D secondOnlyLuneCenter,
Point2D thirdOnlyLuneCenter,
Point2D firstSecondLuneCenter,
Point2D firstThirdLuneCenter,
Point2D secondThirdLuneCenter,
Point2D intersectionLuneCenter,
Rectangle2D boundingRectangle)
Create a new ternary venn layout with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
Rectangle2D |
boundingRectangle()
Return the bounding rectangle of this venn layout.
|
Point2D |
firstOnlyLuneCenter()
Return the lune center of the first only area.
|
Point2D |
firstSecondLuneCenter()
Return the lune center of the first second area.
|
Shape |
firstShape()
Return the shape for the first set.
|
Point2D |
firstThirdLuneCenter()
Return the lune center of the first third area.
|
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 |
secondOnlyLuneCenter()
Return the lune center of the second only area.
|
Shape |
secondShape()
Return the shape for the second set.
|
Point2D |
secondThirdLuneCenter()
Return the lune center of the second third area.
|
int |
size()
Return the number of shapes in this venn layout.
|
Point2D |
thirdOnlyLuneCenter()
Return the lune center of the third only area.
|
Shape |
thirdShape()
Return the shape for the third set.
|
public TernaryVennLayoutImpl(Shape firstShape, Shape secondShape, Shape thirdShape, Point2D firstOnlyLuneCenter, Point2D secondOnlyLuneCenter, Point2D thirdOnlyLuneCenter, Point2D firstSecondLuneCenter, Point2D firstThirdLuneCenter, Point2D secondThirdLuneCenter, 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 nullfirstOnlyLuneCenter
- lune center for the first only areasecondOnlyLuneCenter
- lune center for the second only areathirdOnlyLuneCenter
- lune center for the third only areafirstSecondLuneCenter
- lune center for the first second areafirstThirdLuneCenter
- lune center for the first third areasecondThirdLuneCenter
- lune center for the second third areaintersectionLuneCenter
- lune center for the intersection areaboundingRectangle
- bounding rectangle, must not be nullpublic Shape firstShape()
firstShape
in interface TernaryVennLayout
public Shape secondShape()
secondShape
in interface TernaryVennLayout
public Shape thirdShape()
thirdShape
in interface TernaryVennLayout
public Point2D firstOnlyLuneCenter()
firstOnlyLuneCenter
in interface TernaryVennLayout
public Point2D secondOnlyLuneCenter()
secondOnlyLuneCenter
in interface TernaryVennLayout
public Point2D thirdOnlyLuneCenter()
thirdOnlyLuneCenter
in interface TernaryVennLayout
public Point2D firstSecondLuneCenter()
firstSecondLuneCenter
in interface TernaryVennLayout
public Point2D firstThirdLuneCenter()
firstThirdLuneCenter
in interface TernaryVennLayout
public Point2D secondThirdLuneCenter()
secondThirdLuneCenter
in interface TernaryVennLayout
public Point2D intersectionLuneCenter()
intersectionLuneCenter
in interface TernaryVennLayout
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).