mixconfig.FloatDocument Class Reference

Inherits javax::swing::text::PlainDocument.

List of all members.

Public Member Functions

 FloatDocument (String minval, String maxval)
void insertString (int offset, String str, AttributeSet attr) throws BadLocationException

Package Functions

int getPCDigits (float a_float)
int getACDigits (float a_float)
int getACDigits (String a_string)

Private Attributes

double max
double min
int aCDigits_max = 0


Detailed Description

A document that accepts only floating points.

Constructor & Destructor Documentation

mixconfig.FloatDocument.FloatDocument ( String  minval,
String  maxval 
)


Member Function Documentation

int mixconfig.FloatDocument.getPCDigits ( float  a_float  )  [package]

Count the digits in front of the comma in a float

Parameters:
a_float float
Returns:
int

int mixconfig.FloatDocument.getACDigits ( float  a_float  )  [package]

Count the digits after the comma in a float

Parameters:
a_float float
Returns:
int

Referenced by mixconfig.FloatDocument.FloatDocument(), and mixconfig.FloatDocument.insertString().

int mixconfig.FloatDocument.getACDigits ( String  a_string  )  [package]

Count the digits after the comma in a string

Parameters:
a_string String
Returns:
int

void mixconfig.FloatDocument.insertString ( int  offset,
String  str,
AttributeSet  attr 
) throws BadLocationException

Parameters:
offset int
str String
attr AttributeSet
Exceptions:
BadLocationException 

References mixconfig.FloatDocument.aCDigits_max, mixconfig.FloatDocument.getACDigits(), mixconfig.FloatDocument.max, and mixconfig.FloatDocument.min.


Member Data Documentation

double mixconfig.FloatDocument.max [private]

double mixconfig.FloatDocument.min [private]


The documentation for this class was generated from the following file:

Generated on Mon Nov 16 23:24:47 2009 for MixConfig by  doxygen 1.5.6