Last Updated: 3/4/97
Class NFSpacing

Class NFSpacing

public final class NFSpacing 

The NFSpacing object is used to keep track of regularly spacing values between a minimum and maximum value.

Constructors

Methods


NFSpacing (NFSpacing old)
Constructor used to copy the spacing object. Currently only works for line spacings.

NFSpacing (double min,
           double max,
           double stepSize)
Constructor for spacing object where the stepSize is defined between min and max

NFSpacing (int count)
Constructor creates "count" spacings.

NFSpacing(Vector itemList)
Constructor for spacing object where the itemList is predefined and no spacing calculations are necessary.

NFSpacing(double min,
          double max,
          int nsteps)
Constructor for spacing object where the number of steps is defined between min and max

NFSpacing(int x1,
          int y1,
          double dx,
          double dy,
          double stepSize)
Constructor for a line segmented into segments of "stepSize" length

NFSpacing(int x1,
          int y1,
          double dx,
          double dy,
          int nsteps)
interface for an "nsteps" line

final static  NFSpacing adjustPointSpacing(NFSpacing spacing,
                                           int XOffset,
                                           int YOffset)
Changes all values in the point spacing array by the given x and y offsets.

void deleteNthItem(int nth)
deletes the "nth" item.

int getDataType()
Returns the data type of this spacing object

Object getNthObject(int nth)
Returns the "nth" object in the buffer

Point getNthPoint(int nth)
Returns the "nth" point on a line

double getNthValue(int nth)
Returns the "nth" spacing value as a double

void setNthPoint(int nth,
                 Point point)
Manually change the value of one of the spacings.

int size()
Returns the number of items in the spacing list.