コード例 #1
0
 /**
  * Provides serialization support.
  *
  * @param stream the input stream.
  * @throws IOException if there is an I/O error.
  * @throws ClassNotFoundException if there is a classpath problem.
  */
 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
   stream.defaultReadObject();
   this.firstBarPaint = SerialUtilities.readPaint(stream);
   this.lastBarPaint = SerialUtilities.readPaint(stream);
   this.positiveBarPaint = SerialUtilities.readPaint(stream);
   this.negativeBarPaint = SerialUtilities.readPaint(stream);
 }
コード例 #2
0
 /**
  * Provides serialization support.
  *
  * @param stream the input stream.
  * @throws IOException if there is an I/O error.
  * @throws ClassNotFoundException if there is a classpath problem.
  */
 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
   stream.defaultReadObject();
   this.shape = SerialUtilities.readShape(stream);
   this.stroke = SerialUtilities.readStroke(stream);
   this.outlinePaint = SerialUtilities.readPaint(stream);
   this.fillPaint = SerialUtilities.readPaint(stream);
 }
コード例 #3
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);
 }
コード例 #4
0
  /**
   * Restores a serialized object.
   *
   * @param stream the input stream.
   * @throws IOException if there is an I/O problem.
   * @throws ClassNotFoundException if there is a problem loading a class.
   */
  private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();

    int paintCount = stream.readInt();
    this.paintSequence = new Paint[paintCount];
    for (int i = 0; i < paintCount; i++) {
      this.paintSequence[i] = SerialUtilities.readPaint(stream);
    }

    int outlinePaintCount = stream.readInt();
    this.outlinePaintSequence = new Paint[outlinePaintCount];
    for (int i = 0; i < outlinePaintCount; i++) {
      this.outlinePaintSequence[i] = SerialUtilities.readPaint(stream);
    }

    int strokeCount = stream.readInt();
    this.strokeSequence = new Stroke[strokeCount];
    for (int i = 0; i < strokeCount; i++) {
      this.strokeSequence[i] = SerialUtilities.readStroke(stream);
    }

    int outlineStrokeCount = stream.readInt();
    this.outlineStrokeSequence = new Stroke[outlineStrokeCount];
    for (int i = 0; i < outlineStrokeCount; i++) {
      this.outlineStrokeSequence[i] = SerialUtilities.readStroke(stream);
    }

    int shapeCount = stream.readInt();
    this.shapeSequence = new Shape[shapeCount];
    for (int i = 0; i < shapeCount; i++) {
      this.shapeSequence[i] = SerialUtilities.readShape(stream);
    }
  }
コード例 #5
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);
    }
  }
コード例 #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.firstBarPaint, stream);
   SerialUtilities.writePaint(this.lastBarPaint, stream);
   SerialUtilities.writePaint(this.positiveBarPaint, stream);
   SerialUtilities.writePaint(this.negativeBarPaint, 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.paint, stream);
   SerialUtilities.writePaint(this.backgroundPaint, stream);
   SerialUtilities.writePaint(this.outlinePaint, stream);
   SerialUtilities.writeStroke(this.outlineStroke, stream);
 }
コード例 #8
0
ファイル: MeterPlot.java プロジェクト: nologic/nabs
 /**
  * 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);
 }
コード例 #9
0
 /**
  * Provides serialization support.
  *
  * @param stream the input stream.
  * @throws IOException if there is an I/O error.
  * @throws ClassNotFoundException if there is a classpath problem.
  */
 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
   stream.defaultReadObject();
   this.majorTickPaint = SerialUtilities.readPaint(stream);
   this.majorTickStroke = SerialUtilities.readStroke(stream);
   this.minorTickPaint = SerialUtilities.readPaint(stream);
   this.minorTickStroke = SerialUtilities.readStroke(stream);
   this.tickLabelPaint = SerialUtilities.readPaint(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.majorTickPaint, stream);
   SerialUtilities.writeStroke(this.majorTickStroke, stream);
   SerialUtilities.writePaint(this.minorTickPaint, stream);
   SerialUtilities.writeStroke(this.minorTickStroke, stream);
   SerialUtilities.writePaint(this.tickLabelPaint, stream);
 }
コード例 #11
0
ファイル: MeterPlot.java プロジェクト: nologic/nabs
 /**
  * Provides serialization support.
  *
  * @param stream the input stream.
  * @throws IOException if there is an I/O error.
  * @throws ClassNotFoundException if there is a classpath problem.
  */
 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
   stream.defaultReadObject();
   this.dialBackgroundPaint = SerialUtilities.readPaint(stream);
   this.needlePaint = SerialUtilities.readPaint(stream);
   this.valuePaint = SerialUtilities.readPaint(stream);
   this.tickPaint = SerialUtilities.readPaint(stream);
   this.tickLabelPaint = SerialUtilities.readPaint(stream);
   if (this.dataset != null) {
     this.dataset.addChangeListener(this);
   }
 }
コード例 #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.writePaint(this.tickLabelPaint, stream);
   SerialUtilities.writeStroke(this.axisLineStroke, stream);
   SerialUtilities.writePaint(this.axisLinePaint, stream);
   SerialUtilities.writeStroke(this.tickMarkStroke, stream);
   SerialUtilities.writePaint(this.tickMarkPaint, stream);
 }
コード例 #13
0
 /**
  * Provides serialization support.
  *
  * @param stream the input stream.
  * @throws IOException if there is an I/O error.
  * @throws ClassNotFoundException if there is a classpath problem.
  */
 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
   stream.defaultReadObject();
   this.labelPaint = SerialUtilities.readPaint(stream);
   this.tickLabelPaint = SerialUtilities.readPaint(stream);
   this.axisLineStroke = SerialUtilities.readStroke(stream);
   this.axisLinePaint = SerialUtilities.readPaint(stream);
   this.tickMarkStroke = SerialUtilities.readStroke(stream);
   this.tickMarkPaint = SerialUtilities.readPaint(stream);
   this.listenerList = new EventListenerList();
 }
コード例 #14
0
ファイル: XYBarRenderer.java プロジェクト: xylo/jfreechart
 /**
  * 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.legendBar, stream);
 }
コード例 #15
0
ファイル: PlotEntity.java プロジェクト: Droikojan/KATA4
 /**
  * Provides serialization support.
  *
  * @param stream the input stream.
  * @throws IOException if there is an I/O error.
  * @throws ClassNotFoundException if there is a classpath problem.
  */
 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
   stream.defaultReadObject();
   setArea(SerialUtilities.readShape(stream));
 }
コード例 #16
0
ファイル: AbstractBlock.java プロジェクト: bruno-sales/PCS
 /**
  * Provides serialization support.
  *
  * @param stream the input stream.
  * @throws IOException if there is an I/O error.
  * @throws ClassNotFoundException if there is a classpath problem.
  */
 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
   stream.defaultReadObject();
   this.bounds = (Rectangle2D) SerialUtilities.readShape(stream);
 }
コード例 #17
0
 /**
  * Provides serialization support.
  *
  * @param stream the input stream.
  * @throws IOException if there is an I/O error.
  * @throws ClassNotFoundException if there is a classpath problem.
  */
 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
   stream.defaultReadObject();
   this.errorIndicatorPaint = SerialUtilities.readPaint(stream);
   this.errorIndicatorStroke = SerialUtilities.readStroke(stream);
 }
コード例 #18
0
ファイル: PlotEntity.java プロジェクト: Droikojan/KATA4
 /**
  * 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(getArea(), stream);
 }
コード例 #19
0
  /**
   * Provides serialization support.
   *
   * @param stream the input stream.
   * @throws IOException if there is an I/O error.
   * @throws ClassNotFoundException if there is a classpath problem.
   */
  private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {

    stream.defaultReadObject();
    this.advanceLinePaint = SerialUtilities.readPaint(stream);
    this.advanceLineStroke = SerialUtilities.readStroke(stream);
  }
コード例 #20
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);
 }
コード例 #21
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);
  }
コード例 #22
0
ファイル: XYBarRenderer.java プロジェクト: xylo/jfreechart
 /**
  * Provides serialization support.
  *
  * @param stream the input stream.
  * @throws IOException if there is an I/O error.
  * @throws ClassNotFoundException if there is a classpath problem.
  */
 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
   stream.defaultReadObject();
   this.legendBar = SerialUtilities.readShape(stream);
 }
コード例 #23
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);
 }
コード例 #24
0
 /**
  * Provides serialization support.
  *
  * @param stream the input stream.
  * @throws IOException if there is an I/O error.
  * @throws ClassNotFoundException if there is a classpath problem.
  */
 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
   stream.defaultReadObject();
   this.positivePaint = SerialUtilities.readPaint(stream);
   this.negativePaint = SerialUtilities.readPaint(stream);
   this.legendLine = SerialUtilities.readShape(stream);
 }
コード例 #25
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);
 }
コード例 #26
0
 /**
  * Provides serialization support.
  *
  * @param stream the input stream.
  * @throws IOException if there is an I/O error.
  * @throws ClassNotFoundException if there is a classpath problem.
  */
 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
   stream.defaultReadObject();
   this.artifactPaint = SerialUtilities.readPaint(stream);
 }
コード例 #27
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.positivePaint, stream);
   SerialUtilities.writePaint(this.negativePaint, stream);
   SerialUtilities.writeShape(this.legendLine, stream);
 }