|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.viz.pie.util.GeometryUtil
public final class GeometryUtil
Helper class for geometric calculations.
Method Summary | |
---|---|
static double |
calculateMidAngle(Arc2D arc)
Calculated the mid angle of the given arc. |
static double |
calculatePartialExtent(Arc2D arc,
double fraction)
|
static Arc2D |
calculateSubArc(Arc2D arc,
double fraction)
Calculates a sub arc that lies in the given arc. |
static Rectangle2D |
getArcBounds(Rectangle2D unexploded,
Rectangle2D exploded,
double angle,
double extent,
double explodePercent)
Returns a rectangle that can be used to create a pie section (taking into account the amount by which the pie section is 'exploded'). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Arc2D calculateSubArc(Arc2D arc, double fraction)
arc
- the basic arcfraction
- the fraction defines the size of the new arc in
comparison to the basic arc in percentage 0.9 = 90%
public static double calculatePartialExtent(Arc2D arc, double fraction)
arc
- the basic arcfraction
- the fraction defines the size of the extend
in comparison to the extend of the basic arc in percentage 0.9 = 90%
public static Rectangle2D getArcBounds(Rectangle2D unexploded, Rectangle2D exploded, double angle, double extent, double explodePercent)
unexploded
- the area inside which the unexploded pie sections are
drawn.exploded
- the area inside which the exploded pie sections are
drawn.angle
- the start angle.extent
- the extent of the arc.explodePercent
- the percent the new arc should reach into the
explode area. 1.0 means the section should be shifted to the border of
the explode area.
public static double calculateMidAngle(Arc2D arc)
arc
- the Arc2D
to calculate the mid angle for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |