/**
  * Provides serialization support.
  *
  * @param stream the output stream.
  * @throws IOException if there is an I/O error.
  */
 private void writeObject(ObjectOutputStream stream) throws IOException {
   stream.defaultWriteObject();
   SerialUtilities.writePaint(this.firstBarPaint, stream);
   SerialUtilities.writePaint(this.lastBarPaint, stream);
   SerialUtilities.writePaint(this.positiveBarPaint, stream);
   SerialUtilities.writePaint(this.negativeBarPaint, stream);
 }
Пример #2
0
 /**
  * Provides serialization support.
  *
  * @param stream the output stream.
  * @throws IOException if there is an I/O error.
  */
 private void writeObject(ObjectOutputStream stream) throws IOException {
   stream.defaultWriteObject();
   SerialUtilities.writeShape(this.shape, stream);
   SerialUtilities.writeStroke(this.stroke, stream);
   SerialUtilities.writePaint(this.outlinePaint, stream);
   SerialUtilities.writePaint(this.fillPaint, stream);
 }
Пример #3
0
  /**
   * Handles serialization.
   *
   * @param stream the output stream.
   * @throws IOException if there is an I/O problem.
   */
  private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();

    int paintCount = this.paintSequence.length;
    stream.writeInt(paintCount);
    for (int i = 0; i < paintCount; i++) {
      SerialUtilities.writePaint(this.paintSequence[i], stream);
    }

    int outlinePaintCount = this.outlinePaintSequence.length;
    stream.writeInt(outlinePaintCount);
    for (int i = 0; i < outlinePaintCount; i++) {
      SerialUtilities.writePaint(this.outlinePaintSequence[i], stream);
    }

    int strokeCount = this.strokeSequence.length;
    stream.writeInt(strokeCount);
    for (int i = 0; i < strokeCount; i++) {
      SerialUtilities.writeStroke(this.strokeSequence[i], stream);
    }

    int outlineStrokeCount = this.outlineStrokeSequence.length;
    stream.writeInt(outlineStrokeCount);
    for (int i = 0; i < outlineStrokeCount; i++) {
      SerialUtilities.writeStroke(this.outlineStrokeSequence[i], stream);
    }

    int shapeCount = this.shapeSequence.length;
    stream.writeInt(shapeCount);
    for (int i = 0; i < shapeCount; i++) {
      SerialUtilities.writeShape(this.shapeSequence[i], stream);
    }
  }
Пример #4
0
 /**
  * Provides serialization support.
  *
  * @param stream the output stream.
  * @throws IOException if there is an I/O error.
  */
 private void writeObject(ObjectOutputStream stream) throws IOException {
   stream.defaultWriteObject();
   SerialUtilities.writePaint(this.paint, stream);
   SerialUtilities.writePaint(this.backgroundPaint, stream);
   SerialUtilities.writePaint(this.outlinePaint, stream);
   SerialUtilities.writeStroke(this.outlineStroke, stream);
 }
Пример #5
0
 /**
  * Provides serialization support.
  *
  * @param stream the output stream.
  * @throws IOException if there is an I/O error.
  */
 private void writeObject(ObjectOutputStream stream) throws IOException {
   stream.defaultWriteObject();
   SerialUtilities.writePaint(this.dialBackgroundPaint, stream);
   SerialUtilities.writePaint(this.needlePaint, stream);
   SerialUtilities.writePaint(this.valuePaint, stream);
   SerialUtilities.writePaint(this.tickPaint, stream);
   SerialUtilities.writePaint(this.tickLabelPaint, stream);
 }
Пример #6
0
 /**
  * Provides serialization support.
  *
  * @param stream the output stream.
  * @throws IOException if there is an I/O error.
  */
 private void writeObject(ObjectOutputStream stream) throws IOException {
   stream.defaultWriteObject();
   SerialUtilities.writePaint(this.majorTickPaint, stream);
   SerialUtilities.writeStroke(this.majorTickStroke, stream);
   SerialUtilities.writePaint(this.minorTickPaint, stream);
   SerialUtilities.writeStroke(this.minorTickStroke, stream);
   SerialUtilities.writePaint(this.tickLabelPaint, stream);
 }
Пример #7
0
 /**
  * Provides serialization support.
  *
  * @param stream the output stream.
  * @throws IOException if there is an I/O error.
  */
 private void writeObject(ObjectOutputStream stream) throws IOException {
   stream.defaultWriteObject();
   SerialUtilities.writePaint(this.labelPaint, stream);
   SerialUtilities.writePaint(this.tickLabelPaint, stream);
   SerialUtilities.writeStroke(this.axisLineStroke, stream);
   SerialUtilities.writePaint(this.axisLinePaint, stream);
   SerialUtilities.writeStroke(this.tickMarkStroke, stream);
   SerialUtilities.writePaint(this.tickMarkPaint, stream);
 }
Пример #8
0
 /**
  * Provides serialization support.
  *
  * @param stream the output stream.
  * @throws IOException if there is an I/O error.
  */
 private void writeObject(ObjectOutputStream stream) throws IOException {
   stream.defaultWriteObject();
   SerialUtilities.writePaint(this.artifactPaint, stream);
 }
Пример #9
0
 /**
  * Provides serialization support.
  *
  * @param stream the output stream.
  * @throws IOException if there is an I/O error.
  */
 private void writeObject(ObjectOutputStream stream) throws IOException {
   stream.defaultWriteObject();
   SerialUtilities.writePaint(this.errorIndicatorPaint, stream);
   SerialUtilities.writeStroke(this.errorIndicatorStroke, stream);
 }
Пример #10
0
  /**
   * Provides serialization support.
   *
   * @param stream the output stream.
   * @throws IOException if there is an I/O error.
   */
  private void writeObject(ObjectOutputStream stream) throws IOException {

    stream.defaultWriteObject();
    SerialUtilities.writePaint(this.advanceLinePaint, stream);
    SerialUtilities.writeStroke(this.advanceLineStroke, stream);
  }
 /**
  * Provides serialization support.
  *
  * @param stream the output stream.
  * @throws IOException if there is an I/O error.
  */
 private void writeObject(ObjectOutputStream stream) throws IOException {
   stream.defaultWriteObject();
   SerialUtilities.writePaint(this.positivePaint, stream);
   SerialUtilities.writePaint(this.negativePaint, stream);
   SerialUtilities.writeShape(this.legendLine, stream);
 }
Пример #12
0
 /**
  * Provides serialization support.
  *
  * @param stream the output stream.
  * @throws IOException if there is an I/O error.
  */
 private void writeObject(ObjectOutputStream stream) throws IOException {
   stream.defaultWriteObject();
   SerialUtilities.writePaint(this.labelPaint, stream);
   SerialUtilities.writeStroke(this.dividerStroke, stream);
   SerialUtilities.writePaint(this.dividerPaint, stream);
 }