private void writeObject ( ObjectOutputStream s ) throws IOException { s . writeDouble ( getX ( ) ) ; s . writeDouble ( getY ( ) ) ; s . writeDouble ( getWidth ( ) ) ; s . writeDouble ( getHeight ( ) ) ; }
Wrtie the object to the output stream