org.jfree.chart.util.SerialUtilities Java Examples

The following examples show how to use org.jfree.chart.util.SerialUtilities. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JGenProg2017_00106_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * 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.borderStroke = SerialUtilities.readStroke(stream);
    this.borderPaint = SerialUtilities.readPaint(stream);
    this.backgroundPaint = SerialUtilities.readPaint(stream);
    this.progressListeners = new EventListenerList();
    this.changeListeners = new EventListenerList();
    this.renderingHints = new RenderingHints(
            RenderingHints.KEY_ANTIALIASING, 
            RenderingHints.VALUE_ANTIALIAS_ON);

    // register as a listener with sub-components...
    if (this.title != null) {
        this.title.addChangeListener(this);
    }

    for (int i = 0; i < getSubtitleCount(); i++) {
        getSubtitle(i).addChangeListener(this);
    }
    this.plot.addChangeListener(this);
}
 
Example #2
Source File: AbstractRenderer.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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.basePaint = SerialUtilities.readPaint(stream);
    this.baseFillPaint = SerialUtilities.readPaint(stream);
    this.baseOutlinePaint = SerialUtilities.readPaint(stream);
    this.baseStroke = SerialUtilities.readStroke(stream);
    this.baseOutlineStroke = SerialUtilities.readStroke(stream);
    this.baseShape = SerialUtilities.readShape(stream);
    this.baseItemLabelPaint = SerialUtilities.readPaint(stream);
    
    // listeners are not restored automatically, but storage must be 
    // provided...
    this.listenerList = new EventListenerList();

}
 
Example #3
Source File: ThermometerPlot.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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.thermometerStroke = SerialUtilities.readStroke(stream);
    this.thermometerPaint = SerialUtilities.readPaint(stream);
    this.valuePaint = SerialUtilities.readPaint(stream);
    this.mercuryPaint = SerialUtilities.readPaint(stream);
    this.subrangeIndicatorStroke = SerialUtilities.readStroke(stream);
    this.rangeIndicatorStroke = SerialUtilities.readStroke(stream);
    this.subrangePaint = new Paint[3];
    for (int i = 0; i < 3; i++) {
        this.subrangePaint[i] = SerialUtilities.readPaint(stream);
    }
    if (this.rangeAxis != null) {
        this.rangeAxis.addChangeListener(this);
    }
}
 
Example #4
Source File: ThermometerPlot.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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.thermometerStroke = SerialUtilities.readStroke(stream);
    this.thermometerPaint = SerialUtilities.readPaint(stream);
    this.valuePaint = SerialUtilities.readPaint(stream);
    this.mercuryPaint = SerialUtilities.readPaint(stream);
    this.subrangeIndicatorStroke = SerialUtilities.readStroke(stream);
    this.rangeIndicatorStroke = SerialUtilities.readStroke(stream);
    this.subrangePaint = new Paint[3];
    for (int i = 0; i < 3; i++) {
        this.subrangePaint[i] = SerialUtilities.readPaint(stream);
    }
    if (this.rangeAxis != null) {
        this.rangeAxis.addChangeListener(this);
    }
}
 
Example #5
Source File: jMutRepair_0038_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * 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
Source File: Cardumen_007_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * 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);
}
 
Example #7
Source File: SerialUtilitiesTests.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Serialize a <code>GradientPaint</code>, restore it, and check for
 * equality.
 */
public void testGradientPaintSerialization() {

    Paint p1 = new GradientPaint(0.0f, 0.0f, Color.blue,
            100.0f, 200.0f, Color.red);
    Paint p2 = null;

    try {
        ByteArrayOutputStream buffer = new ByteArrayOutputStream();
        ObjectOutputStream out = new ObjectOutputStream(buffer);
        SerialUtilities.writePaint(p1, out);
        out.close();

        ByteArrayInputStream bias = new ByteArrayInputStream(
                buffer.toByteArray());
        ObjectInputStream in = new ObjectInputStream(bias);
        p2 = SerialUtilities.readPaint(in);
        in.close();
    }
    catch (Exception e) {
        e.printStackTrace();
    }

    // we want to check that the two objects are equal, but can't rely on
    // GradientPaint's equals() method because it is just the default
    // method inherited from Object...
    GradientPaint gp1 = (GradientPaint) p1;
    GradientPaint gp2 = (GradientPaint) p2;
    assertEquals(gp1.getColor1(), gp2.getColor1());
    assertEquals(gp1.getPoint1(), gp2.getPoint1());
    assertEquals(gp1.getColor2(), gp2.getColor2());
    assertEquals(gp1.getPoint2(), gp2.getPoint2());
    assertEquals(gp1.isCyclic(), gp2.isCyclic());

}
 
Example #8
Source File: 1_CategoryPlot.java    From SimFix with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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.writeStroke(this.domainGridlineStroke, stream);
    SerialUtilities.writePaint(this.domainGridlinePaint, stream);
    SerialUtilities.writeStroke(this.rangeGridlineStroke, stream);
    SerialUtilities.writePaint(this.rangeGridlinePaint, stream);
    SerialUtilities.writeStroke(this.rangeCrosshairStroke, stream);
    SerialUtilities.writePaint(this.rangeCrosshairPaint, stream);
}
 
Example #9
Source File: FastScatterPlot.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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.writeStroke(this.domainGridlineStroke, stream);
    SerialUtilities.writePaint(this.domainGridlinePaint, stream);
    SerialUtilities.writeStroke(this.rangeGridlineStroke, stream);
    SerialUtilities.writePaint(this.rangeGridlinePaint, stream);
}
 
Example #10
Source File: LegendItem.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the input stream (<code>null</code> not permitted).
 *
 * @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.attributedLabel = SerialUtilities.readAttributedString(stream);
    this.shape = SerialUtilities.readShape(stream);
    this.fillPaint = SerialUtilities.readPaint(stream);
    this.outlineStroke = SerialUtilities.readStroke(stream);
    this.outlinePaint = SerialUtilities.readPaint(stream);
    this.line = SerialUtilities.readShape(stream);
    this.lineStroke = SerialUtilities.readStroke(stream);
    this.linePaint = SerialUtilities.readPaint(stream);
}
 
Example #11
Source File: PaintMap.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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();
    stream.writeInt(this.store.size());
    Set keys = this.store.keySet();
    Iterator iterator = keys.iterator();
    while (iterator.hasNext()) {
        Comparable key = (Comparable) iterator.next();
        stream.writeObject(key);
        Paint paint = getPaint(key);
        SerialUtilities.writePaint(paint, stream);
    }
}
 
Example #12
Source File: ThermometerPlot.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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.writeStroke(this.thermometerStroke, stream);
    SerialUtilities.writePaint(this.thermometerPaint, stream);
    SerialUtilities.writePaint(this.valuePaint, stream);
    SerialUtilities.writePaint(this.mercuryPaint, stream);
    SerialUtilities.writeStroke(this.subrangeIndicatorStroke, stream);
    SerialUtilities.writeStroke(this.rangeIndicatorStroke, stream);
    for (int i = 0; i < 3; i++) {
        SerialUtilities.writePaint(this.subrangePaint[i], stream);
    }
}
 
Example #13
Source File: jMutRepair_0021_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * 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.writeStroke(this.domainGridlineStroke, stream);
    SerialUtilities.writePaint(this.domainGridlinePaint, stream);
    SerialUtilities.writeStroke(this.rangeGridlineStroke, stream);
    SerialUtilities.writePaint(this.rangeGridlinePaint, stream);
    SerialUtilities.writeStroke(this.rangeCrosshairStroke, stream);
    SerialUtilities.writePaint(this.rangeCrosshairPaint, stream);
}
 
Example #14
Source File: Chart_14_CategoryPlot_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * 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.writeStroke(this.domainGridlineStroke, stream);
    SerialUtilities.writePaint(this.domainGridlinePaint, stream);
    SerialUtilities.writeStroke(this.rangeGridlineStroke, stream);
    SerialUtilities.writePaint(this.rangeGridlinePaint, stream);
    SerialUtilities.writeStroke(this.rangeCrosshairStroke, stream);
    SerialUtilities.writePaint(this.rangeCrosshairPaint, stream);
}
 
Example #15
Source File: Cardumen_00195_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * 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 #16
Source File: XYShapeAnnotation.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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);
}
 
Example #17
Source File: jMutRepair_0030_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * 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.writeStroke(this.domainGridlineStroke, stream);
    SerialUtilities.writePaint(this.domainGridlinePaint, stream);
    SerialUtilities.writeStroke(this.rangeGridlineStroke, stream);
    SerialUtilities.writePaint(this.rangeGridlinePaint, stream);
    SerialUtilities.writeStroke(this.rangeCrosshairStroke, stream);
    SerialUtilities.writePaint(this.rangeCrosshairPaint, stream);
}
 
Example #18
Source File: XYShapeAnnotation.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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);
}
 
Example #19
Source File: Cardumen_0080_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * 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);
}
 
Example #20
Source File: XYTextAnnotation.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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.paint = SerialUtilities.readPaint(stream);
    this.backgroundPaint = SerialUtilities.readPaint(stream);
    this.outlinePaint = SerialUtilities.readPaint(stream);
    this.outlineStroke = SerialUtilities.readStroke(stream);
}
 
Example #21
Source File: Cardumen_0080_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * 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 #22
Source File: LegendGraphic.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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.fillPaint = SerialUtilities.readPaint(stream);
    this.outlinePaint = SerialUtilities.readPaint(stream);
    this.outlineStroke = SerialUtilities.readStroke(stream);
    this.line = SerialUtilities.readShape(stream);
    this.linePaint = SerialUtilities.readPaint(stream);
    this.lineStroke = SerialUtilities.readStroke(stream);
}
 
Example #23
Source File: MeterPlot.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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.dialOutlinePaint = 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);
    }
}
 
Example #24
Source File: JGenProg2017_0082_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * 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);
}
 
Example #25
Source File: JGenProg2017_006_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * 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 #26
Source File: Chart_26_Axis_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * 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);
}
 
Example #27
Source File: jMutRepair_0038_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * 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 #28
Source File: Cardumen_00144_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * 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);
}
 
Example #29
Source File: jMutRepair_001_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * 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.writeStroke(this.domainGridlineStroke, stream);
    SerialUtilities.writePaint(this.domainGridlinePaint, stream);
    SerialUtilities.writeStroke(this.rangeGridlineStroke, stream);
    SerialUtilities.writePaint(this.rangeGridlinePaint, stream);
    SerialUtilities.writeStroke(this.rangeCrosshairStroke, stream);
    SerialUtilities.writePaint(this.rangeCrosshairPaint, stream);
}
 
Example #30
Source File: TextBox.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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.outlinePaint = SerialUtilities.readPaint(stream);
    this.outlineStroke = SerialUtilities.readStroke(stream);
    this.backgroundPaint = SerialUtilities.readPaint(stream);
    this.shadowPaint = SerialUtilities.readPaint(stream);
}