/** * Provides serialization support. * * @param stream the output stream (<code>null</code> not permitted). * * @throws IOException if there is an I/O error. */ private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); SerialUtilities.writeAttributedString(this.attributedLabel, stream); SerialUtilities.writeShape(this.shape, stream); SerialUtilities.writePaint(this.fillPaint, stream); SerialUtilities.writeStroke(this.outlineStroke, stream); SerialUtilities.writePaint(this.outlinePaint, stream); SerialUtilities.writeShape(this.line, stream); SerialUtilities.writeStroke(this.lineStroke, stream); SerialUtilities.writePaint(this.linePaint, stream); SerialUtilities.writePaint(this.labelPaint, stream); }