/**
  * 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);
 }
Example #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);
 }
  /**
   * 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);
    }
  }
Example #4
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);
 }
Example #5
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();
 }
Example #6
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.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);
   }
 }
 /**
  * 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);
 }
 /**
  * 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);
 }
  /**
   * 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);
  }
 /**
  * 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);
 }