Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.trapezium.attractor
Class NearPreservingAttractorSelector  view NearPreservingAttractorSelector download NearPreservingAttractorSelector.java

java.lang.Object
  extended bycom.trapezium.attractor.AttractorSelector
      extended bycom.trapezium.attractor.NearPreservingAttractorSelector

public class NearPreservingAttractorSelector
extends AttractorSelector

The NearPreservingAttractorSelector marks for preservation the nearest floater in the attracted floater set.

Since:
1.0
Version:
1.0, 8 Oct 1998

Field Summary
 
Fields inherited from class com.trapezium.attractor.AttractorSelector
selectedAttractor, selectionDistance
 
Constructor Summary
NearPreservingAttractorSelector()
          Class constructor
 
Method Summary
 void updatePreservedInfo(int[] floaterOffsets, float[] floaterDistances, int floaterOffset)
          Update the floater-to-be-preserved information, the nearest floater in the attracted set is preserved.
 
Methods inherited from class com.trapezium.attractor.AttractorSelector
attemptAttractorSelection, getSelection, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NearPreservingAttractorSelector

public NearPreservingAttractorSelector()
Class constructor

Method Detail

updatePreservedInfo

public void updatePreservedInfo(int[] floaterOffsets,
                                float[] floaterDistances,
                                int floaterOffset)
Update the floater-to-be-preserved information, the nearest floater in the attracted set is preserved.

Overrides:
updatePreservedInfo in class AttractorSelector