Example usage for org.jfree.io SerialUtilities writePoint2D

List of usage examples for org.jfree.io SerialUtilities writePoint2D

Introduction

In this page you can find the example usage for org.jfree.io SerialUtilities writePoint2D.

Prototype

public static void writePoint2D(final Point2D p, final ObjectOutputStream stream) throws IOException 

Source Link

Document

Serialises a Point2D object.

Usage

From source file:ucar.unidata.idv.control.chart.MyXYPlot.java

/**
 * Provides serialization support./*from   w  w w .j  av a2 s.c o m*/
 *
 * @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.rangeZeroBaselineStroke, stream);
    SerialUtilities.writePaint(this.rangeZeroBaselinePaint, stream);
    SerialUtilities.writeStroke(this.domainCrosshairStroke, stream);
    SerialUtilities.writePaint(this.domainCrosshairPaint, stream);
    SerialUtilities.writeStroke(this.rangeCrosshairStroke, stream);
    SerialUtilities.writePaint(this.rangeCrosshairPaint, stream);
    SerialUtilities.writePaint(this.domainTickBandPaint, stream);
    SerialUtilities.writePaint(this.rangeTickBandPaint, stream);
    SerialUtilities.writePoint2D(this.quadrantOrigin, stream);
    for (int i = 0; i < 4; i++) {
        SerialUtilities.writePaint(this.quadrantPaint[i], stream);
    }
}