/** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the event */ public String toString() { String string = super.toString(); string = string.substring (0, string.length() - 1); // remove trailing '}' string += " stateMask=0x" + Integer.toHexString(stateMask) + " x=" + x + " y=" + y; if (touches != null) { for (int i = 0; i < touches.length; i++) { string += "\n " + touches[i].toString(); } string += "\n"; } string += "}"; return string; } }
/** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the event */ @Override public String toString() { String string = super.toString(); string = string.substring (0, string.length() - 1); // remove trailing '}' string += " stateMask=0x" + Integer.toHexString(stateMask) + " x=" + x + " y=" + y; if (touches != null) { for (int i = 0; i < touches.length; i++) { string += "\n " + touches[i].toString(); } string += "\n"; } string += "}"; return string; } }
/** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the event */ public String toString() { String string = super.toString(); string = string.substring( 0, string.length() - 1 ); // remove trailing '}' string += " stateMask=" + stateMask + " x=" + x + " y=" + y; if( touches != null ) { for( int i = 0; i < touches.length; i++ ) { string += "\n " + touches[ i ].toString(); } string += "\n"; } string += "}"; return string; } }
/** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the event */ @Override public String toString() { String string = super.toString(); string = string.substring (0, string.length() - 1); // remove trailing '}' string += " stateMask=0x" + Integer.toHexString(stateMask) + " x=" + x + " y=" + y; if (touches != null) { for (int i = 0; i < touches.length; i++) { string += "\n " + touches[i].toString(); } string += "\n"; } string += "}"; return string; } }
/** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the event */ @Override public String toString() { String string = super.toString(); string = string.substring (0, string.length() - 1); // remove trailing '}' string += " stateMask=0x" + Integer.toHexString(stateMask) + " x=" + x + " y=" + y; if (touches != null) { for (int i = 0; i < touches.length; i++) { string += "\n " + touches[i].toString(); } string += "\n"; } string += "}"; return string; } }
/** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the event */ @Override public String toString() { String string = super.toString(); string = string.substring (0, string.length() - 1); // remove trailing '}' string += " stateMask=0x" + Integer.toHexString(stateMask) + " x=" + x + " y=" + y; if (touches != null) { for (int i = 0; i < touches.length; i++) { string += "\n " + touches[i].toString(); } string += "\n"; } string += "}"; return string; } }