Overview | Package | Class | Tree | Index | Help NetCharts Pro (Applets) 7.0
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

netcharts.graphics
Class NFSpacing

java.lang.Object
  |
  +--netcharts.graphics.NFSpacing

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


Constructor Summary
NFSpacing(double min, double max, double stepSize)
          Constructor for spacing object where the stepSize is defined between min and max
NFSpacing(double min, double max, int nsteps)
          Constructor for spacing object where the number of steps is defined between min and max
NFSpacing(int count)
          Constructor creates "count" spacings.
NFSpacing(NFSpacing old)
          Constructor used to copy the spacing object.
NFSpacing(java.util.Vector itemList)
          Constructor for spacing object where the itemList is predefined and no spacing calculations are necessary.
 
Method Summary
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.
java.lang.Object getNthObject(int nth)
          Returns the "nth" object in the buffer
java.awt.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, java.awt.Point point)
          Manually change the value of one of the spacings.
int size()
          Returns the number of items in the spacing list.
 

Constructor Detail

NFSpacing

public NFSpacing(double min,
                 double max,
                 int nsteps)
Constructor for spacing object where the number of steps is defined between min and max
Parameters:
min - The minimum.
max - The maximum.
nsteps - The number of steps.

NFSpacing

public NFSpacing(double min,
                 double max,
                 double stepSize)
Constructor for spacing object where the stepSize is defined between min and max
Parameters:
min - The minimum.
max - The maximum.
stepSize - The step size.

NFSpacing

public NFSpacing(java.util.Vector itemList)
Constructor for spacing object where the itemList is predefined and no spacing calculations are necessary.
Parameters:
itemList - The list of items.

NFSpacing

public NFSpacing(NFSpacing old)
Constructor used to copy the spacing object. Currently only works for line spacings.
Parameters:
old - The old spacing.

NFSpacing

public NFSpacing(int count)
Constructor creates "count" spacings.
Parameters:
count - The number of spaces to make.
Method Detail

getNthValue

public double getNthValue(int nth)
Returns the "nth" spacing value as a double
Parameters:
nth - Which point.
Returns:
The nth value.

getNthPoint

public java.awt.Point getNthPoint(int nth)
Returns the "nth" point on a line
Parameters:
nth - Which point.
Returns:
The nth point.

deleteNthItem

public void deleteNthItem(int nth)
Deletes the "nth" item.
Parameters:
nth - Which point.

getNthObject

public java.lang.Object getNthObject(int nth)
Returns the "nth" object in the buffer
Parameters:
nth - Which point.
Returns:
The nth Object.

setNthPoint

public void setNthPoint(int nth,
                        java.awt.Point point)
Manually change the value of one of the spacings.
Parameters:
nth - Which point.
point - The point to add.

size

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

adjustPointSpacing

public static final NFSpacing adjustPointSpacing(NFSpacing spacing,
                                                 int XOffset,
                                                 int YOffset)
Changes all values in the point spacing array by the given x and y offsets.
Parameters:
spacing - The spacing to update.
XOffset - The change in the X.
YOffset - The change in the Y.
Returns:
The updated spacing.

Overview | Package | Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD


Visual Mining, Inc.
2099 Gaither Grove Rd.
Suite 220
Rockville, MD 20850
800.308.0731
301.947.8293 FAX

Copyright © Visual Mining, Inc. 1996 - 2010
All Rights Reserved.

NetCharts ProTM is a registered trademark of Visual Mining, Inc. Other brands and their products are trademarks of their respective holders.

Last Modified: Jun 29, 2010