class NUMBER_INPUT { //Initalize variables int x, y; float boxLength, boxHeight; int numberOfDigits, maxDigits; String highestValue, lowestValue; int [] digitsArray; boolean acceptKeyboard; color mouseOut, mouseOver, mouseClick; String units, heading; //Attributes NUMBER_INPUT(int xTEMP, int yTEMP, String headingTEMP, String unitsTEMP, int initialValueTEMP, int lowestValueTEMP, int highestValueTEMP){ //Assign attributes x = xTEMP; y = yTEMP; units = unitsTEMP; heading = headingTEMP; lowestValue = str(lowestValueTEMP); highestValue = str(highestValueTEMP); maxDigits = highestValue.length(); boxLength = 10+textWidth(highestValue); boxHeight = textAscent()+textDescent()+6; //Assign other variables numberOfDigits = 0; acceptKeyboard = false; digitsArray = new int [maxDigits]; //append initial value String initialValue = str(initialValueTEMP); for (int i=0; ix)&&(mouseXy)&&(mouseYx)&&(mouseXy)&&(mouseYint(highestValue)){ this.replace_array(highestValue); return int(highestValue); } return int(numberToConvert); } }