Package com.reportmill.graphics
Class RMHitInfo
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.graphics.RMHitInfo
- All Implemented Interfaces:
- RMArchiver.Archiving,- Cloneable
This class encapsulates simple hit information of a given curve or line against another curve or line.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionRMHitInfo(int hitCount, double r, double s, int index) Creates a hit info record with given attributes.
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the numer of intersections associated with the given geometries.intgetIndex()Returns the index of hit segment (for paths).doublegetR()Returns the parametric location (from 0-1) of hit on receiving geometry.doublegetS()Returns the parametric location (from 0-1) of hit on secondary geometry.Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
- 
Field Details- 
_hitCountpublic int _hitCount
- 
_rpublic double _r
- 
_spublic double _s
- 
_indexpublic int _index
 
- 
- 
Constructor Details- 
RMHitInfopublic RMHitInfo(int hitCount, double r, double s, int index) Creates a hit info record with given attributes.
 
- 
- 
Method Details- 
getHitCountpublic int getHitCount()Returns the numer of intersections associated with the given geometries.
- 
getRpublic double getR()Returns the parametric location (from 0-1) of hit on receiving geometry.
- 
getSpublic double getS()Returns the parametric location (from 0-1) of hit on secondary geometry.
- 
getIndexpublic int getIndex()Returns the index of hit segment (for paths).
 
-