Package com.reportmill.graphics
Class RMHitInfo
- java.lang.Object
-
- com.reportmill.base.RMObject
-
- com.reportmill.graphics.RMHitInfo
-
- All Implemented Interfaces:
RMArchiver.Archiving
,java.lang.Cloneable
public class RMHitInfo extends RMObject
This class encapsulates simple hit information of a given curve or line against another curve or line.
-
-
Constructor Summary
Constructors Constructor Description RMHitInfo(int hitCount, double r, double s, int index)
Creates a hit info record with given attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHitCount()
Returns the numer of intersections associated with the given geometries.int
getIndex()
Returns the index of hit segment (for paths).double
getR()
Returns the parametric location (from 0-1) of hit on receiving geometry.double
getS()
Returns the parametric location (from 0-1) of hit on secondary geometry.-
Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
-
-
-
Method Detail
-
getHitCount
public int getHitCount()
Returns the numer of intersections associated with the given geometries.
-
getR
public double getR()
Returns the parametric location (from 0-1) of hit on receiving geometry.
-
getS
public double getS()
Returns the parametric location (from 0-1) of hit on secondary geometry.
-
getIndex
public int getIndex()
Returns the index of hit segment (for paths).
-
-